| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>查看传阅件</title>
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/main.css" rel="stylesheet" type="text/css" />
- <script src="/shares/js/jquery-1.8.2.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript">
- $(function(){
- loadTypeTree("button", {
- type : "user",
- tab : "1",
- backId : "users",
- backName : "usernames"
- });
- });
- function close1(){
- window.parent.tab.removeSelectedTabItem();
- }
- function openFeedback(){
- $.ligerDialog.open({
- target: $("#feedbackDiv"),
- width: 700,
- height: 300,
- title: "反馈"});
- }
- function openCirculate(){
- $.ligerDialog.open({
- target: $("#circulateDiv"),
- width: 700,
- height: 300,
- title: "传阅"});
- }
- function feedback(){
- var rs = $.validate({
- name : "feedback",
- model : [ {
- type : "require",
- msg : "请填写反馈内容!"
- }, {
- type : "len",
- min : 1,
- max : 200,
- msg : "反馈内容不能超过200个字!"
- }]
- });
- if(!rs){
- return;
- }
- $.ajax({
- url : "govCirculateAction.do",
- async : false,
- type : "post",
- data : {"task": "feedback",
- "id": "${requestScope.info.ci.id }",
- "feedback": encodeURI($("#feedback").val()),
- "isSms": $("#isSms").val()},
- success : function(data) {
- if(data == "false"){
- addError("操作失败!");
- } else {
- addWaitInfo("反馈成功!",500);
- location = "govCirculateAction.do?task=toInfo&isRead=1&id=${requestScope.info.ci.id }";
- }
- },
- error : function() {
- alert("数据处理失败,请检查网络重新登录或联系管理员!");
- }
- });
- }
- function circulate(){
- var rs = $.validate({
- name : "usernames",
- model : [ {
- type : "require",
- msg : "请选择接收人!"
- }]
- });
- if(!rs){
- return;
- }
- $.ajax({
- url : "govCirculateAction.do",
- async : false,
- type : "post",
- data : {"task": "circulate",
- "id": "${requestScope.info.ci.id }",
- "users": encodeURI($("#users").val()),
- "isSms": $("#isSms").val()},
- success : function(data) {
- if(data == "false"){
- addError("操作失败!");
- } else {
- addWaitInfo("继续传阅成功!",500);
- location = "govCirculateAction.do?task=toInfo&isRead=0&id="+data;
- }
- },
- error : function() {
- alert("数据处理失败,请检查网络重新登录或联系管理员!");
- }
- });
- }
- </script>
- </head>
- <body>
- <form action="govCirculateAction.do" method="post" onsubmit="">
- <div id="title" class="form-button">
- <input onclick="close1();" type="button" value="关闭" class="l-button">
- <input onclick="openCirculate()" type="button" value="传阅" class="l-button">
- <c:if test="${requestScope.isRead == '1' }">
- <input onclick="openFeedback()" type="button" value="反馈" class="l-button">
- </c:if>
- </div>
- <div class="container-layout" >
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <th colspan="2">查看传阅件</th>
- </tr>
- <tr>
- <td class="l-table-edit-text">标题<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- ${requestScope.info.ci.title }
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">类型<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <c:choose>
- <c:when test="${requestScope.info.ci.type=='0' }">普通
- </c:when>
- <c:otherwise>紧急</c:otherwise>
- </c:choose>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">内容<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- ${requestScope.info.ci.content }
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">附件:</td>
- <td class="l-table-edit-td">
- <c:if test="${requestScope.info.files == null || requestScope.info.files == '' }">无附件</c:if>
- <span class="l-file" len="20">${requestScope.info.files }</span>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">接收人:</td>
- <td class="l-table-edit-td">
- <c:forEach items="${requestScope.info.crList }" var="cr">
- ${cr.username } (<c:choose><c:when test="${cr.state =='2' }">已阅 ${fn:substring(cr.receivedate, 0, 19) }</c:when><c:otherwise>未阅</c:otherwise></c:choose>)<br>
- </c:forEach>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">反馈信息:</td>
- <td class="l-table-edit-td">
- <c:if test="${fn:length(requestScope.info.cfbList) == 0 }">无反馈信息</c:if>
- <c:forEach items="${requestScope.info.cfbList }" var="cfb">
- ${cfb.username } (${fn:substring(cfb.createdate, 0, 19) }) : ${cfb.feedback } <br>
- </c:forEach>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">短信通知:</td>
- <td class="l-table-edit-td">
- <c:choose>
- <c:when test="${requestScope.info.ci.isSms=='0' }">否
- </c:when>
- <c:otherwise>是</c:otherwise>
- </c:choose>
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
-
- </td>
- </tr>
- </table>
- </center>
- </div>
- </div>
- <!-- 反馈div -->
- <div id="feedbackDiv" name="feedbackDiv" style="display: none;">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <td class="l-table-edit-text">反馈内容<FONT COLOR="red">*</FONT>:</td>
- <td class="l-table-edit-td">
- <textarea rows="5" cols="40" id="feedback" name="feedback" maxlength="200"></textarea>
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">短信通知:</td>
- <td class="l-table-edit-td">
- <input type="radio" id="isSms" name="isSms" value="0" checked="checked"> 否
- <input type="radio" id="isSms" name="isSms" value="1"> 是
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- <input type="button" value="提交反馈" class="l-button" onclick="feedback()">
- </th>
- </tr>
- </table>
- </center>
- </div>
- </div>
- <!-- 传阅div -->
- <div id="circulateDiv" name="circulateDiv" style="display: none;">
- <div class="forum-container">
- <center>
- <table class="l-table-edit line">
- <tr>
- <td class="l-table-edit-text">接收人:</td>
- <td class="l-table-edit-td">
- <textarea name="usernames" id="usernames" cols="50" rows="3" readonly="readonly" ></textarea>
- <input type="button" class="l-button" id="button" value="选择人员">
- <input type="hidden" name="users" id="users" readonly="readonly" />
- </td>
- </tr>
- <tr>
- <td class="l-table-edit-text">短信通知:</td>
- <td class="l-table-edit-td">
- <input type="radio" id="isSms" name="isSms" value="0" checked="checked"> 否
- <input type="radio" id="isSms" name="isSms" value="1"> 是
- </td>
- </tr>
- <tr>
- <td colspan="2" style="text-align: center;">
- <input type="button" value="继续传阅" class="l-button" onclick="circulate()">
- </th>
- </tr>
- </table>
- </center>
- </div>
- </div>
- </form>
- </body>
- </html>
|