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

📄 per_search_all_.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<% 
Dim SQL,Rs
Dim Perid,Param
Dim JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time
'//获取参数
Perid            = Session("Person")(2)
UserName         = Session("Person")(0)
'//获取参数
 Save1           = Replace_Text(Request("Save"))     
 Searcher_Name   = Replace_Text(Request("Name"))
 JobClass        = Replace_Text(Request("slt_subcategory"))
 Work            = Replace_Text(Request("slt_workplacecity"))
 PublishDate     = Replace_Text(Request("PublishDate"))
 Edus            = Replace_Text(Request("Edus"))
 Works           = Replace_Text(Request("Works"))
 Sex             = Replace_Text(Request("Sex"))
 MinAge          = Replace_Text(Request("Min_Age"))
 MaxAge          = Replace_Text(Request("Max_Age"))
 Locus_Area      = Replace_Text(Request("x_suozaidi"))
 Locus_City      = Replace_Text(Request("x_suozaidi1"))
 Work1           = Work
 Work            = Split(Work,"-")

'//判断是否保存到搜索器
If Save1 = "1" Then
 If Searcher_Name = "" Then 
   Response.Write "<script>alert('请输入搜索器名称...');window.close();</script>"
   Response.End()
 End if
 '//检测该用户的搜索器是否达到3个
 SQL = "Select Count(Ncid) From [pH_Person_Searcher] Where Perid='"&Perid&"'"
 Set Rs = Conn.Execute(SQL)
 If Rs(0) >= 3 Then
   Response.Write "<script>alert('对不起!您已经创建了3个搜索器...');window.close();</script>"
   Response.End()
 End if
 Rs.Close
 '保存数据
 SQL = "Insert Into [pH_Person_Searcher]  (Perid,UserName,Searcher_Name,WorkWillClass,Area,City,PublishDate,Edus,Works,Sex,MinAge,MaxAge,Locus_Area,Locus_City) Values ('"&Perid&"','"&Username&"','"&Searcher_Name&"','"&JobClass&"','"&Work(0)&"','"&Work(1)&"',"&PublishDate&","&Edus&","&Works&","&Sex&","&MinAge&","&MaxAge&",'"&Locus_Area&"','"&Locus_City&"')"
 Conn.Execute(SQL)
End if

'//组织查询语句
SQL = "Select JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time From [pH_Job_Base] Where JobFlag=1 And DateDiff(d,End_Date,GetDate())<=0"
'的工作岗位
If JobClass <> "0-0" Then
 SQL = SQL&" And JobClass Like '%"&JobClass&"%'"
End if
'的工作省份
If Work(0) <> "不限" Then
 SQL = SQL&" And Work_Area='"&Work(0)&"'"
End if
'的工作城市
If Work(1) <> "不限" Then
 SQL = SQL&" And Work_City='"&Work(1)&"'"
End if
'更新日期
If PublishDate <> 0 Then
 SQL = SQL&" And DateDiff(d,LastUpdate_Time,Getdate())<"&PublishDate
End if
'学历要求
If Edus <> 0 Then
 SQL = SQL&" And Edus>="&Cstr(Edus)
End if
'工作年限
If Works <> 0 Then
 SQL = SQL&" And Works>="&Cstr(Works)
End if
'性别
If Sex <> 2 Then
 SQL = SQL&" And Sex="&Cstr(Sex)
End if
'年龄
If MinAge <> 0 And MaxAge <> 0 Then
 SQL = SQL&" And Min_Age<="&Cstr(MinAge)&" And Max_Age>="&Cstr(MaxAge)
Elseif MinAge <> 0 And MaxAge = 0 Then
 SQL = SQL&" And Min_Age<="&Cstr(MinAge)
Elseif MinAge = 0 And MaxAge <> 0 Then
 SQL = SQL&" And Max_Age>="&Cstr(MaxAge)
End if

'现所在省份
If Locus_Area <> "不限" Then
 SQL = SQL&" And Area='"&Locus_Area&"'"
End if
'现所在城市
If Locus_City <> "不限" Then
 SQL = SQL&" And City='"&Locus_City&"'"
End if

SQL = SQL&" Order By LastUpdate_Time Desc"

Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.open SQL,Conn,1,1
Rs.Pagesize = 20
Psize       = Rs.PageSize
PCount      = Rs.PageCount
RCount      = Rs.RecordCount

PageNo = Cint(Request.QueryString("PageNo"))
If PageNo < 1 Then
 PageNo = 1
Elseif PageNo > PCount Then
 PageNo = PCount
