list.jsp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <HTML>
  4. <HEAD>
  5. <TITLE></TITLE>
  6. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  7. <link rel="stylesheet" href="../../../../styles/css.css" type="text/css">
  8. <LINK rel="stylesheet" href="../../../../styles/sortabletable.css" type="text/css">
  9. <link rel="stylesheet" href="../../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
  10. <script type="text/javascript" src="../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  11. <script type="text/javascript" src="../../../../scripts/ext20/ext-all.js"></script>
  12. <script type="text/javascript">
  13. <%
  14. String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
  15. if(!refreshNode.equals("")){
  16. %>
  17. var loadTip = "<div>数据装载中,请稍候...</div>";
  18. var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
  19. var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=mdpModules";
  20. var treeCloseImg = "plus.gif";
  21. var treeOpenImg = "minus.gif";
  22. parent.frames["confTreeFrame"].refreshNode('mdpModules');
  23. <%
  24. }
  25. %>
  26. </script>
  27. <SCRIPT LANGUAGE="JavaScript">
  28. Ext.onReady(function(){
  29. function toggleDetails(btn, pressed){
  30. var view = grid.getView();
  31. view.showPreview = pressed;
  32. view.refresh();
  33. }
  34. var ds= new Ext.data.Store({
  35. proxy: new Ext.data.ScriptTagProxy({url:'listCols.jsp'}),
  36. reader: new Ext.data.JsonReader( {root:'root'},
  37. [{name: 'code'},
  38. {name: 'name'},
  39. {name: 'Description'},
  40. {name: 'pcode'},
  41. {name: 'packageName'},
  42. {name: 'del'}
  43. ])});
  44. var cm=new Ext.grid.ColumnModel(
  45. [ new Ext.grid.RowNumberer(),
  46. {header: '编号', dataIndex: 'code', sortable: true},
  47. {header: '模块名称', dataIndex: 'name', sortable: true},
  48. {header: '包名', dataIndex: 'packageName', sortable: true},
  49. {header: '描述', dataIndex: 'Description'},
  50. {header: '父模块编码', dataIndex: 'pcode', sortable: true},
  51. {header: 'del', dataIndex: 'del'}
  52. ]);
  53. var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
  54. width:740,
  55. height:545,
  56. title:'系统模块配置',
  57. store: ds
  58. });
  59. grid.render();
  60. ds.load({params:{start:1, limit:2}});
  61. });
  62. </SCRIPT>
  63. </HEAD>
  64. <body>
  65. <div id="report"></div>
  66. </BODY>
  67. </HTML>