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

📄 psearchp.asp

📁 家教育全站代码
💻 ASP
字号:
<!--#include file="info.asp"-->
<!--#include file="conn.asp"-->

<%
if Request.Cookies("user")="1" then  
response.write "<script language=JavaScript>" & chr(13) & "alert('学员用户请直接搜索【教员信息】,学员搜索功能是专为教员用户提供的!');"& "JavaScript:window.close();" & " </script>"
Response.End
end if
if Request.Cookies("newjob")<>"ok" then
response.write "<script language=JavaScript>" & chr(13) & "alert('教员用户你好,你的资料还没埴完,请完成资料后,再来搜索人才信息!');"& "JavaScript:window.close();" & " </script>"
Response.End
end if
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("job")<>"0" 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/bg12.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"></b> 辅导科目:<b><%
											if request("job")="0" then
											response.write "所有科目"
											else
											response.write request("job")
											end if
											%></b> 
											 </b>时间:<b><%
											if request("date")=""or request("date")="不限" then
											response.write "不限"
											else
											response.write request("date")&"天内"
											end if
											%> </b>找到记录:<b><%=rs.recordcount%></b></td>
										</tr>
									</table>
									</td>
								</tr>
								<tr>
									<td valign="top" align="center">
<%
if rs.recordcount=0 then
rs.close
response.write "暂时没有相关学员!" 
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">&lt; <a href="psearchp.asp?action=f&province=<%=request("province")%>&city=<%=request("city")%>&job=<%=request("job")%>&date=<%=request("date")%>">首页</a>&nbsp;&nbsp;   
							<a href="psearchp.asp?action=p&province=<%=request("province")%>&city=<%=request("city")%>&job=<%=request("job")%>&date=<%=request("date")%>">上一页</a>&nbsp;&nbsp;   
							<a href="psearchp.asp?action=n&province=<%=request("province")%>&city=<%=request("city")%>&job=<%=request("job")%>&date=<%=request("date")%>">下一页</a>&nbsp;&nbsp;   
							<a href="psearchp.asp?action=l&province=<%=request("province")%>&city=<%=request("city")%>&job=<%=request("job")%>&date=<%=request("date")%>">尾页</a> &gt;</td>   
							<form method="POST" action="psearchp.asp?province=<%=request("province")%>&city=<%=request("city")%>&job=<%=request("job")%>&date=<%=request("date")%>">
							<td width="159">							
		<p>跳转到    
		<input type="text" name="page1" size="4" style="border: 1px solid #000000"> 页&nbsp;    
	<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 + -