sysPaurEdit.jsp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%--
  2. time:2012-12-24 14:42:00
  3. desc:edit the SYS_PAUR
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 SYS_PAUR</title>
  10. <%@include file="/commons/include/form.jsp" %>
  11. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  12. <script type="text/javascript" src="${ctx}/js/hotent/formdata.js"></script>
  13. <script type="text/javascript">
  14. $(function() {
  15. var options={};
  16. if(showResponse){
  17. options.success=showResponse;
  18. }
  19. var frm=$('#sysPaurForm').form();
  20. $("a.save").click(function() {
  21. frm.setData();
  22. frm.ajaxForm(options);
  23. if(frm.valid()){
  24. form.submit();
  25. }
  26. });
  27. });
  28. function showResponse(responseText) {
  29. var obj = new com.hotent.form.ResultMessage(responseText);
  30. if (obj.isSuccess()) {
  31. $.ligerDialog.confirm( obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  32. if(rtn){
  33. this.close();
  34. }else{
  35. window.location.href = "${ctx}/platform/system/sysPaur/list.ht";
  36. }
  37. });
  38. } else {
  39. $.ligerDialog.err("提示信息","系统参数值失败!",obj.getMessage());
  40. }
  41. }
  42. </script>
  43. </head>
  44. <body>
  45. <div class="panel">
  46. <div class="panel-top">
  47. <div class="tbar-title">
  48. <c:choose>
  49. <c:when test="${sysPaur.paurid !=null}">
  50. <span class="tbar-label">编辑SYS_PAUR</span>
  51. </c:when>
  52. <c:otherwise>
  53. <span class="tbar-label">添加SYS_PAUR</span>
  54. </c:otherwise>
  55. </c:choose>
  56. </div>
  57. <div class="panel-toolbar">
  58. <div class="toolBar">
  59. <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a></div>
  60. <div class="l-bar-separator"></div>
  61. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="panel-body">
  66. <form id="sysPaurForm" method="post" action="save.ht">
  67. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  68. <tr>
  69. <th width="20%">名称: </th>
  70. <td><input type="text" id="paurname" name="paurname" value="${sysPaur.paurname}" class="inputText" validate="{required:false,maxlength:30}" /></td>
  71. </tr>
  72. <tr>
  73. <th width="20%">别名: <span class="required">*</span></th>
  74. <td><input type="text" id="aliasname" name="aliasname" value="${sysPaur.aliasname}" readonly="readonly" class="inputText" validate="{required:true,maxlength:30}" /></td>
  75. </tr>
  76. <tr>
  77. <th width="20%">值: <span class="required">*</span></th>
  78. <td><input type="text" id="paurvalue" name="paurvalue" value="${sysPaur.paurvalue}" class="inputText" validate="{required:true,maxlength:50}" />
  79. <input type="hidden" id="userid" name="userid" value="${sysPaur.userid}" class="inputText" validate="{required:true,maxlength:22,number:true }" />
  80. </td>
  81. </tr>
  82. </table>
  83. <input type="hidden" name="paurid" value="${sysPaur.paurid}" />
  84. </form>
  85. </div>
  86. </div>
  87. </body>
  88. </html>