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

📄 search.jsp

📁 jsp人事管理系统jsp+servlet
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ taglib uri="/oscache" prefix="cache" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><cms4j:site_config node_id="root"><%=siteconfig_info.getSITE_TITLE()%></cms4j:site_config></title>
<style type="text/css">
</style>
<link href="images/css.css" rel="stylesheet" type="text/css">

<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>

<script>
//页面初始化
function pageInit(){
	selectInit("DB_ID","${param.db_id}");
	selectInit("DB_ID2","${param.db_id}");
}


function beginSearch(type){

	if(type == 1){
		location.href='?search_word=' + document.cms4jForm.KEY_WORD.value;
	}else if(type == 2){
		location.href='?search_word=' + document.cms4jForm.KEY_WORD2.value;
	}

}
</script>	

<style type="text/css">
<!--
.STYLE11 {font-size: 14px; color: #0066CC; }
.STYLE2 {	font-size: 14px;
	color: #0000FF;
}
.STYLE7 {color: #FF0000}
.STYLE8 {font-size: 14px; font-weight: bold; }
.STYLE9 {font-size: 14pt}
-->
</style>
</head>
<body  onLoad="pageInit()">

<jsp:include page="top.jsp"/>
<table width="774" border="0" align="center" cellpadding="0" cellspacing="0" class="page_frame">
  <tr>
    <td height="60" align="center">&nbsp;</td>
  </tr>
  <tr>
    <td height="200" align="center">
	
	
	
	
	<cms4j:site_search search_word="${param.search_word}" node_id="root" page_size="3" search_field="title|content|summary" search_type="article" class_id="" author="" keyword="" adduser="">
	<form action="#" method="post" name="cms4jForm" id="cms4jForm">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%"  border="0" cellpadding="4" cellspacing="0" bgcolor="#efefef">
            <tr>
              <td width="30%" height="30"><p class="STYLE8">全文检索</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="KEY_WORD" type="text" id="KEY_WORD" onKeyPress="if(event.keyCode == 13){beginSearch(1)}" value="${param.search_word}"></td>
                <td width="22%" align="right" class="STYLE8">&nbsp;</td>
                <td width="23%" class="STYLE8"><input name="DB_ID" type="hidden" id="DB_ID" value="sys_article" /></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" ><span class="font_big STYLE2"><strong><a href="ShowArticle.jsp?id=<%=site_search_result_vo.getId()%>" target="_blank"><font color="#0000FF"><%=site_search_result_vo.getTitle()%></font></a> </strong></span><span class="STYLE11"><%=site_search_result_vo.getIndexTime()%></span></span><br>
                      <span class="page_class_content"><%=site_search_result_vo.getContent()%></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="page_nav"><!--BEGIN: 翻页(条件控制)-->
                    <jsp:include page="../../symbol/page/page_2.jsp">
                    <jsp:param name="COLOR_CURR_PAGE" value="#ffffff"></jsp:param>
                    <jsp:param name="COLOR_OTHER_PAGE" value="#ffffff"></jsp:param>
                    <jsp:param name="COLOR_NEXT_PREV_PAGE" value="#ffffff"></jsp:param>
                    <jsp:param name="NODE_ID" value="root"></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="KEY_WORD2" type="text" id="KEY_WORD2" value="${param.search_word}" onKeyPress="if(event.keyCode == 13){beginSearch(2)}"></td>
                <td width="22%" align="right" class="STYLE8">&nbsp;</td>
                <td width="23%" class="STYLE8"><input name="DB_ID2" type="hidden" id="DB_ID2" value="sys_article" /></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>
    </table>
	
	</form>
	</cms4j:site_search>
	
	
	
	</td>
  </tr>
  <tr>
    <td height="60" align="center">&nbsp;</td>
  </tr>
</table>
<jsp:include page="bottom.jsp"/>
</body>
</html>

⌨️ 快捷键说明

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