sysSensitileWordsEdit.jsp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <%--
  2. time:2017-04-12 16:47:48
  3. desc:edit the SYS_SENSITIVE_WORDS
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 SYS_SENSITIVE_WORDS</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. $("#sysSensitileWordsForm").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=$('#sysSensitileWordsForm').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.err("提示信息"," SYS_SENSITIVE_WORDS保存失败!",obj.getMessage());
  36. return;
  37. }
  38. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  39. if(rtn){
  40. window.location.href = window.location.href;
  41. }else{
  42. window.location.href = "${ctx}/platform/system/sysSensitileWords/list.ht";
  43. }
  44. });
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <div class="panel">
  50. <div class="panel-top">
  51. <div class="tbar-title">
  52. <c:choose>
  53. <c:when test="${sysSensitileWords.id !=null}">
  54. <span class="tbar-label"><span></span>编辑SYS_SENSITIVE_WORDS</span>
  55. </c:when>
  56. <c:otherwise>
  57. <span class="tbar-label"><span></span>添加SYS_SENSITIVE_WORDS</span>
  58. </c:otherwise>
  59. </c:choose>
  60. </div>
  61. <div class="panel-toolbar">
  62. <div class="toolBar">
  63. <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
  64. <div class="l-bar-separator"></div>
  65. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="panel-body">
  70. <form id="sysSensitileWordsForm" method="post" action="save.ht">
  71. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  72. <tr>
  73. <th width="20%"></th>
  74. <td><font color="red" size="2">&nbsp;注:每个敏感词用","隔开。例如:敏感词1,敏感词2,......</font></td>
  75. </tr>
  76. <tr>
  77. <th width="20%">敏感词项: </th>
  78. <td>
  79. <textarea id="sensitivewordscount" name="sensitivewordscount" rows="20" style="width: 1000px">${sysSensitileWords.sensitivewordscount}</textarea>
  80. </td>
  81. </tr>
  82. </table>
  83. <input type="hidden" name="id" value="${sysSensitileWords.id}" />
  84. <input type="hidden" name="saveData" id="saveData" />
  85. <input type="hidden" name="executeType" value="start" />
  86. </form>
  87. </div>
  88. </div>
  89. </body>
  90. </html>