<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="../../../inc/inc.jsp" %>
<%@ page import="java.util.*"%>
<%@ page import="cn.js.fan.db.Conn"%>
<%@ page import="cn.js.fan.util.*"%>
<%@ page import="com.redmoon.forum.plugin.sweet.*"%>
<%@ page import="com.redmoon.forum.plugin.*"%>
<%@ page import="com.redmoon.forum.*"%>
<%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
<jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" href="../../common.css">
<LINK href="default.css" type=text/css rel=stylesheet>
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><lt:Label res="res.label.forum.admin.entrance" key="plugin_manager"/></title>
<body bgcolor="#FFFFFF" topmargin='0' leftmargin='0'>
<jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
<%
if (!privilege.isMasterLogin(request))
{
	out.print(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
	return;
}
%>
<table width='100%' cellpadding='0' cellspacing='0' >
  <tr>
    <td class="head"><lt:Label res="res.label.forum.admin.entrance" key="plugin_manage"/></td>
  </tr>
</table>
<br>
<table width="98%" border='0' align="center" cellpadding='0' cellspacing='0' class="frame_gray">
  <tr> 
    <td height=20 align="left" class="thead"><lt:Label res="res.label.forum.admin.entrance" key="entrance"/></td>
  </tr>
  <tr> 
    <td valign="top"><br>
      <table width="92%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#666666">
      <tr align="center" bgcolor="#F8F7F9">
        <td width="13%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="code"/></strong></td>
      <td width="20%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="name"/></strong></td>
        <td width="49%" height="24" bgcolor="#EFEBDE"><strong><lt:Label res="res.label.forum.admin.entrance" key="desc"/></strong></td>
      <td width="18%" bgcolor="#EFEBDE"><strong><lt:Label key="op"/></strong></td>
      </tr>
	<%
	EntranceMgr em = new EntranceMgr();
	Vector v = em.getAllEntrance();
	Iterator ir = v.iterator();
	while (ir.hasNext()) {
		EntranceUnit eu = (EntranceUnit)ir.next();
	%>
      <tr align="center">
        <td height="24" bgcolor="#F7EEF4"><%=eu.getCode()%></td>
      <td height="24" bgcolor="#F7EEF4"><%=eu.getName()%></td>
        <td height="24" bgcolor="#F7EEF4"><%=eu.getDesc(request)%></td>
      <td height="24" bgcolor="#F7EEF4"><a href="<%=eu.getAdminEntrance()%>"><lt:Label res="res.label.forum.admin.entrance" key="manage"/></a></td>
      </tr>
	<%}%>
    </table>
    <br></td>
  </tr>
</table>
</td> </tr>             
      </table>                                        
       </td>                                        
     </tr>                                        
 </table>                                        
</body>                                        
</html>                            
  