📄 qjquery.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
dim user_name,user_number,sql
id=request("id")
if id=1 then
user_name=trim(request("user_name1"))
if user_name="" then
response.write "输入不能为空"
response.end
end if
sql="user_name like'%"&user_name&"%'"
end if
if id=2 then
user_number=trim(request("user_number1"))
if user_number="" then
response.write "输入不能为空"
response.end
end if
sql="user_number ='"&user_number&"'"
end if
set rs=server.createobject("adodb.recordset")
sql="select * from qingjia where "&sql
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查询结果</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--#include file="top.asp"-->
<p> </p>
<div align="center">
<table border="1" width="700" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
<tr>
<td width="50" align="center">学号</td>
<td width="50" align="center">姓名</td>
<td width="100" align="center">请假时间</td>
<td width="300" align="center">请假原因</td>
<td width="100" align="center">类型</td>
<td width="50" align="center">天数</td>
<td width="50" align="center">老师</td>
<td width="50" align="center">修改</td>
<td width="50" align="center">删除</td>
</tr>
<%if not rs.eof then%>
<%do while not rs.eof
%>
<tr>
<td width="50" align="center"><%=rs("user_number")%></td>
<td width="50" align="center"><%=rs("user_name")%></td>
<td width="100" align="center"><%=rs("user_time")%></td>
<%
yuanying=len(rs("yuanying"))
if yuanying>30 then
yuanying=left(rs("yuanying"),30)
%>
<td width="300" align="center"><%=yuanying%> <a href="query_qingjia.asp?id=<%=rs("id")%>">[详情]</a></td>
<%else%>
<td width="300" align="center"><%=rs("yuanying")%></td>
<%end if%>
<%if rs("user_type")="1" then%>
<td width="100" align="center">学费</td>
<%elseif rs("user_type")="2" then%>
<td width="100" align="center">生活费</td>
<%else%>
<td width="100" align="center">学费、生活费</td>
<%end if%>
<td width="50" align="center"><%=rs("daynumber")%></td>
<td width="50" align="center"><%=rs("teacher")%></td>
<td width="50" align="center"><a href="mod_qingjia.asp?id=<%=rs("id")%>">修改</a></td>
<td width="50" align="center"><a href=javascript:if(confirm('确实要删除吗?'))location='del_qingjia.asp?id=<%=rs("id")%>'>删除</a>
</td>
</tr>
<%
rs.movenext
loop
else%>
<tr>
<td colspan="9"><marquee>暂无奖惩情况添加</marquee></td>
</tr>
</table>
<%
end if
rs.close
set rs=nothing
%>
</div>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -