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

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

开发平台:

Java

  1. <%@ page language="java" contentType="text/html;charset=UTF-8" session="true" errorPage="err.jsp" %>
  2. <%@ include file="./GVinc/gvImport.jsp" %>
  3. <jsp:useBean id="ccu" scope="application" class="com.gamvan.club.ClubCounter"/>
  4. <jsp:useBean id="cci" scope="request" class="com.gamvan.club.classed.ClubClassInfo"/>
  5. <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
  6. <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
  7. <jsp:useBean id="ctc" scope="page" class="com.gamvan.club.topic.ClubTopicCollection"/> 
  8. <%
  9. boolean isRe = ParamUtils.getBooleanParameter(request,"isRe");
  10. String keys= ParamUtils.getStringParameter(request, "keys");
  11. keys=com.gamvan.net.URL.urlDecoder(keys,"UTF-8");
  12. /*
  13.  * 整合至apache 发现如果不进行一次转码无法正确查询中文
  14.  * 可能和apache默认编码有关,但是我在httpd.conf关闭了apache的默认编码依然不行
  15.  * 所以只好手工作一次ISO8859-1到UTF8的编码了
  16.  * 如果是直接用TOMCAT运行此程序则需要注销下面这句 keys=com.gamvan.tools.Gb.toUTF8(keys);
  17.  */
  18. keys=com.gamvan.tools.Gb.toUTF8(keys);
  19. int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
  20. if(iPage<1){iPage = 1;}
  21. %>
  22. <html xmlns="http://www.w3.org/1999/xhtml">
  23. <head>
  24. <title><%=clubTitle%>__社区搜索</title>
  25. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  26. <link href="./GVimgs/favicon.ico" rel="Bookmark"> 
  27. <link rel="icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  28. <link rel="shortcut icon" href="./GVimgs/favicon.ico" type="image/x-icon" />
  29. <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
  30. </head>
  31. <body><DIV id="waitDiv" style="LEFT: 40%; VISIBILITY: hidden; POSITION: absolute; TOP: 40%; TEXT-ALIGN: center">
  32. <TABLE cellPadding=6 border=0>
  33. <TBODY><TR><TD align=middle>
  34. <IMG  src="GVimgs/loading.gif" alt="请稍候..." width="30" height="30">
  35. <BR>
  36. <FONT color="red">数据载入中,请稍候...</FONT></TD></TR></TBODY></TABLE></DIV>
  37. <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0  height=0></IFRAME>
  38. <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
  39. <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
  40. <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
  41. <script language="javascript" type="text/javascript">
  42. prtie2('<%=clubTitle%>__社区搜索');
  43. </script>
  44. <%
  45. if(!isPass(gvUserGradeTxt,40)){
  46. out.print(errs(1,"您的级别("+ gvUserGradeName +")无权社区搜索功能!"));
  47. out.close();
  48. if(true) return;
  49. }
  50. %>
  51. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  52. <tr class="tab1"><td>
  53. <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("搜索文章")%>
  54. </td></tr></table>
  55. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  56. <tr class="tab2">
  57. <td>
  58. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" >
  59. <form name="form1" id="Gforms" method="get" action="" onSubmit="javascript:postMsg();">
  60. <tr><td width="120"><strong>请输入关键字</strong></td>
  61. <td><input name="keys" type="text" id="keys" value="<%=keys%>" size="30" maxlength="80" />
  62. </td></tr>
  63. <tr><td><strong>请选择所在区域</strong></td>
  64. <td>
  65. <%@ include file="./GVfilesInc/gvClassSelect.jsp" %>
  66. </td></tr>
  67. <tr><td colspan="2" height="30">
  68. <input type="radio" name="isRe" value="0" />仅包括主题 &nbsp;&nbsp;
  69. <input type="radio" name="isRe" value="1" />仅包括回复 
  70. </td></tr>
  71. <tr><td>&nbsp;</td>
  72. <td height="35">
  73. <input name="gvSubmit" type="submit" class="btn" value="站内搜索" />
  74. <input type="hidden" name="gvBack" value=""/>
  75. </td></tr>
  76. </form>
  77. </table>
  78. <!-- SiteSearch Google --><!-- SiteSearch Google -->
  79. </td>
  80. <td valign="top"><table border="0">
  81. <form method="get" action="http://www.google.com/custom" target="google_window">
  82. <tr><td nowrap="nowrap" align="left" height="32"> <a href="http://www.google.com/"> <img src="./GVimgs/search/gamvanlogo.gif" border="0" alt="Google" align="middle" /></a> </td>
  83. <td nowrap="nowrap">
  84. <input type="hidden" name="domains" value="www.GamVan.com;club.GamVan.com" />
  85. <input type="text" name="q" size="20" maxlength="255" value="" />
  86. <input name="sa" type="submit" class="btn" value="全文检索" />
  87. </td>
  88. </tr>
  89. <tr align="center">
  90. <td colspan="2">
  91. <table width="100%" height="30" cellpadding="2" cellspacing="1">
  92. <tr><td colspan="2" align="center">
  93. <input type="radio" name="sitesearch" value="" checked="checked" />Web
  94. &nbsp;&nbsp;
  95. <input type="radio" name="sitesearch" value="www.GamVan.com" />GamVan
  96. &nbsp;&nbsp;
  97. <input name="sitesearch" type="radio" value="club.GamVan.com" checked="checked" />Club</td>
  98. </tr></table>
  99. <input type="hidden" name="client" value="pub-5535238706151070" />
  100. <input type="hidden" name="forid" value="1" />
  101. <input type="hidden" name="ie" value="UTF-8" />
  102. <input type="hidden" name="oe" value="UTF-8" />
  103. <input type="hidden" name="cof" value="GALT:#006600;GL:1;DIV:#336699;VLC:006699;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:CC0000;LC:CC0000;T:0033CC;GFNT:006633;GIMP:006633;LH:20;LW:90;L:http://club.gamvan.com/GVimgs/search/gamvanlogo.gif;S:http://www.gamvan.com;LP:1;FORID:1;" />
  104. <input type="hidden" name="hl" value="zh-CN" />
  105. </td></tr></form>
  106. </table>
  107. </td></tr></table>
  108. <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
  109. <tr align="center" class="tab1">
  110. <td width="128"><strong>来自</strong></td>
  111. <td height="22"><strong>搜索结果</strong></td>
  112. <td width="100"><strong>类别</strong></td>
  113. <td width="30"><strong>型别</strong></td>
  114. </tr><%
  115. ctc.setCcID(TypeChange.stringToInt(request.getParameter("ccID")));
  116. if(!keys.equals("")){
  117. ctc.setTopicKeys(keys);
  118. ctc.setIsRe(isRe);
  119. int totalPage = ctc.topicSearchCount();
  120. String tUrl = "clubPage.jsp?ccStyle=1";
  121. ClubClassItem ccit = null;
  122. List list = ctc.topicSearch(iPage,30);
  123. %>
  124. <c:forEach var="t" items="<%=list%>">
  125. <tr class="tab3">
  126. <td width="118" height="25" align="center">
  127. <c:set value="${t.ccID}"  target="${cci}" property="ccID" />
  128. <%
  129. ccit = (ClubClassItem)cci.getClubClassInfo();
  130. %>
  131. <club:classinfo type="className"  value="<%=ccit.getCcName()%>" idIs="<%=ccit.getCcID()%>"/>
  132. </td>
  133. <td width="#">
  134. <club:topic type="img_listMood"  value="${t.topicMood}"/>
  135. <club:topic type="topic" ccID="${t.ccID}" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
  136. </td>
  137. <td width="100" align="center">
  138. <c:if test="${t.topicLayer>0}" >回复</c:if>
  139. <c:if test="${t.topicLayer==0}" ><strong>主题</strong></c:if>
  140. </td>
  141. <td width="30" align="center">
  142. <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
  143. </td>
  144. </tr>
  145. </c:forEach>
  146. </table>
  147. <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="0">
  148. <tr><td>
  149. <%=OutPrint.pageJump(totalPage,ccTopicNum, iPage, "search.jsp?keys="+com.gamvan.net.URL.urlEncoder(keys, "UTF-8")+"&ccID="+ccID+"&isRe="+isRe+"&")%>
  150. </td></tr></table>
  151. <%}%>
  152. <%@ include file="GVinc/gvOnlineArea.jsp" %>
  153. <%=Gfoot()%>
  154. </body>
  155. </html>