topicManagementReport.jsp 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%--
  2. time:2019-05-06 10:36:04
  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. <f:link href="form.css" ></f:link>
  12. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  13. <script type="text/javascript" src="${ctx}/js/hotent/platform/form/AttachMent.js" ></script>
  14. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/HtmlUploadDialog.js"></script>
  15. <script type="text/javascript">
  16. $(function() {
  17. $("a.save").click(function() {
  18. $("#topicManagementForm").attr("action","reportSave.ht");
  19. $("#saveData").val(1);
  20. submitForm();
  21. });
  22. AttachMent.init("w");
  23. });
  24. //提交表单
  25. function submitForm(){
  26. var options={};
  27. if(showResponse){
  28. options.success=showResponse;
  29. }
  30. var frm=$('#topicManagementForm').form();
  31. frm.ajaxForm(options);
  32. if(frm.valid()){
  33. frm.submit();
  34. }
  35. }
  36. function showResponse(responseText) {
  37. var obj = new com.hotent.form.ResultMessage(responseText);
  38. if(!obj.isSuccess()){
  39. $.ligerDialog.err("提示信息"," 议题管理保存失败!",obj.getMessage());
  40. return;
  41. }
  42. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  43. if(rtn){
  44. window.location.href = window.location.href;
  45. }else{
  46. window.location.href = "${ctx}/platform/topic/topicManagement/list.ht";
  47. }
  48. });
  49. }
  50. </script>
  51. </head>
  52. <body>
  53. <div class="panel">
  54. <div class="panel-top">
  55. <div class="tbar-title">
  56. <c:choose>
  57. <c:when test="${topicManagement.id !=null}">
  58. <span class="tbar-label"><span></span>编辑议题管理</span>
  59. </c:when>
  60. <c:otherwise>
  61. <span class="tbar-label"><span></span>添加议题管理</span>
  62. </c:otherwise>
  63. </c:choose>
  64. </div>
  65. <div class="panel-toolbar">
  66. <div class="toolBar">
  67. <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a></div>
  68. <div class="l-bar-separator"></div>
  69. <div class="group"><a class="link back" href="topicSummaryList.ht"><span></span>返回</a></div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="panel-body">
  74. <form id="topicManagementForm" method="post" action="save.ht">
  75. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  76. <tr>
  77. <th width="20%">议题名称: </th>
  78. <td><input type="text" id="FTopicName" name="FTopicName" value="${topicManagement.FTopicName}" readonly="readonly" style="width: 350px;" class="inputText" validate="{required:false,maxlength:50}" /></td>
  79. </tr>
  80. <tr>
  81. <th width="20%">议题标签: </th>
  82. <td><input type="text" id="FTopicLabel" name="FTopicLabel" value="${topicManagement.FTopicLabel}" readonly="readonly" style="width: 350px;" class="inputText" validate="{required:false,maxlength:100}" /></td>
  83. </tr>
  84. <tr>
  85. <th width="20%">议题分类: </th>
  86. <td>
  87. <select id="FTopicClassification" name="FTopicClassification" class="inputText" style="width: 376px;" validate="{required:true}">
  88. <option>--请选择--</option>
  89. <option value="0" <c:if test="${topicManagement.FTopicClassification ==0}"> selected="selected"</c:if> >房屋和建筑物</option>
  90. <option value="1" <c:if test="${topicManagement.FTopicClassification ==1}"> selected="selected"</c:if> >办公设备</option>
  91. <option value="2" <c:if test="${topicManagement.FTopicClassification ==2}"> selected="selected"</c:if> >专用设备</option>
  92. <option value="3" <c:if test="${topicManagement.FTopicClassification ==3}"> selected="selected"</c:if> >文物和陈列品</option>
  93. <option value="4" <c:if test="${topicManagement.FTopicClassification ==4}"> selected="selected"</c:if> >图书</option>
  94. <option value="5" <c:if test="${topicManagement.FTopicClassification ==5}"> selected="selected"</c:if> >运输设备</option>
  95. <option value="6" <c:if test="${topicManagement.FTopicClassification ==6}"> selected="selected"</c:if> >机械设备</option>
  96. <option value="7" <c:if test="${topicManagement.FTopicClassification ==7}"> selected="selected"</c:if> >其他</option>
  97. </select>
  98. </td>
  99. </tr>
  100. <tr>
  101. <th width="20%">议题简介: </th>
  102. <td><textarea type="text" id="FTopicSynopsis" name="FTopicSynopsis" readonly="readonly" style="resize:none;width: 350px;height: 200px;" class="inputText" validate="{required:false}">${topicManagement.FTopicSynopsis}</textarea></td>
  103. </tr>
  104. <%-- <tr>
  105. <th width="20%">上报时间: </th>
  106. <td><input type="text" id="FReportingTime" name="FReportingTime" value="<fmt:formatDate value='${topicManagement.FReportingTime}' pattern='yyyy-MM-dd'/>" style="width: 350px;" class="inputText date" validate="{date:true}" /></td>
  107. </tr> --%>
  108. <tr>
  109. <th width="15%">附件: </th>
  110. <td>
  111. <div name="div_attachment_container">
  112. <div class="attachement"></div>
  113. <textarea style="display: none" controltype="attachment"
  114. id="FAttachment" name="FAttachment" lablename="主表附件" validate="{}">${topicManagement.FAttachment}</textarea>
  115. <a href="javascript:;" field="FAttachment" class="link selectFile"
  116. atype="select" onclick="AttachMent.addFile(this);">选择</a>
  117. </div>
  118. </td>
  119. </tr>
  120. </table>
  121. <input type="hidden" name="id" value="${topicManagement.id}" />
  122. <input type="hidden" name="saveData" id="saveData" />
  123. <input type="hidden" name="executeType" value="start" />
  124. </form>
  125. </div>
  126. </div>
  127. </body>
  128. </html>