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

📄 search.jsp

📁 网龙仿阿里巴巴程序源码(java版) v2.5.rar
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="com.base.config.ProjectConfig"%>
<%@ page import="com.base.db.DBConnectionManager"%>
<%@ page import="com.base.db.DBConnectorBase"%>
<%@ page import="com.bean.CommparaInfo"%>
<%@ page import="com.bean.JobInfo,
                 com.bean.ResumeInfo,
                 tools.util.PageTools
                 "%>
<%@ page import="java.util.Vector" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>环球制造</title>
<link href="/style/list.css"  rel="stylesheet" type="text/css">
<link href="/style/commonality.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/css/daohang.css">
<link rel="stylesheet" type="text/css" href="/css/layout.css">
    <%
  String hot_key="";
  String job_type="",Job_type="";
  String publish_date="1";
  String sele_type="",Sele_type=""; //0:职位  1:人才
  String sql="";
   Vector vect=new Vector();
   CommparaInfo param=new CommparaInfo();
   DBConnectorBase conn = DBConnectionManager.getInstance().getConnection(ProjectConfig.DBTITLE);
  if(request.getParameter("hot_key")!=null){
      hot_key=request.getParameter("hot_key");
  }
 if(request.getParameter("job_type")!=null){
    job_type=request.getParameter("job_type");
    Job_type=job_type;
  }
  if(request.getParameter("publish_date")!=null){
    publish_date=request.getParameter("publish_date");
     if(publish_date=="0"||publish_date.equals("0")){
         publish_date="3";
      }
     if(publish_date!=null && publish_date.equals("1")){
        publish_date="7";
     }
     if(publish_date!=null && publish_date.equals("2")){
        publish_date="30";
     }
     if(publish_date!=null && publish_date.equals("3")){
      publish_date="90";
     }
     if(publish_date!=null && publish_date.equals("4")){
      publish_date="180";
     }
     if(publish_date!=null && publish_date.equals("5")){
      publish_date="365";
     }
  }
  if(request.getParameter("sele_type")!=null){
    sele_type=request.getParameter("sele_type");
    Sele_type=sele_type;
  }
 if(sele_type=="0"||sele_type.equals("0")){
   JobInfo job=new JobInfo();
    vect=job.getJobInfoSearchVector(conn,hot_key,job_type,publish_date);
 }
 else{
  ResumeInfo resume=new ResumeInfo();
  CommparaInfo paraObj=param.getOneCommparaInfo(conn,"job_type",job_type);
  if(paraObj!=null){
      if(paraObj.para_code2!=null){
      job_type=paraObj.para_code2;
      }
  }else{
   job_type="";
  }
  String day="0";
  vect=resume.getSearchResumeInfoVector(conn,hot_key,job_type,publish_date);
 }
           int curPage = 1;
           int pageSize = 5;
           int pageRoll = 10;
           int pagecount = (int) Math.ceil((double) vect.size() / pageSize);
           try{
               curPage = Integer.parseInt(request.getParameter("curPage"));
               if (curPage>=pagecount) curPage = pagecount;
               if (curPage<=1) curPage = 1;
           }catch(Exception err){
               curPage = 1;
           }
           PageTools pagetools = new PageTools(vect,curPage,pageSize,pageRoll);
           Vector nvobject = (Vector)pagetools.getData();
 %>
</head>
<body>
<div class="top">
  <a  onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://b2b.xsaas.com');"  style="CURSOR: hand">将本站设置为首页</a> 
  | 
  <a href="javascript:window.external.AddFavorite('http://b2b.xsaas.com', '安徽农业信息网-安徽省最专业的农业网上贸易市场,农产品展示平台')">加入收藏</a> 
  | 
  <a href="/Newcregister.htm">免费用户注册</a> 
  |
  <a href="/crm">登录后台</a></div>
<div class="logo"><a href="http://www.madeinglobal.com" target="_top"><img src="/images/logo.gif" width="225" height="66" border="0"></a></div>
<div>
  <script src="/inc/top_hr.js"></script>
</div>
 <div class="middleBody">
	<div class="listLeft">
		<div class="bg2"></div>
	  <div class="bg3">
	        <div  style="margin:5px auto;"><img src="/images/ogjsearch_banner1.gif" width="175"></div>
			<div  style="margin:5px auto;"><img src="/images/list_7.gif" width="175"></div>
			<div style="margin:5px auto;"><img src="/images/17568-2.gif" ></div>
			<div style="margin:5px auto;"><img src="/images/lxd175681.gif"></div>
			<div style="margin:5px auto;"><img src="/images/button117568.gif"></div>
		    </div>
	</div>
<div class="listRight">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><div class="title2"><img src="/images/list_3.gif" align="absmiddle"><strong> 搜索信息</strong></div>
        <%
          if(nvobject!=null && nvobject.size()>0){
        %>
        <table width="95%" border="0" cellspacing="0" cellpadding="0" style="border-bottom:#cccccc 1px dotted">
           <%
             if(sele_type=="0"||sele_type.equals("0")){    //职位
                 %>
                 <tr>
                        <td>职位</td>
                        <td>工作地</td>
                        <td>发布日期</td>
                  </tr>
                 <%
                 for(int i=0;i<nvobject.size();i++){
                     JobInfo jobInfo=(JobInfo)nvobject.get(i);
                     String date=jobInfo.publish_date;
                     if(date.length()>10){
                        date=date.substring(0,10);
                     }
                     String job_url="/hr/c/d/hr_c_"+jobInfo.job_unit+".html";
           %>
                  <tr>
                      <td colspan="3"><hr></td>
                  </tr>
                  <tr>
                        <td><a href="<%=job_url%>" target="blank"><strong><%=jobInfo.title%></strong></a></td>
                        <td><%=jobInfo.job_addr%></td>
                        <td><%=date%></td>
                  </tr>
                 <%}
             }else{ %>
                   <tr>
                     <td align="centere">姓名</td>
                     <td>学历</td>
                     <td>专业</td>
                     <td>毕业学校</td>
                  </tr>
               <%
                 for(int i=0;i<nvobject.size();i++){
                     ResumeInfo resume=(ResumeInfo)nvobject.get(i);
                     CommparaInfo paramDrg=param.getOneCommparaInfo(conn,"degree",resume.degree);
                     String degree=paramDrg.para_code2;
                     String sersume_url="/hr/r/d/hr_r_"+resume.resume_id+".html";
                 %>
                  <tr>
                      <td colspan="4"><hr></td>
                  </tr>
                  <tr>
                     <td align="centere"><a href="<%=sersume_url%>" target="blank"><strong><%=resume.name%></strong></a></td>
                     <td><%=degree%></td>
                     <td><%=resume.profession%></td>
                     <td><%=resume.grad_from%></td>
                </tr>
            <%}
                }%>
        </table>
        <div class="line"><img src="/images/list_4.gif"></div>
        <%}%>
    </td>
  </tr>
  <tr><td height="10"></td></tr>
  <tr>
    <td valign="top">
        <%
           if(vect==null || vect.size()<1){
        %>
        <div id="empty">很抱歉!没有你要搜索的信息!</div>
        <%}%>
   </td>
  </tr>
      <tr>
    <td valign="top">
        <%
           if(vect!=null && vect.size()>0)
           out.print(pagetools.getToolBar("search.jsp?sele_type="+Sele_type+"&job_type="+Job_type+"&hot_key="+hot_key+"&publish_date="+publish_date,"","#efefef","#cccccc"));
        %>

   </td>
  </tr>
</table>
</div>
<script src="/inc/bottom.js"></script>
</body>
</html>

⌨️ 快捷键说明

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