123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <%--
- time:2019-05-06 10:36:04
- desc:edit the 议题管理
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 议题管理</title>
- <%@include file="/commons/include/form.jsp" %>
- <f:link href="form.css" ></f:link>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/form/AttachMent.js" ></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/system/HtmlUploadDialog.js"></script>
- <script type="text/javascript">
- $(function() {
- $("a.save").click(function() {
- $("#topicManagementForm").attr("action","reportSave.ht");
- $("#saveData").val(1);
- submitForm();
- });
- AttachMent.init("w");
- });
- //提交表单
- function submitForm(){
- var options={};
- if(showResponse){
- options.success=showResponse;
- }
- var frm=$('#topicManagementForm').form();
- frm.ajaxForm(options);
- if(frm.valid()){
- frm.submit();
- }
- }
-
- function showResponse(responseText) {
- var obj = new com.hotent.form.ResultMessage(responseText);
- if(!obj.isSuccess()){
- $.ligerDialog.err("提示信息"," 议题管理保存失败!",obj.getMessage());
- return;
- }
- $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
- if(rtn){
- window.location.href = window.location.href;
- }else{
- window.location.href = "${ctx}/platform/topic/topicManagement/list.ht";
- }
- });
- }
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${topicManagement.id !=null}">
- <span class="tbar-label"><span></span>编辑议题管理</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label"><span></span>添加议题管理</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a></div>
- <div class="l-bar-separator"></div>
- <div class="group"><a class="link back" href="topicSummaryList.ht"><span></span>返回</a></div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="topicManagementForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
- <tr>
- <th width="20%">议题名称: </th>
- <td><input type="text" id="FTopicName" name="FTopicName" value="${topicManagement.FTopicName}" readonly="readonly" style="width: 350px;" class="inputText" validate="{required:false,maxlength:50}" /></td>
- </tr>
- <tr>
- <th width="20%">议题标签: </th>
- <td><input type="text" id="FTopicLabel" name="FTopicLabel" value="${topicManagement.FTopicLabel}" readonly="readonly" style="width: 350px;" class="inputText" validate="{required:false,maxlength:100}" /></td>
- </tr>
- <tr>
- <th width="20%">议题分类: </th>
- <td>
- <select id="FTopicClassification" name="FTopicClassification" class="inputText" style="width: 376px;" validate="{required:true}">
- <option>--请选择--</option>
- <option value="0" <c:if test="${topicManagement.FTopicClassification ==0}"> selected="selected"</c:if> >房屋和建筑物</option>
- <option value="1" <c:if test="${topicManagement.FTopicClassification ==1}"> selected="selected"</c:if> >办公设备</option>
- <option value="2" <c:if test="${topicManagement.FTopicClassification ==2}"> selected="selected"</c:if> >专用设备</option>
- <option value="3" <c:if test="${topicManagement.FTopicClassification ==3}"> selected="selected"</c:if> >文物和陈列品</option>
- <option value="4" <c:if test="${topicManagement.FTopicClassification ==4}"> selected="selected"</c:if> >图书</option>
- <option value="5" <c:if test="${topicManagement.FTopicClassification ==5}"> selected="selected"</c:if> >运输设备</option>
- <option value="6" <c:if test="${topicManagement.FTopicClassification ==6}"> selected="selected"</c:if> >机械设备</option>
- <option value="7" <c:if test="${topicManagement.FTopicClassification ==7}"> selected="selected"</c:if> >其他</option>
- </select>
- </td>
- </tr>
- <tr>
- <th width="20%">议题简介: </th>
- <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>
- </tr>
- <%-- <tr>
- <th width="20%">上报时间: </th>
- <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>
- </tr> --%>
- <tr>
- <th width="15%">附件: </th>
- <td>
- <div name="div_attachment_container">
- <div class="attachement"></div>
- <textarea style="display: none" controltype="attachment"
- id="FAttachment" name="FAttachment" lablename="主表附件" validate="{}">${topicManagement.FAttachment}</textarea>
- <a href="javascript:;" field="FAttachment" class="link selectFile"
- atype="select" onclick="AttachMent.addFile(this);">选择</a>
- </div>
- </td>
- </tr>
- </table>
- <input type="hidden" name="id" value="${topicManagement.id}" />
- <input type="hidden" name="saveData" id="saveData" />
- <input type="hidden" name="executeType" value="start" />
- </form>
-
- </div>
- </div>
- </body>
- </html>
|