clubBlackEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:6k
- <%@ page language="java" contentType="text/html;charset=UTF-8" %>
- <%@ include file="../GVinc/gvInclude.jsp" %>
- <%@ include file="clubMasterPass.jsp" %>
- <jsp:useBean id="cbr" scope="page" class="com.gamvan.club.user.ClubBlackRequest"/>
- <jsp:useBean id="cbg" scope="page" class="com.gamvan.club.user.ClubBlackGet"/>
- <%
- //权限判断共享代码
- boolean ispass = false;
- //ArrayEdit ae = new ArrayEdit();
- ispass = ae.txtsArray(gvcmgTxt,9,"|");
- if(!ispass){
- out.print(prtCenter2("您无权进行此项操作!","",2));
- out.close();
- if(true)return;
- }
- //权限判断代码结束
- String act = "add";
- if(request.getParameter("act")!=null){
- act = request.getParameter("act");
- }
- String userName = "";
- if(request.getParameter("uName")!=null){
- userName = request.getParameter("uName");
- }
- int bID=0;
- if(request.getParameter("bID")!=null){
- bID = Integer.parseInt(request.getParameter("bID"));
- }
- int blackDate=3;
- String blackInfo="", blackTxt="";
- if(request.getMethod().equals("POST")){
- temp = "";
- String txt="";
- for(int i = 1; i < 30; i++){
- txt = request.getParameter("blackInfo"+String.valueOf(i));
- if(txt==null){
- txt="0";
- }
- if(temp.equals("")){
- temp = txt;
- }else{
- temp = temp + "|" + txt;
- }
- }
- blackInfo = temp;
- userName = clubgb.gb(userName);
- cbr.setBlackUserName(userName);
- //out.print(userName);
- if(userName.equals("")){
- out.print(prtCenter2("用户ID不能为空!","",2));
- out.close();
- if(true)return;
- }
- cbr.setBid(bID);
- cbr.setBlackInfo(blackInfo);
- cbr.setBlackTxt(clubgb.gb(request.getParameter("blackTxt")));
- cbr.setBlackDate(request.getParameter("blackDate"));
- //cbr.setBlackOver(request.getParameter("blackOver"));
- cbr.setByUserIp(request.getRemoteAddr());
- cbr.setByUserName(gvcmName);
- cbr.setCCID(request.getParameter("ccID"));
-
- cbr.blackAct();
- out.print(prtCenter2(cbr.getMessage(),"",2));
- out.close();
- if(true)return;
- }
- int [] bInfo = new int[20];
- if(bID>0){
- cbg.clubBlackBid(bID,1);
- userName = cbg.getBlackUserName();
- ccID = cbg.getCCID();
- blackInfo = cbg.getBlackInfo();
- blackTxt = cbg.getBlackTxt();
- blackDate = cbg.getBlackDate();
-
- StringTokenizer st = new StringTokenizer(blackInfo,"|");
- bInfo = new int[st.countTokens()];
- for(int i=0;st.hasMoreTokens();i++){
- bInfo[i]=Integer.parseInt(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">
- </head>
- <body>
- <script type="text/javascript" src="../GVscript/GVjumpPage.js"></script>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" bgcolor="#e6e6e6">
- <tr>
- <td align="center"><strong>社区用户列表</strong></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#9AA8CB">
- <form name="form2" method="get" action=""> <tr bgcolor="#f6f6f6">
- <td bgcolor="#e6e6e6">
- <a href="clubBlackList.jsp">点击这里返回黑名单</a> </td>
- </tr>
- </form>
- </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="100"><strong>用户ID</strong></td>
- <td><input name="uName" type="text" id="uName" value="<%=userName%>" size="30" maxlength="30"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td><strong>限制版面</strong></td>
- <td>
- <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.ClubClassList"/>
- <select name="ccID">
- <option <%if(ccID==0){out.print(" selected");}%> value="0">全部版面</option>
- <%
- String sqlCommand;
- Pageable rs=null;
- int ccid, ccid1;
- sqlCommand = "SELECT * FROM GVclubClass where ccIDD = 0 and ccType=0 order by ccOrder desc, ccID desc";
- try{
- cr.setSqlCommand(sqlCommand);
- cr.setPageNum(100); //设置每页显是行数
- cr.setPage(1); //设置当前页
- rs = cr.gvrs(); //
- int pageRows = cr.getPageRows(); //返回当前页行数
- //totalPage = cr.getTotalPage();
- if(pageRows>0){
- for(int i=0; i<pageRows; i++){
-
-
- ccid = rs.getInt("ccID");
- %>
- <option <%if(ccID==ccid){out.print(" selected");}%> value="<%=ccid%>"><%=rs.getString("ccName")%></option>
- <%
- out.print(ccl.classSelect(ccid,1,ccID));
- rs.next();
- }
- }
- rs.close();
- cr.closeAll();
- }catch(Exception e){
-
- }finally{
- cr.closeAll();
- }
- %>
- </select>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>操作内容</strong></td>
- <td>
- <input name="blackInfo1" type="checkbox" id="blackInfo1" value="1" <% if(bInfo[0]==1){out.print("checked");}%>>
- 1.禁止发表主题<br>
- <input name="blackInfo2" type="checkbox" id="blackInfo2" value="1" <% if(bInfo[1]==1){out.print("checked");}%>>
- 2.禁止回复主题<br>
- <input name="blackInfo3" type="checkbox" id="blackInfo3" value="1" <% if(bInfo[2]==1){out.print("checked");}%>>
- 3.禁止浏览帖子<br>
- <input name="blackInfo4" type="checkbox" id="blackInfo4" value="1" <% if(bInfo[3]==1){out.print("checked");}%>>
- 4.禁止显示其发表的主题<br>
- <input name="blackInfo5" type="checkbox" id="blackInfo5" value="1" <% if(bInfo[4]==1){out.print("checked");}%>>
- 5.禁止显示其发表的回复<br>
- <input name="blackInfo6" type="checkbox" id="blackInfo6" value="1" <% if(bInfo[5]==1){out.print("checked");}%>>
- 6.禁止上传文件<br>
- <input name="blackInfo7" type="checkbox" id="blackInfo7" value="1" <% if(bInfo[6]==1){out.print("checked");}%>>
- 7.禁止显示签名<br>
- </td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>操作理由</strong><br>
- 支持UBB</td>
- <td><textarea name="blackTxt" cols="60" rows="4" id="blackTxt"><%=blackTxt%></textarea></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"><strong>限制时间</strong></td>
- <td><input name="blackDate" type="text" id="blackDate" value="<%=blackDate%>" size="3" maxlength="4">
- 天</td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"></td>
- <td><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
- </tr>
- <tr bgcolor="#f6f6f6">
- <td bgcolor="#f6f6f6"></td>
- <td> </td>
- </tr>
- </form>
- </table>
- <br>
- </body>
- </html>