main.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:9k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="./GVinc/gvImport.jsp" %>
  3. <jsp:useBean id="ccu" scope="page" class="com.gamvan.club.ClubCounter"/>
  4. <jsp:useBean id="cci" scope="application" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="ccc" scope="session" class="com.gamvan.club.classed.ClubClassCollection"/>
  6. <jsp:useBean id="cca" scope="request" class="com.gamvan.club.ClubAffiche"/>
  7. <jsp:useBean id="ctc" scope="request" class="com.gamvan.club.topic.ClubTopicCollection"/><%@ 
  8. include file="GVinc/gvOnlineArea.jsp" %><%
  9. int clubBoy=0, clubGirl=0, clubMostOnline=0, clubTopic=0, clubReply=0, clubTodayTopic=0, clubTodayReply=0;
  10. int clubYesterTopic=0, clubYesterReply=0;
  11. int clubTodayPV=0, clubYesterPV=0;
  12. String clubNewUser="";
  13. ccu.counterUpdate(1, 0, 0, 0, 0, 0, TypeChange.stringToInt(String.valueOf(application.getAttribute("onlines"))), "");
  14. hm = ccu.counterHashMap();
  15. clubBoy = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubBoy"));
  16. clubGirl = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubGirl"));
  17. clubMostOnline = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubMostOnline"));
  18. clubTopic = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubTopic"));
  19. clubReply = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubReply"));
  20. clubTodayTopic = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubTodayTopic"));
  21. clubTodayReply = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubTodayReply"));
  22. clubYesterTopic = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubYesterTopic"));
  23. clubYesterReply = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubYesterReply"));
  24. clubTodayPV = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubTodayPV"));
  25. clubYesterPV = TypeChange.stringToInt(ccu.getCounterInfo(hm,"clubYesterPV"));
  26. clubNewUser = ccu.getCounterInfo(hm,"clubNewUser");
  27. hm = null;
  28. /* test
  29. com.gamvan.club.ClubInfo ci = new com.gamvan.club.ClubInfo();
  30. ci.clubInfoHashMap();
  31. out.print(ci.getMessage());
  32. ci.clubInfoHashMap();
  33. out.print(ci.getMessage());
  34. */
  35. %>
  36. <html xmlns="http://www.w3.org/1999/xhtml">
  37. <head>
  38. <title><%=clubTitle%></title>
  39. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  40. <META content=<%=clubMeta%> name=keywords>
  41. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  42. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  43. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  44. <STYLE type=text/css media=screen>
  45. @import url(./GVinc/main.css);
  46. @import url(./GVinc/newStyle.css);
  47. </STYLE>
  48. </head>
  49. <body>
  50. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  51. <DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP:30%; TEXT-ALIGN: center">
  52. <TABLE cellPadding=6 border=0>
  53. <TBODY><TR><TD align=middle>
  54. <IMG  src="GVimgs/loading.gif" alt="数据载入中……" width="30" height="30">
  55. <BR>
  56. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  57. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  58. <script language="javascript" type="text/javascript" src="GVscript/GVshowMenu.js"></script>
  59. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  60. <SCRIPT language="javascript">gv_showWait('waitDiv', 1);</SCRIPT>
  61. <script language="javascript" type="text/javascript">
  62. prtie2('<%=clubTitle%>__进站画面');
  63. </script>
  64. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1">
  65. <tr><td><img src="GVimgs/mainLogo.gif" />
  66. </td><td align="right">
  67. <script language="javascript" type="text/javascript" src="./GVscript/GVad.js"></script>
  68. <script language="javascript" type="text/javascript" src="./GVscriptInc/GVad_1.js"></script>
  69. </td></tr></table>
  70. <table width="99%" height="86" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  71. <tr class="tab3">
  72. <td width="50%" valign="top">
  73. <% 
  74. if(gvUserID>0){
  75. %>
  76. <table  width="99%" border="0" cellpadding="2" cellspacing="2">
  77. <tr class="tab3">
  78. <td valign="top"><strong>
  79. <%
  80. out.print(gvUserName);
  81. %>
  82. </strong><span class="style1"> 欢迎莅临 <%=clubName%> </span>
  83. </td>
  84. </tr>
  85. <tr class="tab3">
  86. <td width="50%" valign="top">
  87. <strong>信誉:</strong><%=gvUserCredit%>
  88. &nbsp;&nbsp;&nbsp;&nbsp;
  89. <strong>积分:</strong><%=gvUserMark%>
  90. </td>
  91. </tr>
  92. <tr class="tab3">
  93. <td valign="top">
  94. <strong>金币:</strong><%=gvUserMoney%>
  95. </td>
  96. </tr>
  97. </table>
  98. <%
  99. }else{
  100. %>
  101. <script type="text/javascript" src="GVscript/GVuserLogin.js"></script>
  102. <table  width="99%" border="0" cellpadding="2" cellspacing="2">
  103. <form name="Gforms" id="Gforms" onSubmit="return CheckForm();"  method="post" action="userLogin.jsp" target="_self">
  104. <tr>
  105. <td height="28" colspan="2">
  106. 欢迎诸君莅临:<%=clubName%> <br />
  107. <a href="userAgree.jsp">如果你还没注册,请先注册,享受更多服务>></a></td>
  108. </tr>
  109. <tr>
  110. <td width="50" height="20"><strong>登陆</strong></td>
  111. <td>
  112. <input name="gvUserName" type="text" id="gvUserName"  maxlength="20" style="width:120px;height:20px"/>
  113. <input name="gvUserSave" type="hidden" id="gvUserSave" value="0" />
  114. <input name="gvUserStyle" type="hidden" value="0" />
  115. <input name="backUrl" type="hidden" value="main.jsp"></td></tr>
  116. <tr>
  117. <td height="20"><strong>密码</strong></td>
  118. <td>
  119. <input name="gvUserPass" type="password" id="gvUserPass" value="" maxlength="20"  style="width:120px;height:20px"/>
  120. <input name="gvSubmit" type="submit" class="btn" id="gvSubmit2" value="登陆" /></td>
  121. </tr>
  122. </form></table>
  123. <%}%></td>
  124. <td valign="top">
  125. <table width="100%" height="100" border="0" cellpadding="6" cellspacing="1">
  126.   <tr>
  127.     <td align="left" valign="top"> 社区共有注册用户<strong>
  128.       <%out.print(clubBoy+clubGirl);%>
  129.       </strong> &nbsp;&nbsp; 最新登记『<span style="color:#bb0000"><%=clubNewUser%></span>』<br />
  130.       共有帖子&nbsp;<strong>
  131.       <%out.print(clubTopic+clubReply);%>
  132.       </strong> 篇 &nbsp;&nbsp; 其中主题&nbsp;<strong>
  133.       <%out.print(clubTopic);%>
  134.       </strong> 篇<br />
  135.       今日发帖&nbsp;<strong>
  136.       <%out.print(clubTodayTopic+clubTodayReply);%>
  137.       </strong> 篇 &nbsp;&nbsp; 昨日发帖&nbsp;<strong>
  138.       <%out.print(clubYesterTopic+clubYesterReply);%>
  139.       </strong> 篇 <br />
  140.       当前在线&nbsp;<strong>
  141.       <%out.print(application.getAttribute("onlines"));%>
  142.       </strong> 人&nbsp;&nbsp; 历史最高在线&nbsp;<strong>
  143.       <%out.print(clubMostOnline);%>
  144.       人</strong> </td>
  145.   </tr>
  146. </table></td>
  147. </tr>
  148. </table>
  149. <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1" class="tab">
  150. <tr class="tr">
  151. <td width="50%" height="25"><strong><img src="GVimgs/affiche.gif" align="absmiddle" />社区公告</strong></td>
  152. <td height="22"><strong><img src="GVimgs/topicPro/hot.gif" align="absmiddle" />今晚关注</strong></td>
  153. </tr>
  154. <tr valign="top" class="tab3">
  155. <td>
  156. <%cca.setCcID(-1);%>
  157. <c:forEach var="a" items="<%=cca.afficheList(1,8)%>">
  158. <img src="GVimgs/GamVanMood/0.gif" align="absmiddle"><club:affiche type="caTopic" value="${a.caTopic}" idIs="${a.caID}" linkId="${a.ccID}" />
  159. <br>
  160. </c:forEach> 
  161. </td>
  162. <td height="22">
  163. <script language="javascript" src="clubListUTF.jsp?tLen=0&tList=8&tPro=2&mood=1&tOrder=0"></script>
  164. </td></tr> 
  165. </table>
  166. <DIV class="list_tab_0">
  167. <DIV class="list_left_1"><span class="text_bold">版面</span></DIV>
  168. <DIV class="list_r_2">
  169. <DIV class="vertical"></DIV>
  170. <DIV class="list_3"><span class="text_bold">作者</span></DIV>
  171. <DIV class="list_none"><span class="text_bold">型别</span></DIV>
  172. </DIV>
  173. <DIV class="list_center"><span class="text_bold">主题</span></DIV>
  174. </DIV>
  175. <c:set value="-1"  target="${ctc}" property="topicReID" />
  176. <%
  177. String tUrl = "clubPage.jsp?ccStyle="+ccStyle+"";
  178. ctc.setCcID(-1);
  179. ctc.setTopicReID(-1);
  180. List list = ctc.topicList(1,30);
  181. ClubClassItem ccit = null;
  182. %>
  183. <c:forEach var="t" items="<%=list%>">
  184. <DIV class="list_tab_1">
  185. <DIV class="list_left_1">
  186. <c:set value="${t.ccID}"  target="${cci}" property="ccID" />
  187. <%ccit = cci.getClubClassInfo();%>
  188. <club:classinfo type="className"  value="<%=ccit.getCcName()%>" idIs="<%=ccit.getCcID()%>"/>
  189. </DIV>
  190. <DIV class="list_r_2">
  191. <DIV class="vertical"></DIV>
  192. <DIV class="list_3">
  193. <club:users type="userName"  idIs="${t.userID}" value="${t.userName}"/>
  194. </DIV>
  195. <DIV class="list_none">
  196. <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
  197. </DIV>
  198. </DIV>
  199. <DIV class="list_topic">
  200. <club:topic type="img_listMood"  value="${t.topicMood}"/>
  201. <club:topic type="topic" url="<%=tUrl%>" ccID="${t.ccID}" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
  202. </DIV>
  203. </DIV>
  204. </c:forEach>
  205. <script language="javascript" type="text/javascript" src="GVscriptInc/links.js"></script>
  206. <%=Gfoot()%>
  207. </body>
  208. </html>
  209. <!-- Powered by www.GamVan.com -->