gvInclude.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:8k
- <%@ page language="java" contentType="text/html;charset=UTF-8" errorPage="err.jsp"%><%@
- page import="java.util.*,
- java.io.*,
- javax.servlet.http.Cookie
-
- ,com.gamvan.club.item.*,
- com.gamvan.tools.*,
- com.gamvan.util.*,
- com.gamvan.html.*"
- %><jsp:useBean id="cu" scope="request" class="com.gamvan.club.user.ClubUsers"/>
- <jsp:useBean id="cuc" scope="request" class="com.gamvan.club.user.ClubUserCollection"/>
- <jsp:useBean id="cug" scope="request" class="com.gamvan.club.user.ClubUserGrade"/>
- <jsp:useBean id="cuo" scope="request" class="com.gamvan.club.user.ClubUserop"/>
- <jsp:useBean id="eci" scope="request" class="com.gamvan.tools.EncodeIP"/><%
- //==================================================
- HashMap hm = null;
- ClubUserItem cui = new ClubUserItem();
- ClubUserGradeItem cugi = new ClubUserGradeItem();
- ClubUseropItem cuoi = new ClubUseropItem();
- boolean clubTopicIsPass = true;
- %><%!
- //定义社区基本信息变量
- private String clubCopyRight="";
- private int refreshPage=900;
- private String clubName="", clubUrl="", clubTitle="", clubMeta="", clubSmtp="", clubEmail="",
- clubSmtpID="", clubSmtpPass="", clubSmtpPort="";
- private String clubEmailSend="", clubYear="", clubUpfileExt="", clubUpfileDomain="";
- private int clubMenu=0, clubSmtpUsePass=0, clubUpfileOpen=0, clubUpfileUser=0,
- clubUpfileMax=0, clubUserPic=0, clubSmtpSSL=0, clubHotTopic=0, clubHotRe=0;
-
- public String prtCenter(String txt, String urls, int i){
- String temp;
- temp = "<SCRIPT type=text/javascript>function doTrans(filterCode){imgObj.filters[0].apply();oImg.style.filter = filterCode;imgObj.filters[0].play();}</SCRIPT>";
- temp = temp + "<br><br><center> ";
- switch(i){
- case 1:
- temp = temp + "<a href="+ urls +">";
- break;
- case 2:
- temp = temp + "<a href=javascript:history.back()>";
- break;
- }
- temp = temp + "<span style="font-size:14px; font-family:Verdana, Arial, 宋体; line-height: 19px;" >";
- temp = temp + txt + "</span>";
- if(i > 0){
- temp = temp + "</a>";
- }
- temp = temp + "<br>"+
- "<span id="imgObj" onmouseleave='doTrans("gray")' style="FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00); WIDTH: 100% ""+
- " onmouseenter='doTrans("")'>"+
- "<a href=http://www.gamvan.com target=_blank><img id="oImg" style="FILTER: gray" alt="技术支持" src="./GVimgs/gamvan.gif" border=0></a>"+
- "</span></center><br><br>";
- return temp;
- }
- //======================================
- public String Gfoot(){
- return com.gamvan.club.ClubHtmlConst.Gfoot(clubCopyRight,clubYear);
- }
- public String errs(int eID, String txt){
- StringBuffer sb = new StringBuffer();
- sb.append("<script language="javascript" src="./GVscript/errs.js"></script>");
- sb.append("<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab"><tr class="tab1"><td>");
- sb.append("<strong>您的位置</strong>>><a href="default.jsp" target="_parent">社区首页</a>>><a href="main.jsp">进站画面</a>>>信息提示");
- sb.append("</td></tr></table><script language="javascript">tabline(1,2,"#ffffff");</script>");
- sb.append("<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="tab"><tr><td class="bg2">");
- sb.append("<script language="JavaScript">errTxt("+ eID +");</script>"+ txt +"<hr size="1">");
- sb.append("请认真查看社区帮助文档,如果您的问题仍然无法解决,请联系讨论组勤杂工!");
- sb.append("</td></tr><tr><td align="center" class="bg2">");
- sb.append("<a href=javascript:history.go(-1)>返回上一步>>></a></td></tr></table>"+ Gfoot() +"</body></html>");
- return sb.toString();
- }
- public String textArea(String formName, int cols, int rows, String txt){
- StringBuffer sb = new StringBuffer();
- sb.append("<textarea name=""+ formName +"" id=""+ formName +"" cols=""+ cols +"" rows=""+ rows +"" onkeydown="keyForm();">");
- sb.append(txt);
- sb.append("</textarea><script language="javascript">gv_textarea(""+ formName +"","+ cols +","+ rows +");</script>");
- return sb.toString();
- }
- public String pageJump(int totalPage, int iPage, String url){
- int iPage1=0, iPage2=0;
- StringBuffer sb = new StringBuffer();
- sb.append("<table height="25" border="0" cellpadding="2" cellspacing="1" class="tab"><tr class="tab1">");
- sb.append("<td class="tab"> <strong>");
- sb.append(totalPage);
- sb.append("</strong> </td>");
- sb.append("<td align="center">");
- sb.append(" <a title="返回首页" href="" + url + "iPage=1"><<</a> ");
- sb.append("</td>");
- sb.append("<td align="center">");
- sb.append("<a title="返回上一页" href="" + url + "iPage=" + (iPage-1) + ""><</a> ");
- sb.append("</td>");
- if(iPage>=10){
- iPage2=iPage+8;
- iPage1=iPage-1;
- if(iPage2>totalPage){
- iPage2=totalPage;
- iPage1=totalPage-9;
- }
- }else{
- if(totalPage>10){
- iPage2=10;
- }else{
- iPage2=totalPage;
- }
- iPage1=1;
- }
- for(int i=iPage1;i<=iPage2;i++){
- if(i==iPage){
- sb.append("<td align="center" class="tab3">");
- sb.append(" <a href="" + url + "iPage=" + i + "">");
- sb.append("<span style=color:#bb0000><strong>"+ i +"</strong></span></a> ");
- sb.append("</td>");
- }else{
- sb.append("<td align="center"> ");
- sb.append(" <a href="" + url + "iPage=" + i + "">");
- sb.append("<strong>" + i + "</strong></a> ");
- sb.append("</td>");
- }
- }
- sb.append("<td align="center">");
- sb.append(" <a title="跳到下一页" href="" + url + "iPage=" + (iPage+1) + "">></a>");
- sb.append("</td>");
- sb.append("<td align="center">");
- sb.append(" <a title="跳到尾页" href="" + url + "iPage=" + totalPage + "">>></a>");
- sb.append("</td>");
- sb.append("</table>");
- return sb.toString();
- }
- //=======================实例变量结束================================
- %><%
- //格式化当前时间
- String now = FormatDateTime.formatDateTime("yyyy-MM-dd HH:mm:ss");
- //=================开始定义版面变量=================================
- String temp="";
- int ccID1 = 0;
- int ccID2 = 0;
- int ccIDD1 = 0;
- int ccIDD2 = 0;
- String ccName1=""; //分类或版面名称
- String ccName2=""; //分类或版面名称
-
- int ccID = 0;
- int ccIDD = 0; //分类或版面的上级ID
- String ccName=""; //分类或版面名称
- int ccOrder = 0; //分类或版面的排序ID
- byte ccType = 0; //类型,判断是分类还是版面 0为分类 1为版面
- byte ccoStyle = 0; //论坛的风格 0 为默认风格BBS, 1 为讨论区风格
- byte ccStyle = 0;
- byte ccPro = 0; //分类或版面的属性
- boolean ccHidden = false; //是否隐藏 默认0不隐藏
- byte ccUpfilePass = 0; //判断是否打开了上传
- int ccUpfileMax = 0; //上传附件的最大限制,单位字节
- byte ccUgid = 10; //浏览版面所需的等级
- byte ccTopicNum = 30; //主题显示条数
- byte ccReplyNum = 100; //回复显示数
- int ccMostOnline = 0; //最多在线人数
- String ccSummary = ""; //分类或版面简介
- String ccUserPass = ""; //分类或版面的认证用户
- int ccTopic = 0; //主题统计
- int ccReply = 0; //回复统计
- boolean ccList = false;
- int ccTodayTopic = 0; //今日主题统计
- int ccTodayReply = 0; //今日回复统计
- int ccYesterTopic = 0; //昨日主题统计
- int ccYesterReply = 0; //昨日回复统计
- %><%@
- include file="../GVfilesInc/gvData.jsp" %><%@
- taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@
- taglib uri="http://club.GamVan.com/" prefix="club" %>