search.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:7k
- <%@ page language="java" contentType="text/html;charset=UTF-8" session="true" errorPage="err.jsp" %>
- <%@ include file="./GVinc/gvImport.jsp" %>
- <jsp:useBean id="ccu" scope="application" class="com.gamvan.club.ClubCounter"/>
- <jsp:useBean id="cci" scope="request" class="com.gamvan.club.classed.ClubClassInfo"/>
- <jsp:useBean id="ccl" scope="page" class="com.gamvan.club.classed.ClubClassList"/>
- <jsp:useBean id="ccc" scope="page" class="com.gamvan.club.classed.ClubClassCollection"/>
- <jsp:useBean id="ctc" scope="page" class="com.gamvan.club.topic.ClubTopicCollection"/>
- <%
- boolean isRe = ParamUtils.getBooleanParameter(request,"isRe");
- String keys= ParamUtils.getStringParameter(request, "keys");
- keys=com.gamvan.net.URL.urlDecoder(keys,"UTF-8");
- /*
- * 整合至apache 发现如果不进行一次转码无法正确查询中文
- * 可能和apache默认编码有关,但是我在httpd.conf关闭了apache的默认编码依然不行
- * 所以只好手工作一次ISO8859-1到UTF8的编码了
- * 如果是直接用TOMCAT运行此程序则需要注销下面这句 keys=com.gamvan.tools.Gb.toUTF8(keys);
- */
- keys=com.gamvan.tools.Gb.toUTF8(keys);
- int iPage = TypeChange.stringToInt(request.getParameter("iPage"));
- if(iPage<1){iPage = 1;}
- %>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><%=clubTitle%>__社区搜索</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" />
- <link href="./GVinc/main.css" rel="stylesheet" type="text/css" />
- </head>
- <body><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>
- <IFRAME id=hiddenframe style="DISPLAY: none" src="about:blank" width=0 height=0></IFRAME>
- <script language="javascript" type="text/javascript" src="GVscript/GVtopCode.js"></script>
- <script language="javascript" type="text/javascript" src="GVscriptInc/topBar.js"></script>
- <SCRIPT language="javascript">gv_showWait('waitDiv', 1); </SCRIPT>
- <script language="javascript" type="text/javascript">
- prtie2('<%=clubTitle%>__社区搜索');
- </script>
- <%
- if(!isPass(gvUserGradeTxt,40)){
- out.print(errs(1,"您的级别("+ gvUserGradeName +")无权社区搜索功能!"));
- out.close();
- if(true) return;
- }
- %>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab1"><td>
- <%=com.gamvan.club.ClubHtmlConst.gamvan_menu("搜索文章")%>
- </td></tr></table>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr class="tab2">
- <td>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" >
- <form name="form1" id="Gforms" method="get" action="" onSubmit="javascript:postMsg();">
- <tr><td width="120"><strong>请输入关键字</strong></td>
- <td><input name="keys" type="text" id="keys" value="<%=keys%>" size="30" maxlength="80" />
- </td></tr>
- <tr><td><strong>请选择所在区域</strong></td>
- <td>
- <%@ include file="./GVfilesInc/gvClassSelect.jsp" %>
- </td></tr>
- <tr><td colspan="2" height="30">
- <input type="radio" name="isRe" value="0" />仅包括主题
- <input type="radio" name="isRe" value="1" />仅包括回复
- </td></tr>
- <tr><td> </td>
- <td height="35">
- <input name="gvSubmit" type="submit" class="btn" value="站内搜索" />
- <input type="hidden" name="gvBack" value=""/>
- </td></tr>
- </form>
- </table>
- <!-- SiteSearch Google --><!-- SiteSearch Google -->
- </td>
- <td valign="top"><table border="0">
- <form method="get" action="http://www.google.com/custom" target="google_window">
- <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>
- <td nowrap="nowrap">
- <input type="hidden" name="domains" value="www.GamVan.com;club.GamVan.com" />
- <input type="text" name="q" size="20" maxlength="255" value="" />
- <input name="sa" type="submit" class="btn" value="全文检索" />
- </td>
- </tr>
- <tr align="center">
- <td colspan="2">
- <table width="100%" height="30" cellpadding="2" cellspacing="1">
- <tr><td colspan="2" align="center">
- <input type="radio" name="sitesearch" value="" checked="checked" />Web
-
- <input type="radio" name="sitesearch" value="www.GamVan.com" />GamVan
-
- <input name="sitesearch" type="radio" value="club.GamVan.com" checked="checked" />Club</td>
- </tr></table>
- <input type="hidden" name="client" value="pub-5535238706151070" />
- <input type="hidden" name="forid" value="1" />
- <input type="hidden" name="ie" value="UTF-8" />
- <input type="hidden" name="oe" value="UTF-8" />
- <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;" />
- <input type="hidden" name="hl" value="zh-CN" />
- </td></tr></form>
- </table>
- </td></tr></table>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <tr align="center" class="tab1">
- <td width="128"><strong>来自</strong></td>
- <td height="22"><strong>搜索结果</strong></td>
- <td width="100"><strong>类别</strong></td>
- <td width="30"><strong>型别</strong></td>
- </tr><%
- ctc.setCcID(TypeChange.stringToInt(request.getParameter("ccID")));
- if(!keys.equals("")){
- ctc.setTopicKeys(keys);
- ctc.setIsRe(isRe);
- int totalPage = ctc.topicSearchCount();
- String tUrl = "clubPage.jsp?ccStyle=1";
- ClubClassItem ccit = null;
- List list = ctc.topicSearch(iPage,30);
- %>
- <c:forEach var="t" items="<%=list%>">
- <tr class="tab3">
- <td width="118" height="25" align="center">
- <c:set value="${t.ccID}" target="${cci}" property="ccID" />
- <%
- ccit = (ClubClassItem)cci.getClubClassInfo();
- %>
- <club:classinfo type="className" value="<%=ccit.getCcName()%>" idIs="<%=ccit.getCcID()%>"/>
- </td>
- <td width="#">
- <club:topic type="img_listMood" value="${t.topicMood}"/>
- <club:topic type="topic" ccID="${t.ccID}" idIs="${t.topicID}" value="${t.topic}" bea="<%=true%>"/>
- </td>
- <td width="100" align="center">
- <c:if test="${t.topicLayer>0}" >回复</c:if>
- <c:if test="${t.topicLayer==0}" ><strong>主题</strong></c:if>
- </td>
- <td width="30" align="center">
- <club:topic type="img_listType" idIs="${t.topicType}" value="${t.topicTypeNum}"/>
- </td>
- </tr>
- </c:forEach>
- </table>
- <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr><td>
- <%=OutPrint.pageJump(totalPage,ccTopicNum, iPage, "search.jsp?keys="+com.gamvan.net.URL.urlEncoder(keys, "UTF-8")+"&ccID="+ccID+"&isRe="+isRe+"&")%>
- </td></tr></table>
- <%}%>
- <%@ include file="GVinc/gvOnlineArea.jsp" %>
- <%=Gfoot()%>
- </body>
- </html>