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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ include file="../../../inc/inc.jsp" %>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="cn.js.fan.db.Conn"%>
  5. <%@ page import="cn.js.fan.util.*"%>
  6. <%@ page import="com.redmoon.forum.plugin.sweet.*"%>
  7. <%@ page import="com.redmoon.forum.plugin.*"%>
  8. <%@ page import="com.redmoon.forum.*"%>
  9. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  10. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  11. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  12. <html><head>
  13. <meta http-equiv="pragma" content="no-cache">
  14. <link rel="stylesheet" href="../../common.css">
  15. <LINK href="default.css" type=text/css rel=stylesheet>
  16. <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
  17. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  18. <title><lt:Label res="res.label.forum.admin.entrance" key="plugin_manager"/></title>
  19. <body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
  20. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  21. <%
  22. if (!privilege.isMasterLogin(request))
  23. {
  24. out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  25. return;
  26. }
  27. %>
  28. <table width='100%' cellpadding='0' cellspacing='0' >
  29.   <tr>
  30.     <td class="head"><lt:Label res="res.label.forum.admin.entrance" key="plugin_manage"/></td>
  31.   </tr>
  32. </table>
  33. <br>
  34. <table width="98%" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  35.   <tr> 
  36.     <td height=20 align="left" class="thead"><lt:Label res="res.label.forum.admin.entrance" key="entrance"/></td>
  37.   </tr>
  38.   <tr> 
  39.     <td valign="top"><br>
  40.       <table width="92%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
  41.       <tr align="center" bgcolor="#F8F7F9">
  42.         <td width="13%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="code"/></strong></td>
  43.       <td width="20%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="name"/></strong></td>
  44.         <td width="49%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="desc"/></strong></td>
  45.       <td width="18%" bgcolor="#EFEBDE"><strong><lt:Label key="op"/></strong></td>
  46.       </tr>
  47. <%
  48. EntranceMgr em = new EntranceMgr();
  49. Vector v = em.getAllEntrance();
  50. Iterator ir = v.iterator();
  51. while (ir.hasNext()) {
  52. EntranceUnit eu = (EntranceUnit)ir.next();
  53. %>
  54.       <tr align="center">
  55.         <td height="24" bgcolor="#F7EEF4"><%=eu.getCode()%></td>
  56.       <td height="24" bgcolor="#F7EEF4"><%=eu.getName()%></td>
  57.         <td height="24" bgcolor="#F7EEF4"><%=eu.getDesc(request)%></td>
  58.       <td height="24" bgcolor="#F7EEF4"><a href="<%=eu.getAdminEntrance()%>"><lt:Label res="res.label.forum.admin.entrance" key="manage"/></a></td>
  59.       </tr>
  60. <%}%>
  61.     </table>
  62.     <br></td>
  63.   </tr>
  64. </table>
  65. </td> </tr>             
  66.       </table>                                        
  67.        </td>                                        
  68.      </tr>                                        
  69.  </table>                                        
  70. </body>                                        
  71. </html>                            
  72.