26c2bb7e6296845a4f87742ee2ce00d53234b405.svn-base 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.listmodel.xmlmodel.impl.FormListImpl,
  8. com.sysmodel.datamodel.xmlmodel.ModelFactory,
  9. com.sysmodel.datamodel.xmlmodel.able.SysModel"%>
  10. <%
  11. request.setCharacterEncoding("GBK");
  12. List list = XFormFactory.getXFormModel().getFormLists();
  13. String moduleType = request.getParameter("type") == null? "" :request.getParameter("type");
  14. if(request.getParameter("type") == null){
  15. list = XFormFactory.getXFormModel().getFormLists();
  16. }else{
  17. list = XFormFactory.getXFormModel().getFormListByType(moduleType);
  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=pageList.<%=moduleType%>";
  33. var treeCloseImg = "plus.gif";
  34. var treeOpenImg = "minus.gif";
  35. parent.frames["confTreeFrame"].refreshNode('pageList.<%=moduleType%>');
  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>刷新间隔</td>
  54. <td>列表所占宽度</td>
  55. <td>所属模块</td>
  56. <td>删除</td>
  57. </tr>
  58. <%
  59. SysModel sysmodel = ModelFactory.getSysmodel();
  60. FormListImpl FormList = new FormListImpl();
  61. for (int i = 0; i < list.size(); i++) {
  62. FormList = (FormListImpl) list.get(i);
  63. %>
  64. <tr>
  65. <td><%=i + 1 %></td>
  66. <td><%=FormList.getListid() %></td>
  67. <td><%=FormList.getDescription()%></td>
  68. <td><%=FormList.getRefreshTime()%></td>
  69. <td><%=FormList.getListWidth()%></td>
  70. <td><%=sysmodel.getMdpModuleByCode(FormList.getType()).getName()%></td>
  71. <td><a href ="editExc.jsp?listid=<%=FormList.getListid() %>&action=del">删除</a></td>
  72. </tr>
  73. <%}%>
  74. </table>
  75. </div>
  76. </div>
  77. </div>
  78. </BODY>
  79. </HTML>