End if
If Not Rs.Eof Then Rs.AbsolutePage = PageNo

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript" src="../js/Company_Basicinfo.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 职位搜索</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td><!--#include file="../Include/Header.asp" --></td>
  </tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td align="center">
<table width="760" border="0" cellspacing="0" cellpadding="4">
        <tr> 
          <td width="50%" height="25">共<Font color="#FF0000"><%= RCount %></Font>条 分<Font color="#FF0000"><%= PCount %></Font>页 | 当前第<Font color="#FF0000"><%= PageNo %></Font>页</td>
          <td width="50%" align="right">
		  <% 
		  If PageNo > 1 Then
		   Response.write "<a href=""?PageNo=1&slt_subcategory="&JobClass&"&slt_workplacecity="&Work1&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">首页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PageNo-1&"&slt_subcategory="&JobClass&"&slt_workplacecity="&Work1&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">上页</a>&nbsp;"    
		  Else
		   Response.write "首页&nbsp;"
		   Response.write "上页&nbsp;" 
		  End if
		   %>
           <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" style="width:40px;">
		    <% For i = 1 to PCount %>
                <option value="?PageNo=<%= i %>&slt_subcategory=<%= JobClass %>&slt_workplacecity=<%= Work1 %>&PublishDate=<%= PublishDate %>&Edus=<%= Edus %>&Works=<%= Works %>&Sex=<%= Sex %>&Min_Age=<%= MinAge %>&Max_Age=<%= MaxAge %>&x_suozaidi=<%= Locus_Area %>&x_suozaidi1=<%= Locus_City %>" <% If i = PageNo Then Response.write "Selected"%>><%=i%></option>
		    <% Next %>
           </select>
            <% 
		  If PageNo < PCount Then
		   Response.write "<a href=""?PageNo="&PageNo+1&"&slt_subcategory="&JobClass&"&slt_workplacecity="&Work1&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">下页</a>&nbsp;"
		   Response.write "<a href=""?PageNo="&PCount&"&slt_subcategory="&JobClass&"&slt_workplacecity="&Work1&"&PublishDate="&PublishDate&"&Edus="&Edus&"&Works="&Works&"&Sex="&Sex&"&Min_Age="&MinAge&"&Max_Age="&MaxAge&"&x_suozaidi="&Locus_Area&"&x_suozaidi1="&Locus_City&""">尾页</a>"   
		  Else
		   Response.write "下页&nbsp;"
		   Response.write "尾页" 
		  End if
		   %>

		  
		  </td>
        </tr>
      </table>
      <table width="760" border="0" cellpadding="2" cellspacing="1" bgcolor="eeeeee">
        <tr> 
          <td valign="top" bgcolor="#FFFFFF">
		 
            <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
              <tr align="center"> 
                <td width="22%" height="25" bgcolor="eeeeee">职位名称</td>
                <td width="30%" height="25" bgcolor="eeeeee">企业名称</td>
                <td width="13%" height="25" bgcolor="eeeeee">工作地区</td>
                <td width="10%" height="25" bgcolor="eeeeee">最低学历</td>
                <td width="12%" height="25" bgcolor="eeeeee">薪资待遇</td>
                <td height="25" bgcolor="eeeeee">发布日期</td>
              </tr>
<% 
'固顶职位开始

SQL1 = "Select Top 10 JobId,Comid,JobName,Work_Area,Work_City,Edus,Deal,LastUpdate_Time From [pH_Job_Base] Where Len(JobName)>0 And JobFlag=1 And DateDiff(d,End_Date,GetDate())<=0 And TopAll=1 And DateDiff(d,TopDate,GetDate())>=0  And DateDiff(d,TopEndDate,GetDate())<=0 Order By LastUpdate_Time Desc"

Set Rs1 = Server.CreateObject("ADODB.Recordset")
Rs1.open SQL1,Conn,1,1
RCount1 = Rs1.RecordCount

For i = 1 to (RCount1/2)+1
 If Rs1.Eof Then Exit For
 JobId              = Rs1("JobId")
 Comid              = Rs1("Comid")
 JobName            = Rs1("JobName")
 Work_Area          = Rs1("Work_Area")
 Work_City          = Rs1("Work_City")
 Edus               = Rs1("Edus")
 Deal               = Rs1("Deal")
 LastUpdate_Time    = FormatDateTime(Rs1("LastUpdate_Time"),2)
 '//企业名称
 Set Re = Conn.Execute("Select CompanyName From [pH_Company_Base] Where Comid='"&Comid&"'")
 If Not Re.Eof Then
  CompanyName = Re("CompanyName")
 End if

⌨️ 快捷键说明

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