📄 xysearch.asp
字号:
<% Response.Buffer=True %>
<!--#include file="inc/dbconn.asp"-->
<% school=trim(request("school"))
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" href="inc/index.css" type="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>学生社会实践信息管理系统—>人才中心—>站内搜索</title>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function check()
{
if (isNaN(go2to.page.value))
alert("请正确填写转到页数!");
else if (go2to.page.value=="")
{
alert("请输入转到页数!");
}
else
go2to.submit();
}
//-->
</SCRIPT>
<body topmargin="0" leftmargin="0">
<table border="0" cellpadding="0" cellspacing="0" height="358">
<tr>
<td width="293" height="284" valign="top"><% set rs=server.createobject("adodb.recordset")
if not isempty(request("page")) then
pagecount=cint(request("page"))
else
pagecount=1
end if
sql="select * from person where school='"&school&"' order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write"<SCRIPT language=JavaScript>alert('这个学院还没登记学生!');"
response.write"javascript:window.close();</SCRIPT>"
end if
rs.pagesize=20
if pagecount>rs.pagecount or pagecount<=0 then
pagecount=1
end if
rs.AbsolutePage=pagecount %>
<div align="left">
<table border="1" cellpadding="0" cellspacing="0" width="865" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td height="3" valign="top" colspan="6" bgcolor="#000000"></td>
</tr>
<tr>
<td width="67" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="left"> 姓名</p></td>
<td width="45" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">性 别</p></td>
<td width="56" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">学 历 </td>
<td width="178" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="left"> 应聘职位</td>
<td width="75" bgcolor="#EBEEF3" valign="bottom">所在学院</td>
<td width="75" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">登录日期</p></td>
</tr>
<% do while not rs.eof %>
<tr>
<td width="64" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="left"> <a href="person.asp?uid=<%=rs("uname")%>" target="_blank"><%=rs("iname")%></a></p></td>
<td width="48" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs("sex")%>]</p></td>
<td width="55" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center">[<%=rs("edu")%>]</td>
<td width="179" height="18" bgcolor="#EBEEF3" valign="bottom"> <%=rs("job")%></td>
<td width="72" bgcolor="#EBEEF3" valign="bottom"><%=rs("school")%></td>
<td width="72" height="18" bgcolor="#EBEEF3" valign="bottom"><p align="center"><%=rs("idate")%></p></td>
</tr>
<% i=i+1
rs.movenext
if i>=rs.PageSize then exit do
loop
rs.close
set rs=nothing
conn.close
set conn=nothing %>
<tr>
<td height="3" valign="top" colspan="6" bgcolor="#000000"></td>
</tr>
<tr>
<td width="418" height="7" valign="bottom" colspan="6"> </tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -