lgeditorsEdit.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <%@page language="java" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <title>编辑 lgEditor多样化</title>
  6. <%@include file="/commons/include/customForm.jsp" %>
  7. <script type="text/javascript">
  8. $(function() {
  9. var options={};
  10. if(showResponse){
  11. options.success=showResponse;
  12. }
  13. var frm=$('#lgeditorsForm').form();
  14. $("a.save").click(function() {
  15. frm.ajaxForm(options);
  16. if(frm.valid()){
  17. OfficePlugin.submit();
  18. if(WebSignPlugin.hasWebSignField){
  19. WebSignPlugin.submit();
  20. }
  21. $('#lgeditorsForm').submit();
  22. }
  23. });
  24. });
  25. function showResponse(responseText) {
  26. var obj = new com.hotent.form.ResultMessage(responseText);
  27. if (obj.isSuccess()) {
  28. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  29. if(rtn){
  30. this.close();
  31. }else{
  32. window.location.href = "${ctx}/demo/LigerUI/lgeditors/list.ht";
  33. }
  34. });
  35. } else {
  36. $.ligerDialog.error(obj.getMessage(),"提示信息");
  37. }
  38. }
  39. </script>
  40. </head>
  41. <body>
  42. <div class="panel">
  43. <div class="panel-top">
  44. <div class="tbar-title">
  45. <c:choose>
  46. <c:when test="${not empty lgeditorsItem.id}">
  47. <span class="tbar-label"><span></span>编辑lgEditor多样化</span>
  48. </c:when>
  49. <c:otherwise>
  50. <span class="tbar-label"><span></span>添加lgEditor多样化</span>
  51. </c:otherwise>
  52. </c:choose>
  53. </div>
  54. <div class="panel-toolbar">
  55. <div class="toolBar">
  56. <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a></div>
  57. <div class="l-bar-separator"></div>
  58. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  59. </div>
  60. </div>
  61. </div>
  62. <form id="lgeditorsForm" method="post" action="save.ht">
  63. <div type="custform">
  64. <div class="panel-detail">
  65. <table cellpadding="2" cellspacing="0" border="1" class="formTable">
  66. <tbody>
  67. <tr>
  68. <td colspan="8" class="formHead">lgEditor多样化</td>
  69. </tr>
  70. <tr>
  71. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">姓名:</td>
  72. <td style="width:15%;" class="formInput"><span name="editable-input" style="display:inline-block;" isflag="tableflag"><input type="text" name="name" lablename="姓名" class="inputText" validate="{maxlength:50}" isflag="tableflag" value="${lgeditors.name}" /></span></td>
  73. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">性别:</td>
  74. <td style="width:15%;" class="formInput"><span name="editable-input" style="display:inline-block;padding:2px;" class="selectinput"><select name="sex" lablename="性别" controltype="select" validate="{empty:false}"><option value="1" <c:if test='${lgeditors.sex==1}'>selected='selected'</c:if>>男</option><option value="0" <c:if test='${lgeditors.sex==0}'>selected='selected'</c:if>>女</option></select></span></td>
  75. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">生日:</td>
  76. <td style="width:15%;" class="formInput"><input name="birthday" type="text" class="Wdate" displaydate="0" validate="{empty:false}" value="<fmt:formatDate value='${lgeditors.birthday}' pattern='yyyy-MM-dd'/>" /></td>
  77. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">年薪:</td>
  78. <td style="width:15%;" class="formInput"><input name="money" type="text" showtype="{'coinValue':'','isShowComdify':false,'decimalValue':0}" validate="{number:true,maxIntLen:13,maxDecimalLen:0}" value="${lgeditors.money}" /></td>
  79. </tr>
  80. <tr>
  81. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">toWife:</td>
  82. <td style="width:15%;" class="formInput"><input name="toWife" type="text" showtype="{'coinValue':'','isShowComdify':false,'decimalValue':2}" validate="{number:true,maxIntLen:13,maxDecimalLen:2}" value="${lgeditors.toWife}" /></td>
  83. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">入职日期:</td>
  84. <td style="width:15%;" class="formInput"><input name="joinDate" type="text" class="Wdate" displaydate="0" validate="{empty:false}" value="<fmt:formatDate value='${lgeditors.joinDate}' pattern='yyyy-MM-dd HH:mm:00'/>" /></td>
  85. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">结婚日期:</td>
  86. <td style="width:15%;" class="formInput"><input name="jiehunDay" type="text" class="Wdate" displaydate="0" validate="{empty:false}" value="<fmt:formatDate value='${lgeditors.jiehunDay}' pattern='yyyy-MM-dd'/>" /></td>
  87. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">工作性质:</td>
  88. <td style="width:15%;" class="formInput"><span name="editable-input" style="display:inline-block;padding:2px;" class="selectinput"><select name="jobType" lablename="工作性质" controltype="select" validate="{empty:false}"><option value="零售业" <c:if test='${lgeditors.jobType==零售业}'>selected='selected'</c:if>>零售业</option><option value="销售业" <c:if test='${lgeditors.jobType==销售业}'>selected='selected'</c:if>>销售业</option><option value="物流业" <c:if test='${lgeditors.jobType==物流业}'>selected='selected'</c:if>>物流业</option><option value="打杂" <c:if test='${lgeditors.jobType==打杂}'>selected='selected'</c:if>>打杂</option></select></span></td>
  89. </tr>
  90. <tr>
  91. <td align="right" style="width:10%;" class="formTitle" nowrap="nowarp">备注:</td>
  92. <td style="width:15%;" class="formInput"><textarea name="comment" validate="{empty:false}">${lgeditors.comment}</textarea></td>
  93. <td style="width:10%;" class="formTitle"></td>
  94. <td style="width:15%;" class="formInput"></td>
  95. <td style="width:10%;" class="formTitle"></td>
  96. <td style="width:15%;" class="formInput"></td>
  97. <td style="width:10%;" class="formTitle"></td>
  98. <td style="width:15%;" class="formInput"></td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. </div>
  104. <input type="hidden" name="id" value="${lgeditors.id}"/>
  105. </form>
  106. </body>
  107. </html>