123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page
- import ="java.util.*"%>
- <%@ page language="java"
- import="com.sysmodel.XFormFactory"%>
- <%
- request.setCharacterEncoding("GBK");
- List list = XFormFactory.getXFormModel().getFormLists();
- String moduleType = request.getParameter("type") == null? "" :request.getParameter("type");
- if(moduleType.equals("")){
- list = XFormFactory.getXFormModel().getFormLists();
- }else{
- list = XFormFactory.getXFormModel().getFormListByType(moduleType);
- }
-
- int limited = list.size();
- if(list.size() > 1){
- limited --;
- }
-
- System.out.println(limited);
-
- %>
- <HTML>
- <HEAD>
- <TITLE></TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <link rel="stylesheet" href="../../../styles/css.css" type="text/css">
- <script type="text/javascript" src="../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="../../../scripts/ext20/ext-all.js"></script>
- <link rel="stylesheet" href="../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <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=pageList.<%=moduleType%>";
- var treeCloseImg = "plus.gif";
- var treeOpenImg = "minus.gif";
- parent.frames["confTreeFrame"].refreshNode('pageList.<%=moduleType%>');
- <%}%>
- </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:'list_exc_Exc.jsp?type=<%=moduleType%>'}),
-
- reader: new Ext.data.JsonReader( {totalProperty:'totalProperty',root:'root'},
- [
- {name:'listid'},
- {name:'title'},
- {name:'refreshTime'},
- {name:'titleWidth'},
- {name:'type'},
- {name:'del'}
- ])
-
- });
- var cm=new Ext.grid.ColumnModel(
- [ new Ext.grid.RowNumberer(), /*cbsm,*/
- {header: '编号', dataIndex: 'listid', width: 50, sortable: true},
- {header: '列表标题', dataIndex: 'title', width: 150,sortable:true},
- {header: '刷新间隔', dataIndex: 'refreshTime'},
- {header: '列表所占宽度', dataIndex: 'titleWidth'},
- {header: '所属模块', dataIndex: 'type',sortable: true},
- {header: '删除', dataIndex: 'del'}
- ]
- );
-
- var grid=new Ext.grid.GridPanel({el:'BAG',ds:ds,cm:cm,/*sm:cbsm,*/
-
- width:700,
- height:500,
- title:'列表配置信息列表',
- store: ds
- });
- grid.render();
- ds.load({params:{start:1,limited:<%=limited%>}});
- }
- );
- </SCRIPT>
- </HEAD>
- <body>
- <div id="BAG"></div>
- </BODY>
- </HTML>
|