listNotBorrow.jsp 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>未借阅列表</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  17. <script type="text/javascript">
  18. var grid = null;
  19. $(function () {
  20. grid = $("#maingrid4").ligerGrid({
  21. columns: [
  22. { display: '文档名称', name: 'borrow_affix', width: 300,align:'left'},
  23. { display: '类别', name: 'borrow_sort', width: 100},
  24. { display: '所属档案', name: 'borrow_table_name', width: 150},
  25. { display: '借用信息', name: 'borrow_msg', width: 150}
  26. ],
  27. fixedCellHeight: false, //是否固定单元格的高度
  28. pageSize:20,
  29. url: 'BorrowAction.do?task=listNotBorrow&time=' + new Date().getTime(),
  30. pageParmName: 'p', //页索引参数名,(提交给服务器)
  31. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  32. enabledSort: true, //是否允许排序
  33. width: '99.8%',
  34. height: '99%'
  35. });
  36. $("#pageloading").hide();
  37. });
  38. function searchByKword(){
  39. var borrow_affix = document.getElementById("borrow_affix");
  40. var s = "";
  41. if(borrow_affix.value != "" && typeof(borrow_affix.value) != "undefined" ){
  42. s += "&borrow_affix=" + encodeURI(encodeURI(borrow_affix.value));
  43. }
  44. grid.set("newPage", "1");
  45. grid = $("#maingrid4").ligerGrid({
  46. columns: [
  47. { display: '文档名称', name: 'borrow_affix', width: 300,align:'left'},
  48. { display: '类别', name: 'borrow_sort', width: 100},
  49. { display: '所属档案', name: 'borrow_table_name', width: 150},
  50. { display: '借用信息', name: 'borrow_msg', width: 150}
  51. ],
  52. fixedCellHeight: false, //是否固定单元格的高度
  53. pageSize:20,
  54. url: 'BorrowAction.do?task=listNotBorrow&time=' + new Date().getTime()+s,
  55. pageParmName: 'p', //页索引参数名,(提交给服务器)
  56. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  57. enabledSort: true, //是否允许排序
  58. width: '99.8%',
  59. height: '99%'
  60. });
  61. }
  62. function searchAll() {
  63. $("#borrow_affix").val("");
  64. searchByKword();
  65. }
  66. </script>
  67. </head>
  68. <body >
  69. <div class="default_search" >
  70. <ul class="list_search">
  71. <li class="title">文档名称:</li>
  72. <li class="text">
  73. <input type="text" name="borrow_affix" id="borrow_affix" >
  74. </li>
  75. </ul>
  76. <ul>
  77. <li class="search-button" >
  78. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  79. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  80. </li>
  81. </ul>
  82. </div>
  83. <div style="clear: both;">
  84. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  85. </div>
  86. </body>
  87. </html>