?? psearchp_vip.asp
字號:
<!--#include file="info.asp"-->
<!--#include file="conn.asp"-->
<%
sql="select * from in_user where name<>'' and lock=false"
if request("province")<>"0" then sql=sql+" and province='"&request("province")&"'"
if request("city")<>"0" then sql=sql+" and city='"&request("city")&"'"
if request("cs")<>"" then sql=sql+" and xian='"&request("cs")&"'"
if request("fw")<>"" then sql=sql+" and zye='"&request("fw")&"'"
if request("sex")<>"" then sql=sql+" and sex='"&request("sex")&"'"
if request("job")<>"不限" and request("job")<>"" then sql=sql+" and gzdd='"&request("job")&"'"
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>
<style type="text/css">
<!--
.STYLE1 {font-weight: bold}
-->
</style></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/bg20.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")="不限" then
response.write "所有科目"
else
response.write request("job")
end if
%>
</b>
服務方式:<b>
<%
if request("fw")="" then
response.write "不限"
else
response.write request("fw")
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="78" 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="98" 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="88" 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="215" 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="70" 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="102" 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="111" 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 15
%>
<tr>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="78" height="30" align="center" background="images/bg9.gif"><a target =_blank href="student.asp?id=<%=rs("id")%>"><%=rs("name")%></a><%if rs("vip")=true then response.write "<font color='#FF0000'>[薦]</font>"%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="98" height="30" align="center" background="images/bg9.gif">
<%=rs("zye")%>
</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="88" height="30" align="center" background="images/bg9.gif">『<font color=#ff0000><%=rs("gzdd")%></font>』</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="215" height="30" align="center" background="images/bg9.gif"><%
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="70" height="30" align="center" background="images/bg9.gif">[<%=rs("sex")%>]</td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="102" height="30" align="center" background="images/bg9.gif"><%=rs("zy")%></td>
<td style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; " width="111" 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/new.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; " height="42" align="center" colspan="7"><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="psearchp_vip.asp?action=f&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&fw=<%=request("fw")%>&sex=<%=request("sex")%>&job=<%=request("job")%>&date=<%=request("date")%>">首頁</a>
<a href="psearchp_vip.asp?action=p&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&fw=<%=request("fw")%>&sex=<%=request("sex")%>&job=<%=request("job")%>&date=<%=request("date")%>">上一頁</a>
<a href="psearchp_vip.asp?action=n&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&fw=<%=request("fw")%>&sex=<%=request("sex")%>&job=<%=request("job")%>&date=<%=request("date")%>">下一頁</a>
<a href="psearchp_vip.asp?action=l&province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&fw=<%=request("fw")%>&sex=<%=request("sex")%>&job=<%=request("job")%>&date=<%=request("date")%>">尾頁</a> ></td>
<form method="POST" action="psearchp_vip.asp?province=<%=request("province")%>&city=<%=request("city")%>&cs=<%=request("cs")%>&fw=<%=request("fw")%>&sex=<%=request("sex")%>&job=<%=request("job")%>&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 rs=nothing
set conn=nothing
%>
<!--#include file="base.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -