| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <!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>
-
- <script type=text/javascript src="/shares/js/jquery-1.6.4.min.js"></script>
- <link href="${pageContext.request.contextPath}//liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="main.css" rel="stylesheet" type="text/css"/>
- <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/yw/core/includeList.js"></script>
- <style type="text/css">
- .index-bottom{
- padding-top:5px;
- padding-left:5px;
- float-left:right;
- }
- #msgTitle{
- width:90%;
- -o-text-overflow: ellipsis;
- text-overflow:ellipsis;
- white-space:nowrap;
- overflow:hidden;
- text-align: left;
- }
- .recName{
- -o-text-overflow: ellipsis;
- text-overflow:ellipsis;
- white-space:nowrap;
- overflow:hidden;
- text-align: center;
- width:120px;
- }
- .read{
- color: gray;
- text-align: center;
- }
- .unread{
- color: #1f58a5;
- text-align: center;
- }
- .forum-container td{text-align: center}
- .forum-container th{text-align: center}
-
- .index-table {border-right:solid 1px #c3c4c6;table-layout:fixed;}
- .index-table td {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
- </style>
- <script type="text/javascript">
- function openMsg(uid,did){
- var tabid = "ligerui" + new Date().toDateString();
- // addTab(tabid, "消息查看", "seeRecMessage.do?messageid="+mid+"&universalid="+uid,true);
- addTab(new Date().getTime(), "公告查看", "Notice.do?task=editandsee&type=see&documentIds="+did+"&universalid="+uid,true);
- }
- function openMsgList(){
- var tabid = "ligerui" + new Date().toDateString();
- addTab(tabid, "消息接收列表", "toRecieveMsgList.do?date="+new Date());
- }
- </script>
- </head>
- <body class="load_body">
- <div class="forum-container">
- <span style="display:none">${ix}</span>
- <table class="index-table" width="100%">
- <tr><th width="*" class="title" style="text-align:left"> 标题</th><th width="12%" >发送人</th><th width="12%" >公告类型</th><th width="20%">发送时间</th></tr>
-
- <c:if test="${empty Noticelist}">
- <tr>
- <td colspan="4">没有查询到相关信息……</td>
- </tr>
- </c:if>
-
- <c:forEach items="${Noticelist}" var="rec" varStatus="i">
- <tr onclick="openMsg('${rec.universalid}','${rec.documentIds}')" style="cursor:pointer;" class="${(i.index+1)%2==0?'two':'one'}" >
- <c:choose>
- <c:when test="${rec.type eq '0'}">
- <td class="read" style="text-align:left">
- <div title="${rec.title}" id="msgTitle" style="float: left;"> ${rec.title}
-
- </div>
- <c:if test="${rec.isNew eq '1'}">
- <div style="float: left;margin-top: 10px;">
- <img src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/new.gif" style="float: left;"/>
- </div>
- </c:if>
- </td>
- <td class="recName" style="text-align:center">${rec.name}</td>
- <td class="read" style="text-align:center">系统公告</td>
- <td class="read" style="text-align:center">
- <fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/>
- </td>
- </c:when>
- <c:otherwise>
- <td class="read" style="text-align:left">
- <div title="${rec.title}" id="msgTitle" style="float: left;"> ${rec.title}
-
- </div>
- <c:if test="${rec.isNew eq '1'}">
- <div style="float: left;margin-top: 10px;">
- <img src="${pageContext.request.contextPath}/liger/lib/ligerUI/skins/${sessionScope.css}/images/index/new.gif"style="float: left;"/>
- </div>
- </c:if>
- </td><td class="recName" style="text-align:center">${rec.name}</td>
- <td class="read" style="text-align:center">单位公告</td>
- <td class="read" style="text-align:center">
- <fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/>
- </td>
- </c:otherwise>
- </c:choose>
- </tr>
- </c:forEach>
- </table>
- </div>
- </body>
- </html>
|