- <%@ page language="java" contentType="text/html;charset=UTF-8" %><%@
- include file="../GVinc/gvInclude.jsp"
- %><%@
- include file="clubMasterPass.jsp" %><jsp:useBean id="cr" scope="page" class="com.gamvan.club.ClubRule" />
- <%
- //权限判断共享代码
- boolean ispass = false;
- ArrayEdit ae2 = new ArrayEdit();
- ispass = ae2.txtsArray(gvcmgTxt,2,"|");
- if(!ispass){
- out.print(OutPrint.prtCenter("您无权进行此项操作!","",2));
- out.close();
- }
- ClubRuleItem cri = null;
- String crMarks = "";
- String crMoneys = "";
- String crCredits = "";
- String txt="";
- double [] crMark = new double[20];
- double[] crMoney = new double[20];
- double[] crCredit = new double[20];
- if(request.getMethod().equals("POST")){
- for(int i = 1; i <= 18; i++){
- txt = request.getParameter("crMark"+String.valueOf(i));
- if(txt==null||txt.equals("")){
- txt="0";
- }
- if(crMarks==""){
- crMarks = txt;
- }else{
- crMarks += ("|" + txt);
- }
- }
- txt = "";
- for(int i = 1; i <= 18; i++){
- txt = request.getParameter("crMoney"+String.valueOf(i));
- if(txt==null||txt.equals("")){
- txt="0";
- }
- if(crMoneys==""){
- crMoneys = txt;
- }else{
- crMoneys += ("|" + txt);
- }
- }
- txt = "";
- for(int i = 1; i <= 18; i++){
- txt = request.getParameter("crCredit"+String.valueOf(i));
- if(txt==null||txt.equals("")){
- txt="0";
- }
- if(crCredits==""){
- crCredits = txt;
- }else{
- crCredits += ("|" + txt);
- }
- }
- cr.setCrMark(crMarks);
- cr.setCrMoney(crMoneys);
- cr.setCrCredit(crCredits);
- cr.ruleUpdate();
- out.print(OutPrint.prtCenter("社区制度更新完毕!","clubRule.jsp",1));
- out.close();
- if(true)return;
- }else{
- cri = cr.ruleInfo();
- crMarks = cri.getCrMark();
- crMoneys = cri.getCrMoney();
- crCredits = cri.getCrCredit();
- if(crMarks!=null && !crMarks.equals("")){
- StringTokenizer st = new StringTokenizer(crMarks,"|");
- //crMark = new int[st.countTokens()];
- for(int i=1;st.hasMoreTokens();i++){
- crMark[i]=Double.parseDouble(st.nextToken().trim());
- }
- }
- if(crMoneys!=null && !crMoneys.equals("")){
- StringTokenizer st = new StringTokenizer(crMoneys,"|");
- //crMark = new int[st.countTokens()];
- for(int i=1;st.hasMoreTokens();i++){
- crMoney[i]=Double.parseDouble(st.nextToken().trim());
- }
- }
- if(crCredits!=null && !crCredits.equals("")){
- StringTokenizer st = new StringTokenizer(crCredits,"|");
- //crMark = new int[st.countTokens()];
- for(int i=1;st.hasMoreTokens();i++){
- crCredit[i]=Double.parseDouble(st.nextToken().trim());
- }
- }
- }
- %>
- <html>
- <head>
- <title>社区制度管理</title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="css.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- .style1 {
- color: #FF0000;
- font-weight: bold;
- }
- -->
- </style>
- </head>
- <body>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
- <tr>
- <td align="center"><strong>配置默认社区制度</strong></td>
- </tr>
- <tr>
- <td><span class="style1">以下内容 加 请填写正数,减 请填写负数!</span></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#e6e6e6">
- <form name="form1" method="post" action=""><tr bgcolor="#f6f6f6">
- <td width="128" height="22" bgcolor="#f6f6f6"><strong>操作对象</strong></td>
- <td width="133"><strong>积分</strong></td>
- <td width="193"><strong>今币</strong></td>
- <td width="237"><strong>信誉</strong></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">发表帖子</td>
- <td><input name="crMark1" type="text" id="crMark1" value="<%=crMark[1]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney1" type="text" id="crMoney1" value="<%=crMoney[1]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit" type="text" id="crCredit1" value="<%=crCredit[1]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">回帖帖子</td>
- <td><input name="crMark2" type="text" id="crMark2" value="<%=crMark[2]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney2" type="text" id="crMoney2" value="<%=crMoney[2]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit2" type="text" id="crCredit2" value="<%=crCredit[2]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">编辑帖子</td>
- <td><input name="crMark3" type="text" id="crMark3" value="<%=crMark[3]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney3" type="text" id="crMoney3" value="<%=crMoney[3]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit3" type="text" id="crCredit3" value="<%=crCredit[3]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">移动帖子</td>
- <td><input name="crMark4" type="text" id="crMark4" value="<%=crMark[4]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney4" type="text" id="crMoney4" value="<%=crMoney[4]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit4" type="text" id="crCredit4" value="<%=crCredit[4]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">删除帖子</td>
- <td><input name="crMark5" type="text" id="crMark5" value="<%=crMark[5]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney5" type="text" id="crMoney5" value="<%=crMoney[5]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit5" type="text" id="crCredit5" value="<%=crCredit[5]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">帖子加精</td>
- <td><input name="crMark6" type="text" id="crMark6" value="<%=crMark[6]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney6" type="text" id="crMoney6" value="<%=crMoney[6]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit6" type="text" id="crCredit6" size="10" value="<%=crCredit[6]%>" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">解除加精</td>
- <td><input name="crMark7" type="text" id="crMark7" value="<%=crMark[7]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney7" type="text" id="crMoney7" value="<%=crMoney[7]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit7" type="text" id="crCredit7" value="<%=crCredit[7]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">帖子固顶</td>
- <td><input name="crMark8" type="text" id="crMark8" value="<%=crMark[8]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney8" type="text" id="crMoney8" value="<%=crMoney[8]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit8" type="text" id="crCredit8" value="<%=crCredit[8]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">解除固顶</td>
- <td><input name="crMark9" type="text" id="crMark9" value="<%=crMark[9]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney9" type="text" id="crMoney9" value="<%=crMoney[9]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit9" type="text" id="crCredit9" value="<%=crCredit[9]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">结帖</td>
- <td><input name="crMark10" type="text" id="crMark10" value="<%=crMark[10]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney10" type="text" id="crMoney10" value="<%=crMoney[10]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit10" type="text" id="crCredit10" value="<%=crCredit[10]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">加入黑名单</td>
- <td><input name="crMark11" type="text" id="crMark11" value="<%=crMark[11]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney11" type="text" id="crMoney11" value="<%=crMoney[11]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit11" type="text" id="crCredit11" value="<%=crCredit[11]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">提前解除黑名单</td>
- <td><input name="crMark12" type="text" id="crMark12" value="<%=crMark[12]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney12" type="text" id="crMoney12" value="<%=crMoney[12]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit12" type="text" id="crCredit12" value="<%=crCredit[12]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">发言禁止显示</td>
- <td><input name="crMark13" type="text" id="crMark13" value="<%=crMark[13]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney13" type="text" id="crMoney13" value="<%=crMoney[13]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit13" type="text" id="crCredit13" value="<%=crCredit[13]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">用户登录</td>
- <td><input name="crMark14" type="text" id="crMark14" value="<%=crMark[14]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney14" type="text" id="crMoney14" value="<%=crMoney[14]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit14" type="text" id="crCredit14" value="<%=crCredit[14]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">用户注册</td>
- <td><input name="crMark15" type="text" id="crMark15" value="<%=crMark[15]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney15" type="text" id="crMoney15" value="<%=crMoney[15]%>" size="10" maxlength="20"></td>
- <td><input name="crCredit15" type="text" id="crCredit15" value="<%=crCredit[15]%>" size="10" maxlength="10"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">社区存款利率</td>
- <td> </td>
- <td><input name="crMoney16" type="text" id="crMoney16" value="<%=crMoney[16]%>" size="10" maxlength="20">
- % 百分之 请不要填写单位</td>
- <td> </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td height="22" bgcolor="#f6f6f6">社区兑率(今币积分兑换)</td>
- <td><input name="crMark17" type="text" id="crMark17" value="<%=crMark[17]%>" size="10" maxlength="20"></td>
- <td><input name="crMoney17" type="text" id="crMoney17" value="<%=crMoney[17]%>" size="10" maxlength="20"> </td>
- <td> </td>
- </tr>
- <tr align="center" bgcolor="#f6f6f6">
- <td height="22" colspan="4" bgcolor="#f6f6f6"><input name="gvSubmit" type="submit" id="gvSubmit" value="确定提交"></td>
- </tr>
- </form>
- </table>
- </body>
- </html>