⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search_result_1.jsp

📁 jsp CMS全站 无可奈何花落去 士大夫
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ taglib uri="/cms4j" prefix="cms4j" %>

<%@ page import = "cn.com.dekn.cms.util.*" %>

<%

//网站群节点ID
String NODE_ID = ParamUtil.getStrParam(request,"NODE_ID","root"); 

//网站群节点参数
String CLUSTER_URL_PARAM = "";
if(null != request.getParameter("cluster_node_id")){
	CLUSTER_URL_PARAM = "cluster_node_id=" + cn.com.dekn.cms.util.StrUtil.encodeHTML(request.getParameter("cluster_node_id").toString());
}



/***********************************
* 显示特性参数初始化
***********************************/
//搜索结果显示页
String SEARCH_RESULT_PAGE = ParamUtil.getStrParam(request,"SEARCH_RESULT_PAGE","SearchResult.jsp"); 


//查询提示标题
String TEXT_TITLE = ParamUtil.getStrParam(request,"TEXT_TITLE","搜索结果"); 

//搜索关键字
String SEARCH_WORD = ParamUtil.getStrParam(request,"SEARCH_WORD",""); 

//分页大小
int PAGE_SIZE = ParamUtil.getIntParam(request,"PAGE_SIZE",10);

//搜索的字段 title:标题 content:内容 summary:摘要
String SEARCH_FIELD = ParamUtil.getStrParam(request,"SEARCH_FIELD","title|content|summary"); 

//检索的栏目
String ARTICLE_CLASS_ID = ParamUtil.getStrParam(request,"ARTICLE_CLASS_ID",""); 

//作者
String AUTHOR = ParamUtil.getStrParam(request,"AUTHOR",""); 

//关键字
String KEY_WORD = ParamUtil.getStrParam(request,"KEY_WORD","");

//添加人
String ADD_USER = ParamUtil.getStrParam(request,"ADD_USER",""); 

/***********************************
* CSS样式 参数初始化
***********************************/
//CSS样式
String CSS = ParamUtil.getStrParam(request,"CSS",""); 

