list_exc.jsp 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <%@ page pageEncoding="UTF-8"%>
  2. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  3. <%@ page
  4. import ="java.util.*"%>
  5. <%@ page language="java"
  6. import="com.sysmodel.XFormFactory"%>
  7. <%
  8. request.setCharacterEncoding("GBK");
  9. List list = XFormFactory.getXFormModel().getFormCollections();
  10. String type =request.getParameter("type") == null ? "" : request.getParameter("type");
  11. if(!type.equals("")){
  12. list = XFormFactory.getXFormModel().getFormCollectionsByType(type);
  13. }
  14. int limited = list.size();
  15. if(limited > 1){
  16. limited --;
  17. }
  18. %>
  19. <HTML>
  20. <HEAD>
  21. <TITLE></TITLE>
  22. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  23. <link rel="stylesheet" href="../../../styles/css.css" type="text/css">
  24. <LINK rel="stylesheet" href="../../../styles/sortabletable.css" type="text/css">
  25. <script type="text/javascript" src="../../../scripts/ext20/adapter/ext/ext-base.js"></script>
  26. <link rel="stylesheet" href="../../../scripts/ext20/resources/css/ext-all.css" type="text/css"></link>
  27. <script type="text/javascript" src="../../../scripts/ext20/ext-all.js"></script>
  28. <script type="text/javascript">
  29. <%
  30. String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
  31. if(!refreshNode.equals("")){%>
  32. var loadTip = "<div>数据装载中,请稍候...</div>";
  33. var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
  34. var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=pageCollection.<%=type%>";
  35. var treeCloseImg = "plus.gif";
  36. var treeOpenImg = "minus.gif";
  37. parent.frames["confTreeFrame"].refreshNode('pageCollection.<%=type%>');
  38. <%}%>
  39. </script>
  40. <SCRIPT LANGUAGE="JavaScript">
  41. Ext.onReady(function(){
  42. function toggleDetails(btn, pressed){
  43. var view = grid.getView();
  44. view.showPreview = pressed;
  45. view.refresh();
  46. }
  47. var ds= new Ext.data.Store({
  48. proxy: new Ext.data.ScriptTagProxy({url:'list_exc_Exc.jsp?type=<%=type%>'}),
  49. reader: new Ext.data.JsonReader( {totalProperty:'totalProperty',root:'root'},
  50. [
  51. {name:'pageid'},
  52. {name:'pageTitle'},
  53. {name:'multipart'},
  54. {name:'action'},
  55. {name:'classid'},
  56. {name:'type'},
  57. {name:'del'}
  58. ])
  59. });
  60. var cm=new Ext.grid.ColumnModel(
  61. [ new Ext.grid.RowNumberer(),
  62. {header: '编号', dataIndex: 'pageid',width:40, sortable: true},
  63. {header: '采集标题', dataIndex: 'pageTitle', sortable: true},
  64. {header: '页面提交ENCTYPE', dataIndex: 'multipart'},
  65. {header: '动作Action', dataIndex: 'action'},
  66. {header: '操作表', dataIndex: 'classid' , sortable: true},
  67. {header: '所属模块', dataIndex: 'type', sortable: true},
  68. {header: '删除', dataIndex: 'del',width:35}
  69. ]
  70. );
  71. var grid=new Ext.grid.GridPanel({el:'BAG',ds:ds,cm:cm,
  72. width:700,
  73. height:500,
  74. title:'采集配置列表',
  75. store: ds
  76. });
  77. grid.render();
  78. ds.load({params:{start:1,limited:<%=limited%>}});
  79. }
  80. );
  81. </SCRIPT>
  82. </HEAD>
  83. <body>
  84. <div id="BAG"></div>
  85. </BODY>
  86. </HTML>