indexIframe.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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:180px;
  23. -o-text-overflow: ellipsis;
  24. text-overflow:ellipsis;
  25. white-space:nowrap;
  26. overflow:hidden;
  27. text-align: left;
  28. }
  29. .read{
  30. color: gray;
  31. }
  32. .unread{
  33. color: #1f58a5;
  34. width:30px;
  35. }
  36. .forum-container td{text-align: center}
  37. .forum-container th{text-align: center}
  38. </style>
  39. <script type="text/javascript">
  40. function openMsg(uid,mid){
  41. var tabid = "ligerui" + new Date().toDateString();
  42. // addTab(tabid, "消息查看", "seeRecMessage.do?messageid="+mid+"&universalid="+uid,true);
  43. addTab(new Date().getTime(), "消息查看", "seeRecMessage.do?messageid="+mid+"&universalid="+uid,true);
  44. }
  45. function openMsgList(){
  46. var tabid = "ligerui" + new Date().toDateString();
  47. addTab(tabid, "消息接收列表", "toRecieveMsgList.do?date="+new Date());
  48. }
  49. </script>
  50. <style type="text/css">
  51. .index-table th{
  52. text-align:left;
  53. }
  54. </style>
  55. </head>
  56. <body class="load_body">
  57. <div class="forum-container">
  58. <span style="display:none">${ix}</span>
  59. <table class="index-table line" width="100%">
  60. <tr><th width="10%" >状态</th><th width="50%" class="title" style="text-align:left;padding-left:10px;">标题</th><th width="20%" >发送人</th><th width="20%" >发送时间</th></tr>
  61. <c:if test="${empty recMessagelist}">
  62. <tr>
  63. <td colspan="4">没有查询到相关信息……</td>
  64. </tr>
  65. </c:if>
  66. <c:forEach items="${recMessagelist}" var="rec" varStatus="i">
  67. <tr onclick="openMsg('${rec.universalid}','${rec.messageid}')" style="cursor:pointer" class="${(i.index+1)%2==0?'two':'one'}">
  68. <!--
  69. <td>
  70. <img src="./images/indexModel/${rec.isread=='Y'?'open':'close'}.png" width="15px" height="15px"/>
  71. </td><td><div id="msgTitle">${rec.title}</div></td><td>${rec.name}</td>
  72. <td><fmt:formatDate value="${rec.sendtime}" type="both"/> </td>
  73. -->
  74. <c:choose>
  75. <c:when test="${rec.isread eq 'Y'}">
  76. <td class="read" style="padding-left:0px;">已读</td>
  77. <td class="read_title" style="padding-left:0px;"><div id="msgTitle" title="${rec.title}">&nbsp;${rec.title}</div></td>
  78. <td class="read" style="padding-left:0px;">${rec.name}</td>
  79. <td class="read" style="padding-left:0px;"><fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/> </td>
  80. </c:when>
  81. <c:otherwise>
  82. <td class="unread" style="padding-left:0px;">未读</td>
  83. <td class="unread" style="padding-left:0px;"><div id="msgTitle" title="${rec.title}">&nbsp;<img src="liger/lib/ligerUI/skins/${sessionScope.css}/images/index/new.gif" />${rec.title} </div></td>
  84. <td style="padding-left:0px;">${rec.name}</td>
  85. <td style="padding-left:0px;"><fmt:formatDate value="${rec.sendtime}" type="both" pattern="MM-dd HH:mm"/> </td>
  86. </c:otherwise>
  87. </c:choose>
  88. </tr>
  89. </c:forEach>
  90. </table>
  91. </div>
  92. </body>
  93. </html>