📄 psearchj_vip.asp
字号:
<!--#include file="info.asp"-->
<!--#include file="conn.asp"-->
<%
sql="select * from en_user where lock=false and name<>''"
if request("province")<>"0" then sql=sql+" and province='"&request("province")&"'"
if request("city")<>"0" then sql=sql+" and city='"&request("city")&"'"
if request("job")<>"不限" then sql=sql+" and cxz='"&request("job")&"'"
if Trim(request("cs"))<>"" then sql=sql+" and xian like '%"&request("cs")&"%'"
if request("sex")<>"" then sql=sql+"and yuangong = '"&request("sex")&"'"
if request("date")<>"不限" and request("date")<>"" then sql=sql+" and datediff('d',rdate,Now())<"&request("date")
sql=sql+" order by vip asc,id desc"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css" type="text/css">
<title>教员超级搜索 - <%=webname%></title>
</head>
<body>
<!--#include file="top.asp"-->
<div align="center">
<table width="811" height="106" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="table1">
<tr>
<td style="border-left: 1px solid #ffc6bf; border-right: 1px solid #ffc6bf" width="760" valign="top">
<div align="center">
<table border="0" width="98%" cellspacing="0" cellpadding="0" id="table2" height="164">
<tr>
<td style="border: 1px solid #C0C0C0" valign="top">
<div align="center">
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table3" height="147">
<tr>
<td height="40" width="740" background="images/bg21.gif">
<table border="0" width="740" cellspacing="0" cellpadding="0" id="table4" height="31">
<tr>
<td width="127"> </td>
<td width="587">
<p align="center">具体城市:
<%
if request("cs")="" then
response.write "不限"
else
response.write request("cs")
end if
%>
科目类别:<b><%
if request("job")="0" then
response.write "所有类别"
else
response.write request("job")
end if
%></b>
性别:<b><%
if request("sex")="" then
response.write "不限"
else
response.write request("sex")
end if
%>
</b>
时间:<b><%
if request("date")="" then
response.write "不限"
else
response.write request("date")
end if
%> </b>找到记录:<b><font color=#ff0000><%=rs.recordcount%></font></b></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="center">
<%
if rs.recordcount=0 then
rs.close
response.write "<br>暂时没有相关教员信息!可能有以下原因:<br>1)教员库中没有相应的教员;<br>2)你指定的条件间相互矛盾;<br><br><font color=#ff0000>建议你放宽查询条件再试!!</font>"
else
rs.pagesize=20
if request("action")="n" then
session("page")=session("page")+1
else
if request("action")="p" then
session("page")=session("page")-1
else
if request("action")="f" then
session("page")=1
else
if request("action")="l" then
session("page")=rs.pagecount
else
if isnumeric(request("page1"))=true then
session("page")=clng(request("page1"))
else
session("page")=1
end if
end if
end if
end if
end if
if session("page")>rs.pagecount then session("page")=rs.pagecount
if session("page")<1 then session("page")=1
rs.absolutepage=session("page")
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table5" height="92">
<tr>
<td width="119" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; "><strong>教员姓名</strong></td>
<td width="100" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
<b>擅长科目</b></td>
<td width="201" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; "><b>服务区域</b></td>
<td width="72" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
<b>教员身份</b></td>
<td width="64" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
<b>性别 </b></td>
<td width="109" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
<b>每小时价格[元]</b></td>
<td width="99" height="30" align="center" background="imagen/web_01_05.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
<b>注册日期</b></td>
</tr>
<%
for ii=1 to 20
%>
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="119" height="30" align="center" background="images/bg9.gif"><a href="job2.asp?<%=rs("id")%>" target="_blank">.</a><a target =_blank href="teacher.asp?id=<%=rs("id")%>">
<%=rs("name")%><%if rs("vip")=true then response.write "<font color='#FF0000'>[荐]</font>"%></a></td>
<td width="100" height="30" align="center" background="images/bg9.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; ">
『<font color=#ff0000><%=rs("cxz")%></font>』</td>
<td width="201" height="30" align="center" background="images/bg9.gif" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; "><%
set rss=server.createobject("adodb.recordset")
sqls="select * from province where shengNo="&int(rs("province"))
rss.open sqls,conn,1,1
if rss.eof then
end if
if rs("province") =0 then
response.write "不详"
end if
shengid=rss("id")
sheng=rss("shengname")
rss.close
set rss=nothing
%>
<%
set rss=server.createobject("adodb.recordset")
sqls="select * from city where Shengid="&shengid&" and shino="&int(rs("city"))
rss.open sqls,conn,1,1
if rss.eof then
end if
shi=rss("shiname")
rss.close
set rss=nothing
%>
<%=sheng%><%=shi%><%=rs("xian")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="72" height="30" align="center" background="images/bg9.gif">
<p align="center"><%=rs("trade")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="64" height="30" align="center" background="images/bg9.gif">
[<%=rs("yuangong")%>]</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="109" height="30" align="center" background="images/bg9.gif">
<%=rs("fund")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="99" height="30" align="center" background="images/bg9.gif">
<%
if (date()-rs("rdate"))<=10 then
a=instr(rs("rdate"),chr(32))-1
response.write "<font color =#FF0000>"
response.write Mid(rs("rdate"),6,a-4)
response.write "<img alt='最新加入招聘职位' src=images/hot.gif>"
end if
if (date()-rs("rdate"))>10 then
a=instr(rs("rdate"),chr(32))-1
response.write Mid(rs("rdate"),1,a)
end if
%> </td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="734" height="42" align="center" colspan="6"><table border="0" width="504" cellspacing="0" cellpadding="0" height="31">
<tr>
<td width="120">
<p align="center">当前页码:<font color="#FF0000"><%=session("page")%></font>/<%=rs.pagecount%></td>
<td width="225">
<p align="center">< <a href="psearchj_vip.asp?action=f&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&job=<%=request("job")%>&sex=<%=request("sex")%>&date=<%=request("date")%>">首页</a>
<a href="psearchj_vip.asp?action=p&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&job=<%=request("job")%>&sex=<%=request("sex")%>&date=<%=request("date")%>">上一页</a>
<a href="psearchj_vip.asp?action=n&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&job=<%=request("job")%>&sex=<%=request("sex")%>&date=<%=request("date")%>">下一页</a>
<a href="psearchj_vip.asp?action=l&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&job=<%=request("job")%>&sex=<%=request("sex")%>&date=<%=request("date")%>">尾页</a> ></td>
<form method="POST" action="psearchj_vip.asp?province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&job=<%=request("job")%>&sex=<%=request("sex")%>&date=<%=request("date")%>">
<td width="159">
<p>跳转到
<input type="text" name="page1" size="4" style="border: 1px solid #000000"> 页
<input type="submit" value="提交" name="B1"></p>
</td>
</form>
</tr>
</table>
</td>
</tr>
</table>
<%
rs.close
end if
%>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<%
set rs2=nothing
set rs=nothing
set conn=nothing
%>
<!--#include file="base.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -