12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <%@ 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().getFormCollections();
- String type =request.getParameter("type") == null ? "" : request.getParameter("type");
- if(!type.equals("")){
- list = XFormFactory.getXFormModel().getFormCollectionsByType(type);
- }
- int limited = list.size();
- if(limited > 1){
- 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">
- <LINK rel="stylesheet" href="../../../styles/sortabletable.css" type="text/css">
- <script type="text/javascript" src="../../../scripts/ext20/adapter/ext/ext-base.js"></script>
- <link rel="stylesheet" href="../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
- <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=pageCollection.<%=type%>";
- var treeCloseImg = "plus.gif";
- var treeOpenImg = "minus.gif";
- parent.frames["confTreeFrame"].refreshNode('pageCollection.<%=type%>');
- <%}%>
- </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=<%=type%>'}),
-
- reader: new Ext.data.JsonReader( {totalProperty:'totalProperty',root:'root'},
- [
- {name:'pageid'},
- {name:'pageTitle'},
- {name:'multipart'},
- {name:'action'},
- {name:'classid'},
- {name:'type'},
- {name:'del'}
- ])
-
- });
- var cm=new Ext.grid.ColumnModel(
- [ new Ext.grid.RowNumberer(),
- {header: '编号', dataIndex: 'pageid',width:40, sortable: true},
- {header: '采集标题', dataIndex: 'pageTitle', sortable: true},
- {header: '页面提交ENCTYPE', dataIndex: 'multipart'},
- {header: '动作Action', dataIndex: 'action'},
- {header: '操作表', dataIndex: 'classid' , sortable: true},
- {header: '所属模块', dataIndex: 'type', sortable: true},
- {header: '删除', dataIndex: 'del',width:35}
- ]
- );
-
- var grid=new Ext.grid.GridPanel({el:'BAG',ds:ds,cm:cm,
-
- 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>
|