123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/webpage/include/taglib.jsp"%>
- <html>
- <head>
- <title>要闻内容管理管理</title>
- <meta name="decorator" content="ani"/>
- <script type="text/javascript">
- $(document).ready(function() {
- });
- function save() {
- var isValidate = jp.validateForm('#inputForm');//校验表单
- if(!isValidate){
- return false;
- }else{
- jp.loading();
- jp.post("${ctx}/app/base/appBaseNews/save",$('#inputForm').serialize(),function(data){
- if(data.success){
- jp.getParent().refresh();
- var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
- parent.layer.close(dialogIndex);
- jp.success(data.msg)
- }else{
- jp.error(data.msg);
- }
- })
- }
- }
- </script>
- </head>
- <body class="bg-white">
- <form:form id="inputForm" modelAttribute="appBaseNews" class="form-horizontal">
- <form:hidden path="id"/>
- <table class="table table-bordered">
- <tbody>
- <tr>
- <c:if test="${appBaseNews.typeId == '3'}">
- <td class="width-15 active"><label class="pull-right">栏目:</label></td>
- <td class="width-35">
- <form:select path="navId.id" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${navList}" itemLabel="title" itemValue="id" htmlEscape="false"/>
- </form:select>
- </td>
- </c:if>
- <td class="width-15 active"><label class="pull-right">类别:</label></td>
- <td class="width-35">
- <form:select path="typeId" class="form-control ">
- <form:option value="" label=""/>
- <form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
- </form:select>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right">图片地址:</label></td>
- <td class="width-35">
- <sys:fileUpload path="cover" value="${appBaseNews.cover}" type="file" uploadPath="/app/base/appBaseNews"/>
- </td>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>要闻标题:</label></td>
- <td class="width-35">
- <form:input path="title" htmlEscape="false" class="form-control required"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>内容:</label></td>
- <td class="width-35">
- <form:textarea path="content" htmlEscape="false" rows="4" class="form-control required"/>
- </td>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>所属组织:</label></td>
- <td class="width-35">
- <sys:treeselect id="dept" name="dept.id" value="${appBaseNews.dept.id}" labelName="dept.name" labelValue="${appBaseNews.dept.name}"
- title="所属组织" url="/leader/org/leaderOrgNo/treeData" extId="${appBaseNews.id}" cssClass="form-control required" allowClear="true"/>
- </td>
- </tr>
- <tr>
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>是否在首页中显示:</label></td>
- <td class="width-35">
- <form:radiobuttons path="display" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false" class="i-checks required"/>
- </td>
- <td class="width-15 active"></td>
- <td class="width-35" ></td>
- </tr>
- </tbody>
- </table>
- </form:form>
- </body>
- </html>
|