list_bak.jsp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
  8. com.sysmodel.datamodel.xmlmodel.ModelFactory,
  9. com.sysmodel.datamodel.xmlmodel.able.SysModel"%>
  10. <%
  11. request.setCharacterEncoding("GBK");
  12. List list = XFormFactory.getXFormModel().getFormCollections();
  13. String type =request.getParameter("type") == null ? "" : request.getParameter("type");
  14. if(type.equals("")){
  15. list = XFormFactory.getXFormModel().getFormCollections();
  16. }else{
  17. list = XFormFactory.getXFormModel().getFormCollectionsByType(type);
  18. }
  19. %>
  20. <HTML>
  21. <HEAD>
  22. <TITLE></TITLE>
  23. <META http-equiv="Content-Type" content="text/html; charset=GB2312">
  24. <link rel="stylesheet" href="../../../styles/css.css" type="text/css">
  25. <LINK rel="stylesheet" href="../../../styles/sortabletable.css" type="text/css">
  26. <script type="text/javascript">
  27. <%
  28. String refreshNode = request.getParameter("refreshNode") == null ? "" : request.getParameter("refreshNode");
  29. if(!refreshNode.equals("")){%>
  30. var loadTip = "<div>数据装载中,请稍候...</div>";
  31. var treeImagePath = "<%=request.getContextPath()%>/images/tree_images/";
  32. var url = "<%=request.getContextPath()%>/admin/menu/divTreeService.jsp?nodeID=pageCollection.<%=type%>";
  33. var treeCloseImg = "plus.gif";
  34. var treeOpenImg = "minus.gif";
  35. parent.frames["confTreeFrame"].refreshNode('pageCollection.<%=type%>');
  36. <%}%>
  37. </script>
  38. </HEAD>
  39. <body>
  40. <div id=total>
  41. <div class="whiteborder">
  42. <div class="titback">
  43. <div class="floatleft"><img src="../../../images/index/arrow1.gif" width="20" height="24"/></div>
  44. <div class="dropshadow">采集页面配置</div>
  45. <div class="clear"></div>
  46. </div>
  47. <div class="report">
  48. <table align="center" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
  49. <tr class="TableBgColorBlack">
  50. <td width="28">&nbsp;</td>
  51. <td>编号</td>
  52. <td>采集标题</td>
  53. <td>页面提交ENCTYPE</td>
  54. <td>动作Action</td>
  55. <td>操作表</td>
  56. <td>所属模块</td>
  57. <td>删除</td>
  58. </tr>
  59. <%
  60. SysModel sysmodel = ModelFactory.getSysmodel();
  61. FormCollectionImpl FormCollection = new FormCollectionImpl();
  62. for (int i = 0; i < list.size(); i++) {
  63. FormCollection = (FormCollectionImpl) list.get(i);
  64. String pageTitle = "";
  65. if(FormCollection.getPageHead() != null){
  66. pageTitle = FormCollection.getPageHead().getPageTitle() ;
  67. }
  68. %>
  69. <tr>
  70. <td><%=i + 1 %></td>
  71. <td><%=FormCollection.getPageid() %></td>
  72. <td><%=pageTitle%></td>
  73. <td><%=FormCollection.getEnctype()%></td>
  74. <td><%=FormCollection.getAction() %></td>
  75. <td><%=FormCollection.getClassid()%></td>
  76. <td><%=sysmodel.getMdpModuleByCode(FormCollection.getType()).getName()%></td>
  77. <td><a href="editExc.jsp?Action=del&pagid=<%= FormCollection.getPageid()%>">删除</a></td>
  78. </tr>
  79. <%}%>
  80. </table>
  81. <!-- div class="btmbox"><input type="button" class="button" onClick="location.href='config/config.jsp?action=0'" value="添加"></div>-->
  82. </div>
  83. </div>
  84. </div>
  85. </BODY>
  86. </HTML>