sysPropertyEdit.jsp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%--
  2. time:2015-04-16 11:20:41
  3. desc:edit the 系统配置参数表
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 系统配置参数表</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">
  13. $(function() {
  14. $("a.save").click(function() {
  15. $("#sysPropertyForm").attr("action","save.ht");
  16. $("#saveData").val(1);
  17. submitForm();
  18. });
  19. });
  20. //提交表单
  21. function submitForm(){
  22. var options={};
  23. if(showResponse){
  24. options.success=showResponse;
  25. }
  26. var frm=$('#sysPropertyForm').form();
  27. frm.ajaxForm(options);
  28. if(frm.valid()){
  29. frm.submit();
  30. }
  31. }
  32. function showResponse(responseText) {
  33. var obj = new com.hotent.form.ResultMessage(responseText);
  34. if (obj.isSuccess()) {
  35. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  36. window.location.href = "${ctx}/platform/system/sysProperty/list.ht";
  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. <span class="tbar-label"><span></span>编辑系统配置参数表</span>
  49. </div>
  50. <div class="panel-toolbar">
  51. <div class="toolBar">
  52. <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
  53. <div class="l-bar-separator"></div>
  54. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="panel-body">
  59. <form id="sysPropertyForm" method="post" action="save.ht">
  60. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  61. <tr>
  62. <th width="20%">名称: </th>
  63. <td>${sysProperty.name}</td>
  64. </tr>
  65. <tr>
  66. <th width="20%">别名: </th>
  67. <td>${sysProperty.alias}</td>
  68. </tr>
  69. <tr>
  70. <th width="20%">分组: </th>
  71. <td>${sysProperty.group}</td>
  72. </tr>
  73. <tr>
  74. <th width="20%">值: </th>
  75. <td><input type="text" id="value" name="value" value='${sysProperty.value}' style="width: 400px" class="inputText" validate="{required:false}" /></td>
  76. </tr>
  77. <tr>
  78. <th width="20%">排序: </th>
  79. <td><input type="text" id="sn" name="sn" value="${sysProperty.sn}" class="inputText" validate="{required:false,number:true}" /></td>
  80. </tr>
  81. <tr>
  82. <th width="20%">备注: </th>
  83. <td>
  84. <textarea rows="5" cols="60" name="memo">${sysProperty.memo}</textarea>
  85. </td>
  86. </tr>
  87. </table>
  88. <input type="hidden" name="id" value="${sysProperty.id}" />
  89. </form>
  90. </div>
  91. </div>
  92. </body>
  93. </html>