archive_basicdata_list.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "java.util.Enumeration"%>
  7. <%@ page import = "java.util.Iterator"%>
  8. <%@ page import = "org.jdom.*"%>
  9. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  10. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  11. <html>
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <title>基础数据维护</title>
  15. <link href="../common.css" rel="stylesheet" type="text/css">
  16. <style type="text/css">
  17. <!--
  18. .style2 {font-size: 14px}
  19. .STYLE3 {color: #FFFFFF}
  20. .STYLE4 {
  21. color: #000000;
  22. font-weight: bold;
  23. }
  24. .STYLE5 {color: #FF0000}
  25. .STYLE6 {color: #000000}
  26. -->
  27. </style>
  28. </head>
  29. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  30. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  31. <%
  32. if (!privilege.isUserPrivValid(request, "archive.basicdata")) {
  33. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  34. return;
  35. }
  36. %>
  37. <table width="90%" height="89" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="main">
  38. <tr>
  39.   <td width="98%" height="23" class="right-title"><span> &nbsp;基础数据维护管理</span></td>
  40. </tr>
  41. <tr>
  42.   <td width="98%" height="4"></td>
  43. </tr>
  44.     <tr>
  45.       <td align="center">
  46.    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  47.   <tr>
  48. <td width="30%" height="25" align="center" bgcolor="#C4DAFF">基础数据名称</td>
  49. <td width="70%" height="25" align="center" bgcolor="#C4DAFF">操作</td>
  50.   </tr>
  51. </table>
  52. <%
  53.   BasicDataMgr bdm = new BasicDataMgr("archive");
  54.               Element root = bdm.getRootElement();
  55.   List childs = root.getChildren();
  56.               Iterator ir = childs.iterator();
  57.   while (ir.hasNext()) {
  58.                   Element e = (Element)ir.next();
  59.               %>
  60.     <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  61.                   <tr>
  62.     <td width="30%" height="22" align="center"><%=e.getAttributeValue("name")%></td>
  63.                     <td width="23%" height="22" align="center"><a href="archive_basicdata_modify.jsp?name=<%=StrUtil.UrlEncode(e.getAttributeValue("name"))%>&code=<%=e.getAttributeValue("code")%>&op=addOption">添加基础数据字段</a></td>
  64.                     <td width="23%" height="22" align="center"><a href="archive_basicdata_modify.jsp?name=<%=StrUtil.UrlEncode(e.getAttributeValue("name"))%>&code=<%=e.getAttributeValue("code")%>&op=delOption">删除基础数据字段</a></td>
  65.                     <td width="24%" height="22" align="center"><a href="archive_basicdata_modify.jsp?name=<%=StrUtil.UrlEncode(e.getAttributeValue("name"))%>&code=<%=e.getAttributeValue("code")%>&op=setDefaultValue">设置基础数据默认字段</a></td>
  66.                   </tr>
  67.                 </table>
  68. <%}%>
  69.       </td>
  70.     </tr>
  71. </table>
  72. <br>
  73. <br>
  74. </body>
  75. </html>