%>
	
	
<style type="text/css">
.STYLE2 {
	font-size: 14px;
	color: #0000FF;
	font-family: "宋体";
	line-height: 160%;
	font-weight: bold;
}
.STYLE7 {color: #FF0000}
.STYLE8 {font-size: 14px; font-weight: bold; }
.STYLE9 {
	font-size: 14px;
	font-family: "宋体";
	line-height: 200%;
	color: #333333;
}
.STYLE11 {font-size: 12px; color: #0066CC; }
</style>

<script src="../../js/page_init.js"></script>
<script>
//页面初始化
function pageInit(){
	selectInit("ARTICLE_CLASS_ID","${param.ARTICLE_CLASS_ID}");
	selectInit("ARTICLE_CLASS_ID2","${param.ARTICLE_CLASS_ID}");
}


function beginSearch(type){

	if(type == 1){
		location.href='?s=' + document.cms4jForm.s.value + '&class=' + document.cms4jForm.ARTICLE_CLASS_ID.value;
	}else if(type == 2){
		location.href='?s=' + document.cms4jForm.s2.value+ '&class=' + document.cms4jForm.ARTICLE_CLASS_ID2.value;
	}

}
</script>

<cms4j:site_search search_word="<%=SEARCH_WORD%>" search_type="article" node_id="<%=NODE_ID%>" page_size="<%=PAGE_SIZE%>" search_field="<%=SEARCH_FIELD%>" class_id="<%=ARTICLE_CLASS_ID%>" author="<%=AUTHOR%>" keyword="<%=KEY_WORD%>" adduser="<%=ADD_USER%>">
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"><form action="#" method="post" name="cms4jForm" id="cms4jForm">
          <tr>
            <td><table width="100%"  border="0" cellpadding="4" cellspacing="0" bgcolor="#efefef">
                <tr>
                  <td width="30%" height="30"><p class="STYLE8"><%=TEXT_TITLE%></p></td>
                  <td width="70%" height="30" align="right" class="STYLE8">共搜索到 <span class="STYLE7">${search_result_count}</span> 个结果  用时 <span class="STYLE7">${search_time}</span> 秒 </td>
                </tr>
                <tr height="4">
                  <td height="4" colspan="2"></td>
                </tr>
              </table>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="table_border_bg">
                  <tr class="table_border_cell_bg">
                    <td width="15%" height="32" class="STYLE8">关键字:</td>
                    <td width="28%" class="STYLE8"><input name="s" type="text" id="s" onKeyPress="if(event.keyCode == 13){beginSearch(1)}" value="<%=request.getParameter("s")%>"></td>
                    <td width="31%" align="center" class="STYLE8">
					
					
					<select name="ARTICLE_CLASS_ID" id="ARTICLE_CLASS_ID" onchange="document.all.ARTICLE_CLASS_ID.value=this.value">
                      <option selected="selected" value="all">所有栏目</option>
                      <cms4j:class show="all" content_type="article">
                        <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
                        <cms4j:class show="all">
                          <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;<%=class_info.getCLASS_NAME()%></option>
                          <cms4j:class show="all">
                            <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                            <cms4j:class show="all">
                              <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                              <cms4j:class show="all">
                                <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                              </cms4j:class>
                            </cms4j:class>
                          </cms4j:class>
                        </cms4j:class>
                      </cms4j:class>
                    </select>
					
					
					</td>
                    <td width="14%" class="STYLE8">&nbsp;</td>
                    <td width="12%" align="right" class="STYLE8"><span class="table_oper_tr STYLE9">
                      <input name="Submit2" type="button" class="form_button" value="重新搜索" onClick="beginSearch(1)">
                    </span></td>
                  </tr>
                </table>
              <hr>
			  
                <cms4j:site_search_result>
                  <table width="100%" border="0" align="center" cellpadding="6" cellspacing="0">
                    <tr>
                      <td align="left" ><a href="../../symbol/fullsearch/SearchResultJump.jsp?id=<%=site_search_result_vo.getId()%>" target="_blank"><span class="font_big STYLE2"><%=site_search_result_vo.getTitle()%></span></a> <span class="STYLE11"><%=site_search_result_vo.getIndexTime()%></span></span><br>
                          <span class="page_class_content"><span class="STYLE9"><%=site_search_result_vo.getContent()%></span></td>
                    </tr>
                    <tr>
                      <td height="10" ></td>
                    </tr>
                  </table>
                </cms4j:site_search_result>
				
                <hr>
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="table_border_bg">
                  <tr >
                    <td height="22" align="center" class="STYLE2">
					
					<!--BEGIN: 翻页(条件控制)-->
                        <jsp:include page="../../symbol/page/page_2.jsp">
							<jsp:param name="COLOR_CURR_PAGE" value="#000000"></jsp:param>
							<jsp:param name="COLOR_OTHER_PAGE" value="#000000"></jsp:param>
							<jsp:param name="COLOR_NEXT_PREV_PAGE" value="#000000"></jsp:param>
						</jsp:include>  
                    <!--END: 翻页-->
						
                    </td>
                  </tr>
                  <tr class="table_border_cell_bg">
                    <td height="6" class="list_left_title"></td>
                  </tr>
                </table>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="table_border_bg">
                  <tr class="table_border_cell_bg">
                    <td width="15%" height="22" class="STYLE8">关键字:</td>
                    <td width="28%" class="STYLE8"><input name="s2" type="text" id="s2" value="<%=request.getParameter("s")%>" onKeyPress="if(event.keyCode == 13){beginSearch(2)}"></td>
                    <td width="31%" align="center" class="STYLE8">
					
					
					<select name="ARTICLE_CLASS_ID2" id="select" onchange="document.all.ARTICLE_CLASS_ID2.value=this.value">
                      <option selected="selected" value="all">所有栏目</option>
                      <cms4j:class show="all" content_type="article">
                        <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
                        <cms4j:class show="all">
                          <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;<%=class_info.getCLASS_NAME()%></option>
                          <cms4j:class show="all">
                            <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                            <cms4j:class show="all">
                              <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                              <cms4j:class show="all">
                                <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                              </cms4j:class>
                            </cms4j:class>
                          </cms4j:class>
                        </cms4j:class>
                      </cms4j:class>
                    </select>
					
					
					</td>
                    <td width="14%" align="center" class="STYLE8">&nbsp;</td>
                    <td width="12%" align="right"><span class="table_oper_tr">
                      <input name="Submit22" type="button" class="form_button" value="重新搜索" onClick="beginSearch(2)">
                    </span></td>
                  </tr>
              </table></td>
          </tr>
        </form></table>
</cms4j:site_search>
<script>
pageInit();
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -