indexIframe.jsp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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/system/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:360px;
  23. -o-text-overflow: ellipsis;
  24. text-overflow:ellipsis;
  25. white-space:nowrap;
  26. overflow:hidden;
  27. }
  28. </style>
  29. <script type="text/javascript">
  30. function openMsg(uid,mid){
  31. var tabid = "ligerui" + new Date().toDateString();
  32. addTab(tabid, "消息查看", "seeRecMessage.do?messageid="+mid+"&universalid="+uid);
  33. }
  34. function openMsgList(){
  35. var tabid = "ligerui" + new Date().toDateString();
  36. addTab(tabid, "消息接收列表", "toRecieveMsgList.do?date="+new Date());
  37. }
  38. </script>
  39. </head>
  40. <body>
  41. <div class="forum-container">
  42. <table class="index-table line" width="100%">
  43. <tr><th>状态</th><th>标题</th><th>发送人</th><th>发送时间</th></tr>
  44. <c:forEach items="${recMessagelist}" var="rec" varStatus="i">
  45. <tr onclick="openMsg('${rec.universalid}','${rec.messageid}')" style="cursor:pointer" class="${(i.index+1)%2==0?'two':'one'}">
  46. <td>
  47. <img src="./images/indexModel/${rec.isread=='Y'?'open':'close'}.png" width="15px" height="15px"/>
  48. </td><td><div id="msgTitle">${rec.title}</div></td><td>${rec.name}</td>
  49. <td><fmt:formatDate value="${rec.sendtime}" type="both"/> </td></tr>
  50. </c:forEach>
  51. </table>
  52. </div>
  53. <div class="index-bottom">
  54. <a href="#" onclick="openMsgList()">更多</a>
  55. </div>
  56. </body>
  57. </html>