cmBlackEdit.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:7k
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- errorPage="err.jsp" %>
- <%@ include file="./GVinc/gvImport.jsp" %>
- <jsp:useBean id="cci" scope="page" class="com.gamvan.club.ClubClassInfo"/>
- <jsp:useBean id="cbr" scope="page" class="com.gamvan.club.user.ClubBlackRequest"/>
- <%@ include file="./GVinc/gvClassInfo.jsp" %>
- <%
- String act = "add";
- if(request.getParameter("act")!=null){
- act = request.getParameter("act");
- }
- String userName=new String();
- if(request.getParameter("uName")!=null){
- userName = request.getParameter("uName");
- }
- int bID=0;
- if(request.getParameter("bID")!=null){
- bID = Integer.parseInt(request.getParameter("bID"));
- }
- blackDate=3;
- blackInfo="";
- 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(prtCenter("用户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(gvUserName);
- cbr.setCCID(request.getParameter("ccID"));
-
- cbr.blackAct();
- out.print(prtCenter(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 xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%=clubTitle%>>><%
- if(ccIDD1>0){
- out.print(ccName2 +">>");
- }
- %>
- <%
- if(ccIDD>0){
- out.print(ccName1 +">>");
- }
- %>
- <%=ccName%>
- </title>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link href="./GVimgs/favicon.ico" rel="Bookmark">
- <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
- <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 20%; TEXT-ALIGN: center">
- <TABLE cellPadding=6 border=0>
- <TBODY><TR><TD align=middle>
- <IMG src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
- <BR>
- <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
- <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
- <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <%
- //权限判断开始
- if(ccID<=0){
- out.print(errs(3,"您所请求的版面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- if(!isPass(gvUserGradeTxt,34)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
- out.close();
- if(true) return;
- }
- %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1">
- <td>
- <strong>您的位置</strong>>><a href="default.jsp" target="_parent">社区首页</a>>>
- <a href="main.jsp">进站画面</a>>>
- <%
- temp = "";
- if(ccIDD1>0){
- out.print("<a href="clubClass.jsp?ccID="+ ccID2 +"&ccStyle="+ ccStyle +"">"+ ccName2 +"</a>>>");
- temp = ccName2 + ">>";
- }
- %>
- <%
- if(ccIDD>0){
- out.print("<a href="clubClass.jsp?ccID="+ ccID1 +"&ccStyle="+ ccStyle +"">"+ ccName1 +"</a>>>");
- temp += ccName1 + ">>";
- }
- temp += ccName + ">>";
- %>
- <a href="clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>"><%=ccName%></a>>>
- 黑名单管理
- <SCRIPT language="javascript">prtie('<%=clubName%>>><%=temp%> 黑名单管理');</SCRIPT>
- </td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr>
- <td height="22" colspan="5" class="tab1">
- <strong>
- <a href="cmUserop.jsp?ccID=<%=ccID%>">更新管理员</a>
- <a href="clubClassManage.jsp?ccID=<%=ccID%>">更新版面寄语</a>
- <a href="cmAffiche.jsp?ccID=<%=ccID%>">管理公告</a>
-
- <a href="cmUserArticle.jsp?ccID=<%=ccID%>">文章批量管理</a>
-
- <a href="cmBlacklist.jsp?ccID=<%=ccID%>">黑名单管理</a>
- </strong>
- </td>
- </tr>
- <tr>
- <td colspan="5" class="tab3">
- </td>
- </tr>
- <tr>
- <td height="24" colspan="5" class="tab1"><strong>
- <a href="cmBlackEdit.jsp?ccID=<%=ccID%>">添加到黑名单</a>
- <a href="cmBlacklist.jsp?ccID=<%=ccID%>">黑名单列表</a>
- </strong></td>
- </tr>
- </table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
- <form name="form1" method="post" action="">
- <tr class="tab3">
- <td width="100"><strong>用户ID</strong></td>
- <td><input name="uName" type="text" id="uName" value="<%=userName%>" size="30" maxlength="30"></td>
- </tr>
- <tr class="tab3">
- <td class="tab3"><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 class="tab3">
- <td class="tab3"><strong>操作理由</strong><br>
- 支持UBB</td>
- <td><textarea name="blackTxt" cols="60" rows="4" id="blackTxt"><%=blackTxt%></textarea></td>
- </tr>
- <tr class="tab3">
- <td class="tab3"><strong>限制时间</strong></td>
- <td><input name="blackDate" type="text" id="blackDate" value="<%=blackDate%>" size="3" maxlength="4">
- 天</td>
- </tr>
- <tr class="tab2">
- <td></td>
- <td><input name="gvSubmit" type="submit" id="gvSubmit" value="提交"></td>
- </tr>
- </form>
- </table>
- <script language="JavaScript" type="text/javascript">tabline(1,2,"#ffffff");</script>
- <%=Gfoot()%>
- </body>
- </html>