aa6d50d5d04589c3da6c176fdebedb40c4529f7b.svn-base 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <title></title>
  10. <!--框架必需start-->
  11. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  14. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  15. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!--框架必需end-->
  18. <!--数据表格start-->
  19. <script src="<%=path%>/libs/js/table/quiGrid.js" type="text/javascript"></script>
  20. <!--数据表格end-->
  21. <script type="text/javascript" src="<%=path%>/sample/datagrid/data.js"></script>
  22. </head>
  23. <body>
  24. <div class="box1">
  25. <button type="button" style="width:200px;" onclick='loaddataHandler()'>点击加载数据</button>
  26. </div>
  27. <div class="padding_right5">
  28. <div id="maingrid"></div>
  29. </div>
  30. <script type="text/javascript">
  31. function loaddataHandler(){
  32. g.loadData(testData);
  33. }
  34. //数据表格使用
  35. var g;
  36. function initComplete(){
  37. g = $("#maingrid").quiGrid({
  38. columns: [
  39. //frozen:true 将该列冻结,在左侧显示
  40. { display: '姓名', name: 'name', align: 'center', width: "30%"},
  41. { display: '性别', name: 'sex', align: 'center' , width: "20%"},
  42. { display: '部门', name: 'deptName', align: 'center' , width: "30%"},
  43. { display: '学历', name: 'degree', align: 'center', width: "20%" }
  44. ], pageSize: 500, rownumbers:true, checkbox:true,percentWidthMode:true,
  45. height: '100%', width:"100%"
  46. });
  47. }
  48. </script>
  49. </body>
  50. </html>