view.jsp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. </head>
  28. <body>
  29. <div class="wrapper wrapper-content pull-left">
  30. <cs:form_validate formId="addNewsForm" />
  31. <div class="row">
  32. <div class="col-xs-12 ">
  33. <form class="form-horizontal" onsubmit="initUe()" action="edit.cs"
  34. id="addNewsForm" method="POST">
  35. <input type="hidden" id="id" name="id" value="${bean.id}">
  36. <%-- <div class="form-group">
  37. <label class="col-sm-3 control-label">类别:</label>
  38. <div class="col-sm-6">
  39. <select id="classCode" name="classCode" class="form-control"
  40. validate="{required:true}" validateMessage="{required:'请选择类别'}">
  41. <option value="">--选择类别--</option>
  42. <c:forEach var="dic" items="${dicList}">
  43. <option value="${dic.code}"
  44. <c:if test="${dic.code eq bean.classCode}">selected</c:if>>${dic.name}</option>
  45. </c:forEach>
  46. </select>
  47. </div>
  48. </div> --%>
  49. <%-- <div class="form-group">
  50. <label class="col-sm-3 control-label">公告图标:</label>
  51. <div class="col-sm-6">
  52. <input name="newsImage" type="text" id="newsImage"
  53. value="${bean.newsImage}" class="input normal upload-path"
  54. readonly="true" />
  55. <div class="upload-box upload-img"></div>
  56. </div>
  57. </div> --%>
  58. <div class="form-group">
  59. <label class="col-sm-3 control-label">标题:</label>
  60. <div class="col-sm-6">
  61. <input id="newsTitle" name="newsTitle" value="${bean.newsTitle}"
  62. readonly="readonly" class="form-control">
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="col-sm-3 control-label">摘要:</label>
  67. <div class="col-sm-6">
  68. <input id="newsAbstract" name="newsAbstract"
  69. readonly="readonly" value="${bean.newsAbstract}" class="form-control">
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="col-sm-3 control-label">排序:</label>
  74. <div class="col-sm-6">
  75. <input id="newsSort" name="newsSort" value="${bean.newsSort}"
  76. readonly="readonly" class="form-control">(数字越小越向前排)
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label class="col-sm-3 control-label">公告图标:</label>
  81. <div class="col-sm-6">
  82. <%-- <cs:file name="newsImage" url="${bean.newsImage}" type="100" num="1"></cs:file> --%>
  83. <img alt="" src="${bean.newsImage}" style="height:100px; width:100px; cursor: pointer;">
  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.newsShow eq 1}">selected</c:if>>公开</option>
  102. <option value="0" <c:if test="${bean.newsShow eq 0}">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. ${newsContent}
  113. </div>
  114. </div>
  115. <div class="form-group">
  116. <div class="col-sm-4 col-sm-offset-3 pull-left">
  117. <button class="btn btn-default btn-dlg-close">取消</button>
  118. <!-- <button class="btn btn-primary" type="submit">提交</button> -->
  119. </div>
  120. </div>
  121. </form>
  122. </div>
  123. </div>
  124. </div>
  125. </body>
  126. </html>