score_rule.jsp
资源名称:JSP-OA.rar [点击查看]
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:4k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page contentType="text/html;charset=utf-8"%>
- <%@ page import="java.io.*,
- cn.js.fan.db.*,
- cn.js.fan.util.*,
- cn.js.fan.web.*,
- com.redmoon.forum.*,
- com.redmoon.forum.plugin.*,
- org.jdom.*,
- java.util.*,
- com.redmoon.forum.person.*"
- %>
- <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
- <%
- String skincode = UserSet.getSkin(request);
- if (skincode.equals(""))
- skincode = UserSet.defaultSkin;
- SkinMgr skm = new SkinMgr();
- Skin skin = skm.getSkin(skincode);
- if (skin==null)
- skin = skm.getSkin(UserSet.defaultSkin);
- String skinPath = skin.getPath();
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
- <meta name="ProgId" content="FrontPage.Editor.Document">
- <link href="<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
- <title><lt:Label res="res.label.forum.score_rule" key="score_rule"/> - <%=Global.AppName%></title>
- <style type="text/css">
- <!--
- body {
- margin-top: 0px;
- margin-left: 0px;
- margin-right: 0px;
- }
- -->
- </style></head>
- <body>
- <%@ include file="inc/header.jsp"%>
- <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
- <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
- <div align="center"><br>
- <strong><font color="#6666DF"><lt:Label res="res.label.forum.score_rule" key="score_rule"/></font><br>
- <br>
- </strong></div>
- <TABLE width="98%" border=1 align=center cellPadding=2 cellSpacing=0 bordercolor="<%=skin.getTableBorderClr()%>" class="list">
- <TBODY>
- <TR align=center bgColor=#f8f8f8 class="td_title">
- <TD width=9% height=23><lt:Label res="res.label.forum.score_rule" key="type"/></TD>
- <TD width=7% height=23><lt:Label res="res.label.forum.score_rule" key="regist"/></TD>
- <TD width=7%><lt:Label res="res.label.forum.score_rule" key="login"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.score_rule" key="add"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.score_rule" key="reply"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.score_rule" key="del"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.score_rule" key="elite"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.score_rule" key="advertiseLink"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.admin.config_score" key="attachment_add"/></TD>
- <TD width=9%><lt:Label res="res.label.forum.admin.config_score" key="attachment_del"/></TD>
- <TD height=23><lt:Label res="res.label.forum.score_rule" key="danWei"/></TD>
- </TR>
- <%
- XMLConfig cfg = new XMLConfig("score.xml", false, "iso-8859-1");
- Element root = cfg.getRootElement();
- Iterator ir = root.getChildren().iterator();
- ScoreMgr sm = new ScoreMgr();
- while (ir.hasNext()) {
- Element e = (Element) ir.next();
- ScoreUnit su = sm.getScoreUnit(e.getAttributeValue("code"));
- %>
- <TR align=center bgColor=#f8f8f8>
- <TD width=9% height=23 align="left"><%=su.getName(request)%></TD>
- <TD width=7% height=23><%=e.getChildText("regist")%></TD>
- <TD width=7% height=23><%=e.getChildText("login")%></TD>
- <TD width=9% height=23><%=e.getChildText("add")%></TD>
- <TD width=9% height=23><%=e.getChildText("reply")%></TD>
- <TD width=9% height=23><%=e.getChildText("del")%></TD>
- <TD width=9% height=23><%=e.getChildText("elite")%></TD>
- <TD width=9% height=23><%=e.getChildText("advertiseLink")%></TD>
- <TD width=9%><%=e.getChildText("attachment_add")%></TD>
- <TD width=9%><%=e.getChildText("attachment_del")%></TD>
- <TD width=14% height=23><%=e.getChildText("danWei")%></TD>
- </TR>
- <%}%>
- </TBODY>
- </TABLE>
- <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
- <tr>
- <td width="2%" height="23"> </td>
- <td height="23" valign="baseline"> </td>
- </tr>
- </table>
- </div>
- <%@ include file="inc/footer.jsp"%>
- </body>
- </html>