b86b433393e1cf70cbde3e58aab2d1814da2a882.svn-base 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>锁定列</title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!--数据表格start-->
  15. <script src="../../libs/js/table/quiGrid.js" type="text/javascript"></script>
  16. <!--数据表格end-->
  17. <style>
  18. .l-grid-row-cell-inner{
  19. line-height:40px;
  20. padding:0 0 0 10px;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div class="padding_right5 padding_top5">
  26. <div id="maingrid"></div>
  27. </div>
  28. <script type="text/javascript">
  29. var testData={"form.paginate.pageNo":1,"form.paginate.totalRows":13,"rows":[
  30. {"A":"姓名:","B":"张小三","C":"性别:","D":"男"},
  31. {"A":"年龄:","B":30,"C":"婚姻:","D":"未婚"},
  32. {"A":"爱好:","B":"唱歌","C":"职业:","D":"工程师"},
  33. {"A":"部门:","B":"开发部","C":"入职时间:","D":"2013-10-10"},
  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. ]}
  43. //数据表格使用
  44. var g;
  45. function initComplete(){
  46. g = $("#maingrid").quiGrid({
  47. columns: [
  48. { display: 'A', name: 'A', align: 'right', width: 150},
  49. { display: 'B', name: 'B', align: 'left' , width: 200},
  50. { display: 'C', name: 'C', align: 'right' , width: 150},
  51. { display: 'D', name: 'D', align: 'left', width:200 }
  52. ], data:testData, pageSize: 10, rownumbers:false, checkbox:false,showHeader:false,usePager:false,alternatingRow:false,rowHeight:40,
  53. height: '100%', width:"100%",mouseoverRowCssClass:null,selectRowButtonOnly:true
  54. });
  55. }
  56. </script>
  57. </body>
  58. </html>