clubClass.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:14k
- <%@ page language="java" contentType="text/html;charset=UTF-8" session="true" errorPage="err.jsp" %>
- <%@ include file="./GVinc/gvImport.jsp" %>
- <jsp:useBean id="cci" scope="page" class="com.gamvan.club.classed.ClubClassInfo"/>
- <jsp:useBean id="ca" scope="page" class="com.gamvan.club.ClubAffiche"/>
- <jsp:useBean id="ctc" scope="page" class="com.gamvan.club.topic.ClubTopicCollection"/><%@
- include file="./GVinc/gvClassInfo.jsp" %><%
- if(request.getParameter("ccStyle")!=null){
- ccStyle = TypeChange.stringToByte(request.getParameter("ccStyle"));
- }else{
- ccStyle = ccoStyle;
- }
- int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
- if(iPage<1){iPage = 1;}
- short tPro = TypeChange.stringToShort(request.getParameter("tPro"));
- String menuStyle="CurNew";
- if(request.getParameter("menuStyle")!=null){
- menuStyle=request.getParameter("menuStyle");
- }
- %><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/classMenu.css);
- @import url(./GVinc/main.css);
- @import url(./GVinc/newStyle.css);
- </STYLE>
- </head>
- <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <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="GVscript/GVtree.js"></script>
- <script language="javascript" type="text/javascript" src="GVscript/GVloadImgs.js"></script>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__<%if(ccIDD1>0){out.print(ccName2 +"__");}%><%if(ccIDD>0){out.print(ccName1 +"__");}%><%=ccName%>')
- </script>
- <body class=<%=menuStyle%> onLoad="loadImg();">
- <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0 height=0></IFRAME>
- <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 40%; 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">gv_showWait('waitDiv', 1); </SCRIPT>
- <%
- //权限判断开始
- if(ccID<=0){
- out.print(errs(3,"您所请求的版面不存在或已被删除!"));
- out.close();
- if(true) return;
- }
- if(ccUgid<gvUserGradeID){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权浏览社区分类!如果您尚未登陆,请先登陆社区!"));
- 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(ccPro>0){
- boolean passPro=false; //判断用户是否有访问特殊属性的版面
- if(ccPro==3){
- passPro = ae.txtsArray(ccUserPass, gvUserName, "|");
- if(!passPro && !isPass(gvUserGradeTxt,41)){
- out.print(errs(1,"本版为成员版,须经过管理员认证才能访问!"));
- out.close();
- if(true) return;
- }
- }
- }
- %>
- <div class="line"></div>
- <DIV class="list_table_20">
- <span style="float:right">
- <strong><a onmouseover="showmenu(event,'','Menu_Show_')" href="#">显示风格</a></strong>
- <DIV class="showMenu" id="Menu_Show_" ><UL>
- <li><a href="clubClass.jsp?ccID=<%=ccID%>&iPage=<%=iPage%>&ccStyle=0&tPro=<%=tPro%>&menuStyle=<%=menuStyle%>">BBS风格</a></li>
- <li><a href="clubClass.jsp?ccID=<%=ccID%>&iPage=<%=iPage%>&ccStyle=1&tPro=<%=tPro%>&menuStyle=<%=menuStyle%>">讨区风格</a></li>
- </UL></DIV>
-
- <a href="clubClass.jsp?&menuStyle=CurBest&ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&tPro=1" target="_self">精华</a>
-
- <a href="clubClassManage.jsp?ccID=<%=ccID%>">管理</a>
- </span>
- <div style="float:left">
- <strong>版主:</strong>
- <c:forEach var="cuo" items="<%=cuo.useropList(ccID, ccID1, ccID2)%>">
- <club:userop type="uoUser" idIs="${cuo.userID}" value="${cuo.uoUser}" url=""/>
- </c:forEach>
- </div>
- </DIV>
- <div class="line"></div>
- <DIV class="list_table_20">
- <span style="float:right">
- <%if(ccType==1){%><strong>主题:</strong>
- <%out.print(ccTopic+ccReply);%> <strong>今日主题:</strong>
- <%out.print(ccTodayTopic+ccTodayReply);%><%}%>
- </span>
- <span style="float:left">
- <strong>寄语</strong>:<%=ccSummary%>
- </span>
- </DIV>
- <div class="line"></div>
- <DIV class="list_table_30">
- <span style="float:right">
- <%if(ccType==1){%>
- <a href="clubPost.jsp?ccID=<%=ccID%>&act=add"><img src="GVimgs/topic.gif" border="0" /></a>
- <%}else{%>进入小分类发表文章<%}%>
-
- </span><DIV class="list_img_left"><strong>公告:</strong></DIV>
- <span style="float:left">
- <%=ca.afficheMarquee(ccID,8)%></span>
- </DIV>
- <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)
- )%>
- <%if(tPro==1){%><a href="clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&tPro=1"><strong>精华区</strong></a><%}%>
- </DIV>
- <div class="line"></div>
- <DIV id=Head>
- <DIV id="tabBar"><ul id="tab_bar">
- <li id=menuNew><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurNew&iPage=<%=iPage%>"><SPAN>最新更新</span></a></li>
- <li id=menuTopic><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurTopic&iPage=<%=iPage%>"><SPAN>最新发表</span></a></li>
- <li id=menuHot><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurHot&iPage=<%=iPage%>"><SPAN>热门主题</span></a></li>
- <li id=menuBest><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurBest&iPage=<%=iPage%>&tPro=1"><SPAN>最新精品</span></a></li>
- <li id=menuAsk><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurAsk&iPage=<%=iPage%>"><SPAN>最新提问</span></a></li>
- <li id=menuAnswer><a href="./clubClass.jsp?ccID=<%=ccID%>&ccStyle=<%=ccStyle%>&menuStyle=CurAnswer&iPage=<%=iPage%>"><SPAN>最新结贴</span></a></li>
- </ul></DIV>
- </DIV><%
- //--------------头部文件结束-----------------
- int totalPage = 0; // 总页数
- //================BBS风格开始========================
- ctc.setTopicPro(tPro);
- ctc.setCcID(ccID);
- ctc.setMenuStyle(menuStyle);
- totalPage = ctc.topicCount();
- String tUrl = "clubPage.jsp?ccStyle="+ccStyle+"";
- List list = null;
- list = ctc.topicList(iPage,ccTopicNum);
- if(ccStyle==0){
- %>
- <DIV class="list_tab_0">
- <DIV class="list_r_0">
- <DIV class="list_0"><span class="text_bold">查阅</span></DIV>
- <DIV class="list_1"><span class="text_bold">回复</span></DIV>
- <DIV class="list_3"><span class="text_bold">作者</span></DIV>
- <DIV class="list_2"><span class="text_bold">最后更新</span></DIV>
- <DIV class="list_none"><span class="text_bold">最后回复</span></DIV>
- </DIV>
- <DIV class="list_center"><span class="text_bold">主题</span></DIV>
- </DIV>
- <c:forEach var="t" items="<%=list%>">
- <DIV class="list_tab_1">
- <DIV class="list_r_0">
- <DIV class="list_0">
- <span class="smallTxt"><club:topic type="topicViewCount" value="${t.topicViewCount}"/></span>
- </DIV>
- <DIV class="list_1">
- <span class="smallTxt"><club:topic type="topicReCount" value="${t.topicReCount}"/></span>
- </DIV>
- <DIV class="list_3">
- <club:users type="userName" idIs="${t.userID}" value="${t.userName}" bea="<%=false%>"/>
- </DIV>
- <DIV class="list_2">
- <span class="smallTxt"><club:topic type="topicLastReTime" value="${t.topicLastReTime}"/></span>
- </DIV>
- <DIV class="list_none">
- <club:users type="userName" value="${t.topicLastReUser}"/>
- </DIV>
- </DIV>
- <DIV class="list_left_2">
- <club:topic type="img_listNew" ccID="${t.ccID}" url="<%=tUrl%>" linkId="${t.topicID}" idIs="${t.topicOrder}" value="${t.topicPro}" property="${t.topicAddTime}" />
- </DIV>
- <DIV class="list_left_0">
- <club:topic type="img_listMood" value="${t.topicMood}"/>
- </DIV>
- <div class="list_img_left">
- <club:topic type="img_listClick" idIs="${t.topicID}" value="${t.ccID}"/>
- </div>
- <div class="list_img_right">
- <club:topic type="img_listHot" idIs="${t.topicViewCount}" value="${t.topicReCount}"/>
- <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
- </div>
- <DIV class="list_topic">
- <club:topic type="topic" ccID="${t.ccID}" url="<%=tUrl%>" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
- </DIV>
- </DIV>
- <div class="list_display_none" style="DISPLAY: none" id="load_<c:out value="${t.topicID}"/>">
- <div style='margin-left:25px;margin-right:10px;' id='replies_<c:out value="${t.topicID}"/>'> <strong>正在读取此主题相关回复,请稍候......</strong></div>
- </div>
- </c:forEach><%
- //================BBS风格结束========================
- }else{
- //================讨论区风格开始========================
- %><DIV class="list_tab_0">
- <DIV class="list_r_1">
- <DIV class="list_0"><span class="text_bold">查阅</span></DIV>
- <DIV class="list_1"><span class="text_bold">回复</span></DIV>
- <DIV class="list_2"><span class="text_bold">发表时间</span></DIV>
- <DIV class="list_none"><span class="text_bold">型别</span></DIV>
- </DIV>
- <DIV class="list_center"><span class="text_bold">主题</span></DIV>
- </DIV>
- <c:set var="cas" value="0"/>
- <c:forEach var="t" items="<%=list%>">
- <DIV class="list_tab_1">
- <DIV class="list_r_1">
- <DIV class="list_0">
- <span class="smallTxt"><c:out value="${t.topicViewCount}" escapeXml="false"/></span>
- </DIV>
- <DIV class="list_1">
- <span class="smallTxt"><c:out value="${t.topicReCount}" escapeXml="false"/></span>
- </DIV>
- <DIV class="list_2">
- <span class="smallTxt"><club:topic type="topicAddTime" value="${t.topicAddTime}"/></span>
- </DIV>
- <DIV class="list_3">
- <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
- </DIV>
- </DIV>
- <DIV class="list_topic">
- <club:topic type="img_listMood" value="${t.topicMood}"/>
- 【<club:users type="userName" idIs="${t.userID}" value="${t.userName}" bea="<%=false%>"/>】
- <club:topic type="topic" url="<%=tUrl%>" ccID="${t.ccID}" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
- <club:topic type="img_listHot" idIs="${t.topicViewCount}" value="${t.topicReCount}"/>
- <c:if test="${t.topicOrder>0}">
- <club:topic type="img_listNew" url="<%=tUrl%>" ccID="${t.ccID}" linkId="${t.topicID}" idIs="${t.topicOrder}" value="${t.topicPro}" property="${t.topicAddTime}" />
- </c:if>
- <span class="smallTxt"><i><club:topic type="topicLen" value="${t.topicLen}"
- idIs="${t.topicID}" linkId="0"
- url="clubPost.jsp?ccID=${t.ccID}"/></i></span>
- </DIV>
- </DIV>
-
- <!--=============回复内容开始==================-->
- <c:if test="${t.topicOrder==0}" >
- <c:set value="${t.topicID}" target="${ctc}" property="topicID" />
- <c:set value="<%=String.valueOf(ccStyle)%>" target="${ctc}" property="ccStyle"/>
- <c:forEach var="re" items="<%=ctc.topicReList(1,100)%>">
-
- <DIV class=list_tab_2>
- <DIV class="list_r_1">
- <DIV class="list_0">
- <span class="smallTxt"><c:out value="${re.topicViewCount}" escapeXml="false"/></span>
- </DIV>
- <DIV class="list_1">
- <span class="smallTxt"><c:out value="${re.topicReCount}" escapeXml="false"/></span>
- </DIV>
- <DIV class="list_2">
- <span class="smallTxt"><club:topic type="topicAddTime" value="${re.topicAddTime}"/></span>
- </DIV>
- <DIV class="list_3">
- <club:topic type="img_listType" idIs="${re.topicType}" value="${re.topicTypeNum}"/>
- </DIV>
- </DIV>
- <DIV class="topic">
- <club:topic type="tree_list" idIs="${re.topicLayer}" value="${re.topicTree}"/>
- <club:topic type="img_listMood" value="${re.topicMood}"/>
- 〖<club:topic type="userName" idIs="${re.userID}" value="${re.userName}" bea="<%=true%>"/>〗
- <club:topic type="topic" url="<%=tUrl%>" ccID="${re.ccID}" idIs="${t.topicID}" linkId="${re.topicReID}" value="${re.topic}" bea="<%=true%>"/>
- <club:topic type="img_listHot" idIs="${re.topicViewCount}" value="${re.topicReCount}"/>
- <i class="smallTxt"><club:topic type="topicLen" value="${re.topicLen}"
- idIs="${t.topicID}" linkId="${re.topicReID}"
- url="clubPost.jsp?ccID=${t.ccID}"/></i>
- </DIV>
- </DIV>
- </c:forEach>
- </c:if>
- <!---------------回复内容结束-------------------->
- </c:forEach>
- <%
- }
- list = null;
- out.println(ctc.getMessage());
- //===========讨论区风格结束==================
- %>
- <div class="line"></div>
- <DIV class="list_tab">
- <%=OutPrint.pageJump(totalPage,ccTopicNum, iPage, "clubClass.jsp?ccID="+ccID+"&ccStyle="+ccStyle+"&tPro="+tPro+"&menuStyle="+menuStyle+"&")%>
- </div>
- <div class="line"></div>
- <DIV class="list_tab_0">
- <DIV class="text_bold">
- 版面图例
- </DIV>
- </DIV>
- <DIV class="list_tab_1">
- <DIV class="list_img_left">
- <img src="GVimgs/topicPro/new.gif" align="absmiddle" />新帖
-
- <img src="GVimgs/topicPro/old.gif" align="absmiddle" />旧帖
-
- <img src="GVimgs/topicPro/up3.gif" align="absmiddle" />总置顶帖
-
- <img src="GVimgs/topicPro/up1.gif" align="absmiddle" />置顶帖
-
- <img src="GVimgs/topicPro/best.gif" align="absmiddle" />精品帖
-
- <img src="GVimgs/topicPro/hot.gif" align="absmiddle" />热门帖
-
- <img src="GVimgs/topicPro/lock.gif" align="absmiddle" />锁定帖
- </DIV>
- </DIV>
- <div class="line"></div>
- <%@ include file="GVinc/gvOnlineArea.jsp" %>
- <%=Gfoot()%>
- </body>
- </html>
- <!-- Powered by www.GamVan.com -->