1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <HTML>
- <HEAD>
- <TITLE></TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <link rel="stylesheet" href="../../../../styles/css.css" type="text/css">
- <LINK rel="stylesheet" href="../../../../styles/sortabletable.css" type="text/css">
- <link rel="stylesheet" href="../../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <script type="text/javascript" src="../../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="../../../../scripts/ext20/ext-all.js"></script>
- <script type="text/javascript">
-
- <%
- String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
- if(!refreshNode.equals("")){
- %>
- var loadTip = "<div>数据装载中,请稍候...</div>";
- var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
- var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=mdpModules";
- var treeCloseImg = "plus.gif";
- var treeOpenImg = "minus.gif";
- parent.frames["confTreeFrame"].refreshNode('mdpModules');
- <%
- }
- %>
- </script>
- <SCRIPT LANGUAGE="JavaScript">
- Ext.onReady(function(){
- function toggleDetails(btn, pressed){
- var view = grid.getView();
- view.showPreview = pressed;
- view.refresh();
- }
-
- var ds= new Ext.data.Store({
- proxy: new Ext.data.ScriptTagProxy({url:'listCols.jsp'}),
-
- reader: new Ext.data.JsonReader( {root:'root'},
- [{name: 'code'},
- {name: 'name'},
- {name: 'Description'},
- {name: 'pcode'},
- {name: 'packageName'},
- {name: 'del'}
- ])});
-
- var cm=new Ext.grid.ColumnModel(
- [ new Ext.grid.RowNumberer(),
- {header: '编号', dataIndex: 'code', sortable: true},
- {header: '模块名称', dataIndex: 'name', sortable: true},
- {header: '包名', dataIndex: 'packageName', sortable: true},
- {header: '描述', dataIndex: 'Description'},
- {header: '父模块编码', dataIndex: 'pcode', sortable: true},
- {header: 'del', dataIndex: 'del'}
- ]);
- var grid=new Ext.grid.GridPanel({el:'report',ds:ds,cm:cm,
- width:740,
- height:545,
- title:'系统模块配置',
- store: ds
- });
- grid.render();
- ds.load({params:{start:1, limit:2}});
- });
- </SCRIPT>
- </HEAD>
- <body>
- <div id="report"></div>
- </BODY>
- </HTML>
|