⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clubpagemanage.jsp

📁 bbs系统源码有简单的bbs功能 论坛:http://www.mycodes.net/bbs
💻 JSP
字号:
<%@ 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="ccr" scope="page" class="com.gamvan.club.classed.ClubClassResults"/>
<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"));
if(act.equals("del")){
	if(!userName.equals(gvUserName)){
		if(!isPass(gvUserGradeTxt,21)){
			out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权删除他人文章!"));
			out.close();
			if(true) return;
		}
	}else{
		if(!isPass(gvUserGradeTxt,16)){
			out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权删除文章!"));
			out.close();
			if(true) return;
		}
	}
}else if(act.equals("move")){
	if(!userName.equals(gvUserName)){
		if(!isPass(gvUserGradeTxt,20)){
			out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权移动他人文章!"));
			out.close();
			if(true) return;
		}
	}else{
		if(!isPass(gvUserGradeTxt,17)){
			out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权移动文章!"));
			out.close();
			if(true) return;
		}
	}
}else if(act.equals("best")){
	if(!isPass(gvUserGradeTxt,22)){
		out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
		out.close();
		if(true) return;
	}
}else if(act.equals("nobest")){
	if(!isPass(gvUserGradeTxt,22)){
		out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
		out.close();
		if(true) return;
	}
}else if(act.equals("top")){
	if(!isPass(gvUserGradeTxt,24)){
		out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权把文章加为精品!"));
		out.close();
		if(true) return;
	}
}else if(act.equals("manage")){
	if(!isPass(gvUserGradeTxt,43)){
		out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")无权进行此项操作!"));
		out.close();
		if(true) return;
	}	
}else{
		out.print(com.gamvan.club.web.ClubErrors.errs(3,"您的操作触发一个美丽的错误,请返回重新进入本页!"));
		out.close();
		if(true) return;
}

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)){
		ctm.setTopicLogByUserList(ParamUtils.getShortParameter(request,"listMyID"));
	}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.setPostMsg(ParamUtils.getStringParameter(request,"postMsg_"));
	ctm.setUserMessage(ParamUtils.getStringParameter(request,"userMessage"));
	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));
	}
%>
<cache:flush  key="topic_main"  scope="application"/>	
<%
	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" />
<STYLE type=text/css media=screen>@import url(./GVinc/GamVanClubStyle.css);</STYLE>
</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 language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
<script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
<script language="javascript" type="text/javascript" src="GVscript/GVshowLayer.js"></script>
<script language="javascript" type="text/javascript">
<!--
gv_showWait('waitDiv', 1);
prtie2('<%=clubTitle%> - 文章管理');
var div=0;
function showInfo(){
	if(div==0){
		document.getElementById("div1").style.display = "";
		div = 1;
	}else{
		document.getElementById("div1").style.display = "none";
		div=0;
	}
}
-->
</script>
<DIV class="line"></DIV>
<DIV class="list_table_0">
<%=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;
}
%></DIV>
<DIV class="line"></DIV>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab">
<form name="Gforms" id="Gforms" method="post" action="" target="_self" onSubmit="javascript:postMsg();">
<tr class="tab1">
<td width="160" height="22"><strong>&nbsp;用户:</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>&nbsp;信誉操作</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>&nbsp;积分操作</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>&nbsp;今币操作</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>&nbsp;所在版面</strong></td>
<td><%=ccName%>
<input name="oCCNAME" type="hidden" value="<%=ccName%>" />
</td></tr>
<%
if(act.equals("move")){
%>
<tr class="tab2">
<td class="tab1"><strong>&nbsp;目标版面</strong></td>
<td>
<select name="moveCCID">
<%@ include file="./GVfilesInc/gvClassSelect.jsp" %>
</select>
</td></tr>
<tr class="tab2">
<td  class="tab1">
<strong>是否在原有位置保留链接</strong>
</td><td>
<input name="saveLink" type="radio" value="0" checked="checked" />不保留
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="saveLink" type="radio" value="1" />保留
</td></tr>
<%}else if(act.equals("top")){%>
<tr class="tab2">
<td class="tab1"><strong>&nbsp;目标版面</strong></td>
<td>
<input name="topicOrder" type="radio" value="0" />解除置顶
&nbsp;&nbsp;	
<input name="topicOrder" type="radio" value="1" checked="checked" />本版置顶
&nbsp;&nbsp;
<input name="topicOrder" type="radio" value="2" />区置顶
&nbsp;&nbsp;
<input name="topicOrder" type="radio" value="3" />总置顶
</td>
</tr>
<%}%>
<tr class="tab2">
<td class="tab1"><strong>&nbsp;操作理由</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>&nbsp;是否在日志显示ID</strong></td>
<td>
<input name="listMyID" type="radio" value="0" checked="checked" />隐藏
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="listMyID" type="radio" value="1" />显示
</td></tr>
<%}else{%>
<input name="listMyID" type="hidden" value="1" />
<%}%>
<tr class="tab2">
<td class="tab1"><strong>&nbsp;是否用短消息通知贴子主人</strong></td>
<td>
<input name="postMsg_" type="radio" value="1" onclick="javascript:showInfo();"/>通知
&nbsp;&nbsp;&nbsp;&nbsp;
<input name="postMsg_" type="radio" value="0" checked="checked"/>不通知
<table align="center" id="div1" style="DISPLAY: none" cellpadding="1" cellspacing="1"  width="100%">
<tr><td>
<textarea name="userMessage" cols="80" rows="3"></textarea>
</td></tr>
</table>
</td></tr>
<tr class="tab2">
<td height="34" class="tab1">&nbsp;</td>
<td class="tab1">
<% 
if(act.equals("del")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"确定删除此主题\" />");
}else if(act.equals("move")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"确定移动此主题\" />");
}else if(act.equals("best")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"确定更新主题属性为精品\" />");
}else if(act.equals("nobest")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"确定主题取消精品属性\" />");
}else if(act.equals("top")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"主题置顶属性更改\" />");
}else if(act.equals("manage")){
	out.print("<input class=\"btn\" name=\"gvSubmit\" id=\"gvSubmit\" type=\"submit\" value=\"确定对此主题进行操作\" />");	
}
%>
<input name="gvBack" id="gvBack" type="hidden" value="" /> 
<input name="topicLayer" type="hidden" value="<%=topicLayer%>" /> 
<input name="topicReID" type="hidden" value="<%=topicReID%>" />
</td></tr></form></table>
<%=Gfoot()%>
</body>
</html>
<!-- Powered by www.GamVan.com -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -