clubPageManage.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:14k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- <%@ page language="java" contentType="text/html;charset=UTF-8" %><%@
- include file="./GVinc/gvImport.jsp" %><%@
- include file="./GVinc/gvTopicVar.jsp"
- %><jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
- <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
- <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
- <jsp:useBean id="ctm" scope="request" class="com.gamvan.club.topic.ClubTopicManage"/>
- <jsp:useBean id="cti" scope="page" class="com.gamvan.club.topic.ClubTopicInfo"/>
- <jsp:useBean id="crl" scope="page" class="com.gamvan.club.ClubRule"/><%@
- include file="./GVinc/gvClassInfo.jsp" %><%
- ccStyle = ParamUtils.getByteParameter(request,"ccStyle");
- int reID = ParamUtils.getIntParameter(request,"reID");
- int tID = ParamUtils.getIntParameter(request,"tID");
- String act = TypeChange.nullOfString(request.getParameter("act"));
- boolean isRe = false;
- if(reID>0){
- isRe = true;
- }
- // 判断是显示回复还是主题
- ClubTopicItem ctit = null;
- ClubTopicReItem ctrit = null;
- if(request.getMethod().equals("POST")){
- ctm.setUserMark(TypeChange.stringToDouble(request.getParameter("userMark")));
- ctm.setUserMoney(TypeChange.stringToDouble(request.getParameter("userMoney")));
- ctm.setUserCredit(TypeChange.stringToDouble(request.getParameter("userCredit")));
- ctm.setMoveCCID(TypeChange.stringToInt(request.getParameter("moveCCID")));
- ctm.setSaveLink(request.getParameter("saveLink"));
- ctm.setTopicOrder(TypeChange.stringToInt(request.getParameter("topicOrder")));
- ctm.setCcID(ccID);
- ctm.setCcName(request.getParameter("oCCNAME"));
- ctm.setByUser(gvUserName);
- ctm.setByUserID(gvUserID);
- ctm.setTopicLogTxt(request.getParameter("topicLogTxt"));
- ctm.setByUserIP(request.getRemoteAddr());
- if(isPass(gvUserGradeTxt,44)){
- if(request.getParameter("listMyID").equals("0")){
- ctm.setTopicLogByUserList((short)0);
- }else{
- ctm.setTopicLogByUserList(TypeChange.stringToShort(String.valueOf(gvUserGradeID)));
- }
- }else{
- ctm.setTopicLogByUserList(TypeChange.stringToShort(String.valueOf(gvUserGradeID)));
- }
- if(act.equals("top")||act.equals("manage")||act.equals("best")||act.equals("move")||act.equals("del")){
- ctm.setTopicLogList(true);
- }else{
- ctm.setTopicLogList(false);
- }
- ctm.setTopicID(tID);
- ctm.setTopicReID(reID);
- ctm.topicManage(act);
- if(request.getParameter("topicLayer").equals("0")){ //如果是主题
- out.print(prtCenter(ctm.getMessage(),"clubPage.jsp?ccID="+ ccID +"&tID="+ tID +"&ccStyle="+ccStyle+"",1));
- }else{
- out.print(prtCenter(ctm.getMessage(),"clubPage.jsp?ccID="+ ccID +"&tID="+ request.getParameter("topicReID") +"&reID="+ tID +"&ccStyle=1",1));
- }
- out.close();
- if(true)return;
- }
- if(isRe){
- ctrit = (ClubTopicReItem)cti.topicInfo(0, reID, (byte)1);
- if(ctrit==null){
- out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
- out.close();
- return;
- }
- userName = ctrit.getUserName();
- topicMood = ctrit.getTopicMood();
- userID = ctrit.getUserID();
- topic = ctrit.getTopic();
- }else{
- ctit = (ClubTopicItem)cti.topicInfo(tID, 0, (byte)0);
- if(ctit==null){
- out.print(OutPrint.prtCenter("您所请求的主题不存在或已被删除!","userLogin.jsp",2));
- out.close();
- return;
- }
- userName = ctit.getUserName();
- topicMood = ctit.getTopicMood();
- userID = ctit.getUserID();
- topic = ctit.getTopic();
- }
- %><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 class="popLayer" id="popLayer" style="Z-INDEX: 100"></DIV>
- <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 type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <script type="text/javascript" src="GVscript/GVshowLayer.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__文章管理');
- </script>
- <%
- if(tID<=0){
- out.print(errs(3,"您所请求的页面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- //权限判断开始
- if(ccID<=0){
- out.print(errs(3,"您所请求的版面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- if(ccType==0){
- if(!isPass(gvUserGradeTxt,2)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览论坛分类!"));
- out.close();
- if(true) return;
- }
- }else{
- if(!isPass(gvUserGradeTxt,3)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览论坛版面!"));
- out.close();
- if(true) return;
- }
- }
- if(act.equals("del")){
- if(!userName.equals(gvUserName)){
- if(!isPass(gvUserGradeTxt,21)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权删除他人文章!"));
- out.close();
- if(true) return;
- }
- }else{
- if(!isPass(gvUserGradeTxt,16)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权删除文章!"));
- out.close();
- if(true) return;
- }
- }
- }else if(act.equals("move")){
- if(!userName.equals(gvUserName)){
- if(!isPass(gvUserGradeTxt,20)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权移动他人文章!"));
- out.close();
- if(true) return;
- }
- }else{
- if(!isPass(gvUserGradeTxt,17)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权移动文章!"));
- out.close();
- if(true) return;
- }
- }
- }else if(act.equals("best")){
- if(!isPass(gvUserGradeTxt,22)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
- out.close();
- if(true) return;
- }
- }else if(act.equals("nobest")){
- if(!isPass(gvUserGradeTxt,22)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
- out.close();
- if(true) return;
- }
- }else if(act.equals("top")){
- if(!isPass(gvUserGradeTxt,24)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
- out.close();
- if(true) return;
- }
- }else if(act.equals("manage")){
- if(!isPass(gvUserGradeTxt,43)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权进行此项操作!"));
- out.close();
- if(true) return;
- }
- }else{
- out.print(errs(3,"您的操作触发一个美丽的错误,请返回重新进入本页!"));
- out.close();
- if(true) return;
- }
- %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1">
- <td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu(
- com.gamvan.club.ClubHtmlConst.gamvan_classMenu(ccID, ccID1,ccID2,ccName,ccName1,ccName2, ccIDD, ccIDD1)
- )%>
- <%
- int num = 0;
- if(act.equals("del")){
- num = 5;
- out.print("删除文章");
- temp+="删除文章";
- }else if(act.equals("best")){
- num = 6;
- out.print("文章加精");
- temp+="文章加精";
- }else if(act.equals("nobest")){
- num = 7;
- out.print("文章取消精品");
- temp+="文章取消精品";
- }else if(act.equals("move")){
- num = 4;
- out.print("移动文章");
- temp+="移动文章";
- }else if(act.equals("top")){
- num = 8;
- out.print("文章置顶");
- temp+="文章置顶";
- }else if(act.equals("manage")){
- num = 0;
- out.print("管理主题");
- temp+="管理主题";
- }
- //out.print(act);
- //out.close();
- //if(true) return;
- double userMark, userMoney, userCredit;
- String txts;
- if(num > 0 ){
- ClubRuleItem cri = null;
- cri = crl.ruleInfo();
- txts = cri.getCrMark();
- userMark = ae.txtsList(txts,num,"|");
- txts = "";
- txts = cri.getCrMoney();
- userMoney = ae.txtsList(txts,num,"|");
- txts = "";
- txts = cri.getCrCredit();
- userCredit = ae.txtsList(txts,num,"|");
- }else{
- userMark = 0;
- userMoney = 0;
- userCredit = 0;
- }
- %></td></tr></table>
- <table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
- <form name="Gforms" id="form1" method="post" action="" onSubmit="postMsg();">
- <tr class="tab1">
- <td width="160" height="22"><strong> 用户:</strong>
- <club:users type="userName" idIs="<%=userID%>" value="<%=userName%>"/>
- </td>
- <td height="22"><strong><club:topic type="topic" value="<%=topic%>"/></strong>
- <input name="tID" type="hidden" id="tID" value="<%=tID%>" />
- </td></tr>
- <tr class="tab2"><td class="tab1"><strong> 信誉操作</strong></td><td>
- <select name="userCredit" id="select">
- <option value="0" selected="selected">信誉操作</option>
- <%
- for(double i=userCredit-10; i<=userCredit+10; i++){
- if(i==userCredit){
- out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
- }else{
- out.print("<option value=""+ i +"">"+ i +"</option>");
- }
- }
- %></select></td></tr>
- <tr class="tab2">
- <td class="tab1"><strong> 积分操作</strong></td><td>
- <select name="userMark" id="userMark">
- <option value="0" selected="selected">积分操作</option>
- <%
- for(double i=userMark-21; i<=userMark+19; i++){
- if(i==userMark){
- out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
- }else{
- out.print("<option value=""+ i +"">"+ i +"</option>");
- }
- }
- %>
- </select>
- </td></tr>
- <tr class="tab2"><td class="tab1"><strong> 今币操作</strong></td><td>
- <select name="userMoney" id="select">
- <option value="0" selected="selected">今币操作</option>
- <%
- for(double i=userMoney-10; i<=userMoney+10; i++){
- if(i==userMoney){
- out.print("<option value=""+ i +"" selected="selected">"+ i +"</option>");
- }else{
- out.print("<option value=""+ i +"">"+ i +"</option>");
- }
- }
- %></select></td></tr>
- <tr class="tab2">
- <td class="tab1"><strong> 所在版面</strong></td>
- <td><%=ccName%>
- <input name="oCCNAME" type="hidden" value="<%=ccName%>" />
- </td></tr>
- <%
- if(act.equals("move")){
- %>
- <tr class="tab2">
- <td class="tab1"><strong> 目标版面</strong></td>
- <td><%
- com.gamvan.club.classed.ClubClassCollection cccm = new com.gamvan.club.classed.ClubClassCollection();
- %><select name="moveCCID">
- <c:forEach var="ccc0" items="<%=cccm.classList()%>">
- <club:classinfo type="option" idIs="${ccc0.ccID}" linkId="<%=ccID%>" value="${ccc0.ccName}"/>
- <c:set value="${ccc0.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc1" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc1.ccID}" linkId="<%=ccID%>" value="${ccc1.ccName}"/>
- <c:set value="${ccc1.ccID}" target="${ccc}" property="reId" />
- <c:forEach var="ccc2" items="<%=ccc.classReList()%>">
- <club:classinfo property=" " type="option" idIs="${ccc2.ccID}" linkId="<%=ccID%>" value="${ccc2.ccName}"/>
- </c:forEach>
- </c:forEach>
- </c:forEach>
- </select>
- </td></tr>
- <tr class="tab2">
- <td class="tab1">
- <strong>是否在原有位置保留链接</strong>
- </td><td>
- <input name="saveLink" type="radio" value="0" checked="checked" />不保留
-
- <input name="saveLink" type="radio" value="1" />保留
- </td></tr>
- <%}else if(act.equals("top")){%>
- <tr class="tab2">
- <td class="tab1"><strong> 目标版面</strong></td>
- <td>
- <input name="topicOrder" type="radio" value="0" />解除置顶
-
- <input name="topicOrder" type="radio" value="1" checked="checked" />本版置顶
-
- <input name="topicOrder" type="radio" value="2" />区置顶
-
- <input name="topicOrder" type="radio" value="3" />总置顶
- </td>
- </tr>
- <%}%>
- <tr class="tab2">
- <td class="tab1"><strong> 操作理由</strong></td>
- <td>
- <input name="topicLogTxt" type="text" value="" size="50" maxlength="200" />
- </td></tr>
- <%
- if(isPass(gvUserGradeTxt,44)){%>
- <tr class="tab2">
- <td class="tab1"><strong> 是否在日志显示ID</strong></td>
- <td>
- <input name="listMyID" type="radio" value="0" checked="checked" />隐藏
-
- <input name="listMyID" type="radio" value="1" />显示
- </td></tr>
- <%}else{%>
- <input name="listMyID" type="hidden" value="1" />
- <%}%>
- <tr class="tab2">
- <td height="34" class="tab1"> </td>
- <td class="tab1">
- <%
- if(act.equals("del")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="确定删除此主题" />");
- }else if(act.equals("move")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="确定移动此主题" />");
- }else if(act.equals("best")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="确定更新主题属性为精品" />");
- }else if(act.equals("nobest")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="确定主题取消精品属性" />");
- }else if(act.equals("top")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="主题置顶属性更改" />");
- }else if(act.equals("manage")){
- out.print("<input class="btn" name="gvSubmit" type="submit" value="确定对此主题进行操作" />");
- }
- %>
- <input name="topicLayer" type="hidden" value="<%=topicLayer%>" />
- <input name="topicReID" type="hidden" value="<%=topicReID%>" />
- </td></tr></form></table>
- <script language="javascript" type="text/javascript" src="../GVscript/GVpost.js"></script>
- <%=Gfoot()%>
- </body>
- </html>
- <!-- Powered by www.GamVan.com -->