<%@ 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><%=Global.AppName%> - <lt:Label res="res.label.forum.score_rule" key="score_rule"/></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=12% height=23><lt:Label res="res.label.forum.score_rule" key="type"/></TD>
        <TD width=10% height=23><lt:Label res="res.label.forum.score_rule" key="regist"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="login"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="add"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="reply"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="del"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="elite"/></TD>
        <TD width=10%><lt:Label res="res.label.forum.score_rule" key="advertiseLink"/></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=12% height=23 align="left"><%=su.getName(request)%></TD>
        <TD width=6% height=23><%=e.getChildText("regist")%></TD>
        <TD width=6% height=23><%=e.getChildText("login")%></TD>
        <TD width=12% height=23><%=e.getChildText("add")%></TD>
        <TD width=12% height=23><%=e.getChildText("reply")%></TD>
        <TD width=12% height=23><%=e.getChildText("del")%></TD>
        <TD width=12% height=23><%=e.getChildText("elite")%></TD>
        <TD width=12% height=23><%=e.getChildText("advertiseLink")%></TD>
        <TD width=16% 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">&nbsp;</td>
      <td height="23" valign="baseline">&nbsp;  </td>
    </tr>
  </table>
</div>
<%@ include file="inc/footer.jsp"%>
</body>
</html>
