info.jsp 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  9. <title>查看传阅件</title>
  10. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
  12. <script src="/shares/js/jquery-1.8.2.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/file.js"></script>
  17. <script type="text/javascript">
  18. $(function(){
  19. loadTypeTree("button", {
  20. type : "user",
  21. tab : "1",
  22. backId : "users",
  23. backName : "usernames"
  24. });
  25. });
  26. function close1(){
  27. window.parent.tab.removeSelectedTabItem();
  28. }
  29. function openFeedback(){
  30. $.ligerDialog.open({
  31. target: $("#feedbackDiv"),
  32. width: 700,
  33. height: 300,
  34. title: "反馈"});
  35. }
  36. function openCirculate(){
  37. $.ligerDialog.open({
  38. target: $("#circulateDiv"),
  39. width: 700,
  40. height: 300,
  41. title: "传阅"});
  42. }
  43. function feedback(){
  44. var rs = $.validate({
  45. name : "feedback",
  46. model : [ {
  47. type : "require",
  48. msg : "请填写反馈内容!"
  49. }, {
  50. type : "len",
  51. min : 1,
  52. max : 200,
  53. msg : "反馈内容不能超过200个字!"
  54. }]
  55. });
  56. if(!rs){
  57. return;
  58. }
  59. $.ajax({
  60. url : "govCirculateAction.do",
  61. async : false,
  62. type : "post",
  63. data : {"task": "feedback",
  64. "id": "${requestScope.info.ci.id }",
  65. "feedback": encodeURI($("#feedback").val()),
  66. "isSms": $("#isSms").val()},
  67. success : function(data) {
  68. if(data == "false"){
  69. addError("操作失败!");
  70. } else {
  71. addWaitInfo("反馈成功!",500);
  72. location = "govCirculateAction.do?task=toInfo&isRead=1&id=${requestScope.info.ci.id }";
  73. }
  74. },
  75. error : function() {
  76. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  77. }
  78. });
  79. }
  80. function circulate(){
  81. var rs = $.validate({
  82. name : "usernames",
  83. model : [ {
  84. type : "require",
  85. msg : "请选择接收人!"
  86. }]
  87. });
  88. if(!rs){
  89. return;
  90. }
  91. $.ajax({
  92. url : "govCirculateAction.do",
  93. async : false,
  94. type : "post",
  95. data : {"task": "circulate",
  96. "id": "${requestScope.info.ci.id }",
  97. "users": encodeURI($("#users").val()),
  98. "isSms": $("#isSms").val()},
  99. success : function(data) {
  100. if(data == "false"){
  101. addError("操作失败!");
  102. } else {
  103. addWaitInfo("继续传阅成功!",500);
  104. location = "govCirculateAction.do?task=toInfo&isRead=0&id="+data;
  105. }
  106. },
  107. error : function() {
  108. alert("数据处理失败,请检查网络重新登录或联系管理员!");
  109. }
  110. });
  111. }
  112. </script>
  113. </head>
  114. <body>
  115. <form action="govCirculateAction.do" method="post" onsubmit="">
  116. <div id="title" class="form-button">
  117. <input onclick="close1();" type="button" value="关闭" class="l-button">
  118. <input onclick="openCirculate()" type="button" value="传阅" class="l-button">
  119. <c:if test="${requestScope.isRead == '1' }">
  120. <input onclick="openFeedback()" type="button" value="反馈" class="l-button">
  121. </c:if>
  122. </div>
  123. <div class="container-layout" >
  124. <div class="forum-container">
  125. <center>
  126. <table class="l-table-edit line">
  127. <tr>
  128. <th colspan="2">查看传阅件</th>
  129. </tr>
  130. <tr>
  131. <td class="l-table-edit-text">标题<FONT COLOR="red">*</FONT>:</td>
  132. <td class="l-table-edit-td">
  133. ${requestScope.info.ci.title }
  134. </td>
  135. </tr>
  136. <tr>
  137. <td class="l-table-edit-text">类型<FONT COLOR="red">*</FONT>:</td>
  138. <td class="l-table-edit-td">
  139. <c:choose>
  140. <c:when test="${requestScope.info.ci.type=='0' }">普通
  141. </c:when>
  142. <c:otherwise>紧急</c:otherwise>
  143. </c:choose>
  144. </td>
  145. </tr>
  146. <tr>
  147. <td class="l-table-edit-text">内容<FONT COLOR="red">*</FONT>:</td>
  148. <td class="l-table-edit-td">
  149. ${requestScope.info.ci.content }
  150. </td>
  151. </tr>
  152. <tr>
  153. <td class="l-table-edit-text">附件:</td>
  154. <td class="l-table-edit-td">
  155. <c:if test="${requestScope.info.files == null || requestScope.info.files == '' }">无附件</c:if>
  156. <span class="l-file" len="20">${requestScope.info.files }</span>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td class="l-table-edit-text">接收人:</td>
  161. <td class="l-table-edit-td">
  162. <c:forEach items="${requestScope.info.crList }" var="cr">
  163. ${cr.username } (<c:choose><c:when test="${cr.state =='2' }">已阅&nbsp;&nbsp;${fn:substring(cr.receivedate, 0, 19) }</c:when><c:otherwise>未阅</c:otherwise></c:choose>)<br>
  164. </c:forEach>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="l-table-edit-text">反馈信息:</td>
  169. <td class="l-table-edit-td">
  170. <c:if test="${fn:length(requestScope.info.cfbList) == 0 }">无反馈信息</c:if>
  171. <c:forEach items="${requestScope.info.cfbList }" var="cfb">
  172. ${cfb.username } (${fn:substring(cfb.createdate, 0, 19) }) : ${cfb.feedback } <br>
  173. </c:forEach>
  174. </td>
  175. </tr>
  176. <tr>
  177. <td class="l-table-edit-text">短信通知:</td>
  178. <td class="l-table-edit-td">
  179. <c:choose>
  180. <c:when test="${requestScope.info.ci.isSms=='0' }">否
  181. </c:when>
  182. <c:otherwise>是</c:otherwise>
  183. </c:choose>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td colspan="2" style="text-align: center;">
  188. &nbsp;
  189. </td>
  190. </tr>
  191. </table>
  192. </center>
  193. </div>
  194. </div>
  195. <!-- 反馈div -->
  196. <div id="feedbackDiv" name="feedbackDiv" style="display: none;">
  197. <div class="forum-container">
  198. <center>
  199. <table class="l-table-edit line">
  200. <tr>
  201. <td class="l-table-edit-text">反馈内容<FONT COLOR="red">*</FONT>:</td>
  202. <td class="l-table-edit-td">
  203. <textarea rows="5" cols="40" id="feedback" name="feedback" maxlength="200"></textarea>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td class="l-table-edit-text">短信通知:</td>
  208. <td class="l-table-edit-td">
  209. <input type="radio" id="isSms" name="isSms" value="0" checked="checked">&nbsp;&nbsp;否&nbsp;&nbsp;
  210. <input type="radio" id="isSms" name="isSms" value="1">&nbsp;&nbsp;是
  211. </td>
  212. </tr>
  213. <tr>
  214. <td colspan="2" style="text-align: center;">
  215. <input type="button" value="提交反馈" class="l-button" onclick="feedback()">
  216. </th>
  217. </tr>
  218. </table>
  219. </center>
  220. </div>
  221. </div>
  222. <!-- 传阅div -->
  223. <div id="circulateDiv" name="circulateDiv" style="display: none;">
  224. <div class="forum-container">
  225. <center>
  226. <table class="l-table-edit line">
  227. <tr>
  228. <td class="l-table-edit-text">接收人:</td>
  229. <td class="l-table-edit-td">
  230. <textarea name="usernames" id="usernames" cols="50" rows="3" readonly="readonly" ></textarea>
  231. <input type="button" class="l-button" id="button" value="选择人员">
  232. <input type="hidden" name="users" id="users" readonly="readonly" />
  233. </td>
  234. </tr>
  235. <tr>
  236. <td class="l-table-edit-text">短信通知:</td>
  237. <td class="l-table-edit-td">
  238. <input type="radio" id="isSms" name="isSms" value="0" checked="checked">&nbsp;&nbsp;否&nbsp;&nbsp;
  239. <input type="radio" id="isSms" name="isSms" value="1">&nbsp;&nbsp;是
  240. </td>
  241. </tr>
  242. <tr>
  243. <td colspan="2" style="text-align: center;">
  244. <input type="button" value="继续传阅" class="l-button" onclick="circulate()">
  245. </th>
  246. </tr>
  247. </table>
  248. </center>
  249. </div>
  250. </div>
  251. </form>
  252. </body>
  253. </html>