noticeList.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  8. <title>首页</title>
  9. <script type=text/javascript src="/shares/js/jquery-1.6.4.min.js"></script>
  10. <link href="${pageContext.request.contextPath}//liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <link href="main.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript" src="/shares/js/yw/core/includeList.js"></script>
  15. <style type="text/css">
  16. .index-bottom{
  17. padding-top:5px;
  18. padding-left:5px;
  19. float-left:right;
  20. }
  21. #msgTitle{
  22. width:90%;
  23. -o-text-overflow: ellipsis;
  24. text-overflow:ellipsis;
  25. white-space:nowrap;
  26. overflow:hidden;
  27. text-align: left;
  28. }
  29. .recName{
  30. -o-text-overflow: ellipsis;
  31. text-overflow:ellipsis;
  32. white-space:nowrap;
  33. overflow:hidden;
  34. text-align: center;
  35. width:120px;
  36. }
  37. .read{
  38. color: gray;
  39. text-align: center;
  40. }
  41. .unread{
  42. color: #1f58a5;
  43. text-align: center;
  44. }
  45. .forum-container td{text-align: center}
  46. .forum-container th{text-align: center}
  47. .index-table {border-right:solid 1px #c3c4c6;table-layout:fixed;}
  48. .index-table td {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  49. </style>
  50. <script type="text/javascript">
  51. function openMsg(uid,did){
  52. var tabid = "ligerui" + new Date().toDateString();
  53. // addTab(tabid, "消息查看", "seeRecMessage.do?messageid="+mid+"&universalid="+uid,true);
  54. addTab(new Date().getTime(), "公告查看", "Notice.do?task=editandsee&type=see&documentIds="+did+"&universalid="+uid,true);
  55. }
  56. function openMsgList(){
  57. var tabid = "ligerui" + new Date().toDateString();
  58. addTab(tabid, "消息接收列表", "toRecieveMsgList.do?date="+new Date());
  59. }
  60. </script>
  61. </head>
  62. <body class="load_body">
  63. <div class="forum-container">
  64. <span style="display:none">${ix}</span>
  65. <table class="index-table" width="100%">
  66. <tr><th width="*" class="title" style="text-align:left">&nbsp;标题</th><th width="12%" >发送人</th><th width="12%" >公告类型</th><th width="20%">发送时间</th></tr>
  67. <c:if test="${empty Noticelist}">
  68. <tr>
  69. <td colspan="4">没有查询到相关信息……</td>
  70. </tr>
  71. </c:if>
  72. <c:forEach items="${Noticelist}" var="rec" varStatus="i">
  73. <tr onclick="openMsg('${rec.universalid}','${rec.documentIds}')" style="cursor:pointer;" class="${(i.index+1)%2==0?'two':'one'}" >
  74. <c:choose>
  75. <c:when test="${rec.type eq '0'}">
  76. <td class="read" style="text-align:left">
  77. <div title="${rec.title}" id="msgTitle" style="float: left;">&nbsp;${rec.title}
  78. </div>
  79. <c:if test="${rec.isNew eq '1'}">
  80. <div style="float: left;margin-top: 10px;">
  81. <img src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/new.gif" style="float: left;"/>
  82. </div>
  83. </c:if>
  84. </td>
  85. <td class="recName" style="text-align:center">${rec.name}</td>
  86. <td class="read" style="text-align:center">系统公告</td>
  87. <td class="read" style="text-align:center">
  88. <fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/>
  89. </td>
  90. </c:when>
  91. <c:otherwise>
  92. <td class="read" style="text-align:left">
  93. <div title="${rec.title}" id="msgTitle" style="float: left;">&nbsp;${rec.title}
  94. </div>
  95. <c:if test="${rec.isNew eq '1'}">
  96. <div style="float: left;margin-top: 10px;">
  97. <img src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/new.gif"style="float: left;"/>
  98. </div>
  99. </c:if>
  100. </td><td class="recName" style="text-align:center">${rec.name}</td>
  101. <td class="read" style="text-align:center">单位公告</td>
  102. <td class="read" style="text-align:center">
  103. <fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/>
  104. </td>
  105. </c:otherwise>
  106. </c:choose>
  107. </tr>
  108. </c:forEach>
  109. </table>
  110. </div>
  111. </body>
  112. </html>