appBaseNewsForm.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/webpage/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>要闻内容管理管理</title>
  6. <meta name="decorator" content="ani"/>
  7. <script type="text/javascript">
  8. $(document).ready(function() {
  9. });
  10. function save() {
  11. var isValidate = jp.validateForm('#inputForm');//校验表单
  12. if(!isValidate){
  13. return false;
  14. }else{
  15. jp.loading();
  16. jp.post("${ctx}/app/base/appBaseNews/save",$('#inputForm').serialize(),function(data){
  17. if(data.success){
  18. jp.getParent().refresh();
  19. var dialogIndex = parent.layer.getFrameIndex(window.name); // 获取窗口索引
  20. parent.layer.close(dialogIndex);
  21. jp.success(data.msg)
  22. }else{
  23. jp.error(data.msg);
  24. }
  25. })
  26. }
  27. }
  28. </script>
  29. </head>
  30. <body class="bg-white">
  31. <form:form id="inputForm" modelAttribute="appBaseNews" class="form-horizontal">
  32. <form:hidden path="id"/>
  33. <table class="table table-bordered">
  34. <tbody>
  35. <tr>
  36. <c:if test="${appBaseNews.typeId == '3'}">
  37. <td class="width-15 active"><label class="pull-right">栏目:</label></td>
  38. <td class="width-35">
  39. <form:select path="navId.id" class="form-control ">
  40. <form:option value="" label=""/>
  41. <form:options items="${navList}" itemLabel="title" itemValue="id" htmlEscape="false"/>
  42. </form:select>
  43. </td>
  44. </c:if>
  45. <td class="width-15 active"><label class="pull-right">类别:</label></td>
  46. <td class="width-35">
  47. <form:select path="typeId" class="form-control ">
  48. <form:option value="" label=""/>
  49. <form:options items="${fns:getDictList('')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
  50. </form:select>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="width-15 active"><label class="pull-right">图片地址:</label></td>
  55. <td class="width-35">
  56. <sys:fileUpload path="cover" value="${appBaseNews.cover}" type="file" uploadPath="/app/base/appBaseNews"/>
  57. </td>
  58. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>要闻标题:</label></td>
  59. <td class="width-35">
  60. <form:input path="title" htmlEscape="false" class="form-control required"/>
  61. </td>
  62. </tr>
  63. <tr>
  64. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>内容:</label></td>
  65. <td class="width-35">
  66. <form:textarea path="content" htmlEscape="false" rows="4" class="form-control required"/>
  67. </td>
  68. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>所属组织:</label></td>
  69. <td class="width-35">
  70. <sys:treeselect id="dept" name="dept.id" value="${appBaseNews.dept.id}" labelName="dept.name" labelValue="${appBaseNews.dept.name}"
  71. title="所属组织" url="/leader/org/leaderOrgNo/treeData" extId="${appBaseNews.id}" cssClass="form-control required" allowClear="true"/>
  72. </td>
  73. </tr>
  74. <tr>
  75. <td class="width-15 active"><label class="pull-right"><font color="red">*</font>是否在首页中显示:</label></td>
  76. <td class="width-35">
  77. <form:radiobuttons path="display" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false" class="i-checks required"/>
  78. </td>
  79. <td class="width-15 active"></td>
  80. <td class="width-35" ></td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </form:form>
  85. </body>
  86. </html>