📄 cmtopic.jsp
字号:
<%@ 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.classed.ClubClassInfo"/>
<jsp:useBean id="ctm" scope="page" class="com.gamvan.club.topic.ClubTopicManage" />
<%@ include file="./GVinc/gvClassInfo.jsp" %>
<%
int iPage = ParamUtils.getIntParameter(request, "iPage",1);
String act = ParamUtils.getStringParameter(request, "act");
boolean isRe = ParamUtils.getBooleanParameter(request,"isRe");
byte isDel = ParamUtils.getByteParameter(request,"isDel");
short pro = ParamUtils.getShortParameter(request,"pro",(short)-1);
int isPass = ParamUtils.getIntParameter(request,"isPass",-1);
short layer = ParamUtils.getShortParameter(request,"layer",(short)-1);
//权限判断开始
if(ccID<=0){
out.print(com.gamvan.club.web.ClubErrors.errs(3,"您所请求的版面不存在或已被删除!"));
out.close();
if(true) return;
}
if(!isPass(gvUserGradeTxt,46)){
out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
out.close();
if(true) return;
}
if(request.getMethod().equals("POST")){
if(act.equals("1") || act.equals("2")){
if(!isPass(gvUserGradeTxt,45)){
out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
out.close();
if(true) return;
}
}else if(act.equals("3") || act.equals("4")){
if(!isPass(gvUserGradeTxt,21)){
out.print(com.gamvan.club.web.ClubErrors.errs(1,"您的级别("+ gvUserGradeName +")不能进行此项操作,如果你还没有登陆,请先登陆!"));
out.close();
if(true) return;
}
}
ctm.setIsRe(isRe);
ctm.setAct(act);
ctm.topicDos(request.getParameterValues("topicID"));
out.print(OutPrint.prtCenter("操作成功,点击这里返回!","cmTopic.jsp?ccID="+ccID+"&isRe="+isRe+"&isDel="+isDel+"&isPass="+isPass+"&pro="+pro+"&layer="+layer+"&iPage="+iPage+"",1));
out.close();
if(true)return;
}
%>
<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 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" type="text/javascript">
gv_showWait('waitDiv', 1);
prtie2('<%=clubTitle%> - 版面管理 - 文章管理');
</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)
)%>
版面管理
</DIV>
<DIV class="line"></DIV>
<%@ include file="./GVfilesInc/classManageMenu.jsp" %>
<DIV class="line"></DIV>
<DIV class="list_table_0">
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=1&pro=-1&isRe=false">已认证主题</a>
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=0&pro=-1&isRe=false">未认证主题</a>
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=1&pro=-1&isRe=true">已认证回复</a>
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=0&pro=-1&isRe=true">未认证回复</a>
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=3&isDel=1&isRe=false">回收站主题</a>
<a href="cmTopic.jsp?ccID=<%=ccID%>&isPass=3&isDel=1&isRe=true">回收站回复</a>
</DIV>
<DIV class="line"></DIV>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
<form name="Gforms" id="Gforms" method="post" action="">
<tr align="center" class="tab2">
<td width="36" height="25"><strong>操作</strong></td>
<td width="*"><strong>主题</strong></td>
<td width="100"><strong>发布人</strong></td>
<td width="110"><strong>发布时间</strong></td>
<td width="110"><strong>发帖IP</strong></td>
<td width="40" align="center"><strong>认证</strong></td>
</tr>
<%
String tUrl = "clubPage.jsp?ccStyle=1";
ctm.setTopicPro(pro);
ctm.setIsRe(isRe);
ctm.setTopicIsDel(isDel);
ctm.setCcID(ccID);
int totalPage = ctm.topicCount(isPass);
List list = ctm.topicList(iPage, 30, isPass);
%>
<c:forEach var="t" items="<%=list%>">
<tr class="tab3"><td height="25" align="center">
<%if(isRe){%>
<club:topic type="htmlCheckbox" idIs="${t.topicReID}"/>
<%}else{%>
<club:topic type="htmlCheckbox" idIs="${t.topicID}"/>
<%}%>
</td><td>
<%if(isRe){%>
<club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" linkId="${t.topicReID}" value="${t.topic}" bea="<%=true%>"/>
<%}else{%>
<club:topic type="topic" property="_blank" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" linkId="0" value="${t.topic}" bea="<%=true%>"/>
<%}%>
</td><td align="center">
<club:users type="userName" idIs="${t.userID}" value="${t.userName}" url="../" bea="<%=false%>"/>
</td><td align="center">
<span class="smalltxt"><club:topic type="topicAddTime" value="${t.topicAddTime}"/></span>
</td><td align="center">
<span class="smalltxt"><club:topic type="topicAddip" value="${t.topicAddip}"/></span>
</td>
<td align="center" bgcolor="#f6f6f6">
<club:topic type="topicIsPass" bea="${t.topicIsPass}" value="${t.topicIsPass}"/>
</td></tr>
</c:forEach>
<tr class="tab2">
<td height="30" align="center">
<input name="chkall" type="checkbox" id="chkall" value="on" onclick="checkAll(this.form)"/>
</td>
<td colspan="10">
<select name="act" id="act">
<option value="0" selected>操作内容</option>
<option value="1">认证主题</option>
<option value="2">反认证主题</option>
<option value="3">删除主题至回收站</option>
<option value="4">还原回收站主题</option>
</select>
<input name="gvSubmit" type="submit" class="btn" id="gvSubmit" value="确定提交">
</td></tr>
</form></table>
<table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td><%=OutPrint.pageJump(totalPage,30, iPage, "cmTopic.jsp?ccID="+ccID+"&")%>
</td></tr></table>
<%=Gfoot()%>
</body>
</html>
<!-- Powered by www.GamVan.com -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -