fa91ac173015d214c8e1efb69395bccd46ffa7a3.svn-base 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <style>
  22. .l-grid-row-cell-inner{
  23. line-height:40px;
  24. padding:0 0 0 10px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="padding_right5 padding_top5">
  30. <div id="maingrid"></div>
  31. </div>
  32. <script type="text/javascript">
  33. var testData={"form.paginate.pageNo":1,"form.paginate.totalRows":13,"rows":[
  34. {"A":"姓名:","B":"张小三","C":"性别:","D":"男"},
  35. {"A":"年龄:","B":30,"C":"婚姻:","D":"未婚"},
  36. {"A":"爱好:","B":"唱歌","C":"职业:","D":"工程师"},
  37. {"A":"部门:","B":"开发部","C":"入职时间:","D":"2013-10-10"},
  38. {"A":"姓名:","B":"张小三","C":"性别:","D":"男"},
  39. {"A":"年龄:","B":30,"C":"婚姻:","D":"未婚"},
  40. {"A":"爱好:","B":"唱歌","C":"职业:","D":"工程师"},
  41. {"A":"部门:","B":"开发部","C":"入职时间:","D":"2013-10-10"},
  42. {"A":"姓名:","B":"张小三","C":"性别:","D":"男"},
  43. {"A":"年龄:","B":30,"C":"婚姻:","D":"未婚"},
  44. {"A":"爱好:","B":"唱歌","C":"职业:","D":"工程师"},
  45. {"A":"部门:","B":"开发部","C":"入职时间:","D":"2013-10-10"}
  46. ]}
  47. //数据表格使用
  48. var g;
  49. function initComplete(){
  50. g = $("#maingrid").quiGrid({
  51. columns: [
  52. { display: 'A', name: 'A', align: 'right', width: 150},
  53. { display: 'B', name: 'B', align: 'left' , width: 200},
  54. { display: 'C', name: 'C', align: 'right' , width: 150},
  55. { display: 'D', name: 'D', align: 'left', width:200 }
  56. ], data:testData, pageSize: 10, rownumbers:false, checkbox:false,showHeader:false,usePager:false,alternatingRow:false,rowHeight:40,
  57. height: '100%', width:"100%",mouseoverRowCssClass:null,selectRowButtonOnly:true
  58. });
  59. }
  60. </script>
  61. </body>
  62. </html>