listNoRead.jsp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  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. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. var grid = null;
  17. $(function () {
  18. grid = $("#maingrid4").ligerGrid({
  19. columns: [
  20. { display: '标题', name: 'ci.title', width: 300 ,
  21. render: function (row){
  22. return row.ci.title;
  23. }},
  24. { display: '类型', name: 'ci.type', width: 150,
  25. render: function (row){
  26. var html = '';
  27. if(row.ci.type == '1'){
  28. html = '紧急';
  29. } else {
  30. html = '普通';
  31. }
  32. return html;
  33. }},
  34. { display: '发送人', name: 'user.username' , width: 200,
  35. render: function (row){
  36. return row.user.username;
  37. } },
  38. { display: '创建时间', name: 'ci.createdate' , width: 200,
  39. render: function (row){
  40. return row.ci.createdate;
  41. } },
  42. {
  43. display: '操作', isAllowHide: false,
  44. render: function (row)
  45. {
  46. var html = '';
  47. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看专送件\', '
  48. + '\'${pageContext.request.contextPath }/govCirculateAction.do?task=reading&isRead=1&id='
  49. + row.ci.id + '\');\">查看</a>&nbsp;';
  50. return html;
  51. }
  52. }
  53. ],
  54. pageSize:20,
  55. url: 'govCirculateAction.do?task=noRead&time=' + new Date().getTime(),
  56. parms: [{name: "title1", value: ""},
  57. {name: "starttime", value: ""},
  58. {name: "endtime", value: ""}],
  59. pageParmName: 'p', //页索引参数名,(提交给服务器)
  60. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  61. width: '99.9%',
  62. height: '99%',
  63. onError: function(){alert("数据加载失败,请刷新页面!");}
  64. });
  65. $("#pageloading").hide();
  66. $("#starttime").ligerDateEditor({ showTime: false, labelAlign: 'left', format :"yyyy-MM-dd"});
  67. $("#endtime").ligerDateEditor({ showTime: false, labelAlign: 'left', format :"yyyy-MM-dd"});
  68. });
  69. function searchByKword(){
  70. grid.set("parms", [{name: "title1", value: encodeURI($("#title1").val())},
  71. {name : "starttime", value : $("#starttime").val()},
  72. {name : "endtime", value : $("#endtime").val()}]);
  73. grid.set("newPage", "1");
  74. grid.loadData(true);
  75. }
  76. function searchAll() {
  77. $("#title1").val("");
  78. $("#starttime").val("");
  79. $("#endtime").val("");
  80. searchByKword();
  81. }
  82. function close1(){
  83. window.parent.tab.removeSelectedTabItem();
  84. }
  85. </script>
  86. </head>
  87. <body>
  88. <div class="container-layout">
  89. <div id="title" class="form-button" style="width: 100%">
  90. <input onclick="close1();" type="button" value="关闭" class="l-button">
  91. </div>
  92. <div class="default_search" style="margin: 0; width: 100%;">
  93. <ul class="list_search">
  94. <li class="title">标题:</li>
  95. <li class="text">
  96. <input type="text" id="title1" name="title1" value="" style="width: 130px;">
  97. </li>
  98. </ul>
  99. <ul class="list_search" style="width:450px;">
  100. <li class="title">发起时间:</li>
  101. <li class="text">
  102. <input type="text" id="starttime" name="starttime" style="width: 130px;">
  103. </li>
  104. <li class="title" style="width:10px; text-align: center; padding-left: 0px; padding-right: 3px;">
  105. </li>
  106. <li class="text">
  107. <input type="text" id="endtime" name="endtime" style="width: 130px;">
  108. </li>
  109. </ul>
  110. <ul>
  111. <li class="search-button">
  112. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  113. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  114. </li>
  115. </ul>
  116. </div><div style="clear: both;">
  117. <div id="maingrid4" style="margin:0; padding:0"></div>
  118. </div>
  119. <div style="display:none;">
  120. </div>
  121. </div>
  122. <%@ include file="/include/message.jsp"%>
  123. </body>
  124. </html>