edit.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <!doctype html>
  4. <html>
  5. <head>
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <link rel="stylesheet" type="text/css"
  10. href="../res/css/plugins/webuploader/webuploader.css">
  11. <%@ include file="../../common/head.jsp"%>
  12. <script src="../res/js/plugins/webuploader/webuploader.min.js"
  13. type="text/javascript"></script>
  14. <script src="../res/js/plugins/webuploader/uploader.js"
  15. type="text/javascript"></script>
  16. <!-- jqGrid -->
  17. <script>
  18. <!--
  19. function initUe(){
  20. $("#newsContent").val(ue.getContent());
  21. }
  22. //-->
  23. /* $(document).ready(function() {
  24. $(".upload-img").InitUploader({ sendurl: "uploadPic.cs", swf: "../res/js/plugins/webuploader/uploader.swf" });
  25. }); */
  26. </script>
  27. <cs:initFile/>
  28. </head>
  29. <body>
  30. <div class="wrapper wrapper-content pull-left">
  31. <cs:form_validate formId="addNewsForm" />
  32. <div class="row">
  33. <div class="col-xs-12 ">
  34. <form class="form-horizontal" onsubmit="initUe()" action="edit.cs"
  35. id="addNewsForm" method="POST">
  36. <input type="hidden" id="id" name="id" value="${bean.id}">
  37. <%-- <div class="form-group">
  38. <label class="col-sm-3 control-label">类别:</label>
  39. <div class="col-sm-6">
  40. <select id="classCode" name="classCode" class="form-control"
  41. validate="{required:true}" validateMessage="{required:'请选择类别'}">
  42. <option value="">--选择类别--</option>
  43. <c:forEach var="dic" items="${dicList}">
  44. <option value="${dic.code}"
  45. <c:if test="${dic.code eq bean.classCode}">selected</c:if>>${dic.name}</option>
  46. </c:forEach>
  47. </select>
  48. </div>
  49. </div> --%>
  50. <%-- <div class="form-group">
  51. <label class="col-sm-3 control-label">公告图标:</label>
  52. <div class="col-sm-6">
  53. <input name="newsImage" type="text" id="newsImage"
  54. value="${bean.newsImage}" class="input normal upload-path"
  55. readonly="true" />
  56. <div class="upload-box upload-img"></div>
  57. </div>
  58. </div> --%>
  59. <div class="form-group">
  60. <label class="col-sm-3 control-label">标题:</label>
  61. <div class="col-sm-6">
  62. <input id="newsTitle" name="newsTitle" value="${bean.newsTitle}"
  63. class="form-control">
  64. </div>
  65. </div>
  66. <%--<div class="form-group">
  67. <label class="col-sm-3 control-label">摘要:</label>
  68. <div class="col-sm-6">
  69. <input id="newsAbstract" name="newsAbstract"
  70. value="${bean.newsAbstract}" class="form-control">
  71. </div>
  72. </div>--%>
  73. <div class="form-group">
  74. <label class="col-sm-3 control-label">排序:</label>
  75. <div class="col-sm-6">
  76. <input id="newsSort" name="newsSort" value="${bean.newsSort}"
  77. class="form-control">(数字越小越向前排)
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="col-sm-3 control-label">公告图标:</label>
  82. <div class="col-sm-6">
  83. <cs:file name="newsImage" url="${bean.newsImage}" type="100" num="1"></cs:file>
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <label class="col-sm-3 control-label">是否显示:</label>
  88. <div class="col-sm-6">
  89. <select id="newsShow" name="newsShow" class="form-control">
  90. <option value="1"
  91. <c:if test="${bean.newsShow eq 1}">selected</c:if>>显示</option>
  92. <option value="2"
  93. <c:if test="${bean.newsShow eq 2}">selected</c:if>>隐藏</option>
  94. </select>
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label class="col-sm-3 control-label">是否公开:</label>
  99. <div class="col-sm-6">
  100. <select id="openFlag" name="openFlag" class="form-control">
  101. <option value="1" <c:if test="${bean.openFlag eq true}">selected</c:if>>公开</option>
  102. <option value="0" <c:if test="${bean.openFlag eq false}">selected</c:if>>内部</option>
  103. </select>
  104. </div>
  105. </div>
  106. <div class="form-group ">
  107. <label class="col-xs-3 control-label">详情:</label> <input
  108. type="hidden" id="newsContent" name="newsContent"
  109. value='${newsContent }' />
  110. <div class="col-xs-9">
  111. <cs:wordedit name="详情" content='${newsContent}' />
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <div class="col-sm-4 col-sm-offset-3 pull-left">
  116. <button class="btn btn-default btn-dlg-close">取消</button>
  117. <button class="btn btn-primary" type="submit">提交</button>
  118. </div>
  119. </div>
  120. </form>
  121. </div>
  122. </div>
  123. </div>
  124. </body>
  125. </html>