📄 xuefeiquery.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" then
response.write "您无此权限"
response.end
end if
dim id
id=trim(request("id"))
user_type=request("user_type")
set rs=server.createobject("adodb.recordset")
sql="select * from st_info where id="& id
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">
<script language=javascript>
function qurey(tar){
document.frm.action=tar;
document.frm.submit();
}
</script>
</head>
<body>
<!--#include file="top.asp"-->
<form method="POST" action="add_feiyong1.asp" name="frm">
<div align="center">
<table width="800">
<tr align="left" valign="top">
<td width="370">
<table border="1" width="370" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td colspan="2" align="center">添加学生费用情况</td>
</tr>
<tr>
<td width="81">学号:</td>
<td width="233"><input type="text" name="user_number" value="<%=rs("user_number")%>"></td>
</tr>
<tr>
<td>姓名:</td>
<td><input type="text" name="user_name" value="<%=rs("user_name")%>"></td>
</tr>
<%set rst=server.createobject("adodb.recordset")
sqlt="select * from st_info where id="&id
rst.open sqlt,conn,1,3
if user_type=1 then
%>
<tr>
<td>上次交费截止时间:</td>
<td><%if isnull(rs("out_time")) then%>未交费 <% else %> <%=rs("out_time")%> <%end if%></td>
</tr>
<%elseif user_type=2 then
%>
<tr>
<td>上次交费截止时间:</td>
<td><%if isnull(rs("shenghuo")) then%>未交费 <% else %> <%=rs("shenghuo")%> <%end if%></td>
</tr>
<%
else
end if
rst.close
set rst=nothing
dim i,num,y,d,m
y=cint(year(date))
d=cint(day(date))
m=cint(month(date))
%>
<%if user_type=1 then%>
<tr>
<td>费用类型:</td>
<td><input name="user_type" type="text" value="学费"> </td>
</tr>
<tr>
<td>交费时间:</td>
<td>
<select name="year">
<%
for i=0 to 50
num=2000+i
if num=y then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
年
<select name="month">
<%
for i=1 to 12
num=i
if num=m then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
月
<select name="day">
<%
for i=1 to 31
num=i
if num=d then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
日 </td>
</tr>
<tr>
<td>费用金额:</td>
<td><input type="text" name="money"></td>
</tr>
<tr>
<td>延长(至):</td>
<td colspan="2">
<table width="100%" border="1" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="24%"><input type="radio" name="yanchang" value="yanmonth"></td>
<td width="76%"><input type="text" name="datamonth">
月</td>
</tr>
<tr>
<td width="24%"><input type="radio" name="yanchang" value="yanday"></td>
<td width="76%"><input name="dataday" type="text">
天</td>
</tr>
<tr>
<td width="24%"><input type="radio" name="yanchang" value="yanzhi" checked></td>
<td width="76%"><input name="datazhi1" type="text" size="4" value="<%=year(date)%>">
年
<input type="text" name="datazhi2" size="4" value="<%=month(date)%>">
月
<input name="datazhi3" type="text" size="4" value="<%=day(date)%>">号
</td>
</tr>
</table></td>
</tr>
<%elseif user_type=2 then%>
<tr>
<td>费用类型:</td>
<td><input name="user_type" type="text" value="生活费"> </td>
</tr>
<tr>
<td>交费时间:</td>
<td>
<select name="year">
<%
for i=0 to 50
num=2000+i
if num=y then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
年
<select name="month">
<%
for i=1 to 12
num=i
if num=m then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
月
<select name="day">
<%
for i=1 to 31
num=i
if num=d then
%>
<option value="<%=num%>" selected><%=num%></option>
<%
else
%>
<option value="<%=num%>"><%=num%></option>
<%
end if
next
%>
</select>
日 </td>
</tr>
<tr>
<td>费用金额:</td>
<td><input type="text" name="money"></td>
</tr>
<tr>
<td>截至:</td>
<td colspan="2">
<table width="100%" border="0" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td><input name="datazhi1" type="text" size="4" value="<%=year(date)%>">
年
<input type="text" name="datazhi2" size="4" value="<%=month(date)%>">
月
<input name="datazhi3" type="text" size="4" value="<%=day(date)%>">号
</td>
</tr>
</table></td>
</tr>
<%
else
%>
<tr>
<td>费用类型:</td>
<td><input name="user_type" type="text" value="办证费、其它费用"> </td>
</tr>
<%
end if
%>
<tr>
<td>备注:</td>
<td height="100"><textarea name="info" cols="30" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2"><div align="center"><input type="submit" name="b1" value="提交"></div></td>
</table>
</td><td align="right">
<table border="0" width="500" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="3">
<p align="center">查看学生详细信息</td>
</tr>
<tr>
<td width="37%" align="right">学号:</td>
<td width="38%" align="left"><%=rs("user_number")%></td>
<td width="25%" align="left" rowspan="6">
<p align="center"><%
set rs8=server.createobject("adodb.recordset")
sql8="select * from INFO where user_id="& id
rs8.open sql8,conn,3,3
%>
<%if not rs8.eof then%>
<img border="0" src="upload/<%=rs8("filepath")%>" width="85" height="113">
<%else%>
<a href="upload/index.asp?user_id=<%=id%>">暂无该生图片,点击这里添加</a>
<%end if%>
<%rs8.close%>
<%set rs8=nothing%>
</td>
</tr>
<tr>
<td width="37%" align="right">姓名:</td>
<td width="38%" align="left"><%=rs("user_name")%></td>
</tr>
<tr>
<td width="37%" align="right">状态:</td>
<td width="38%" align="left"><%=rs("user_state")%> </td>
</tr>
<tr>
<td width="37%" align="right">入学时间:</td>
<td width="38%" align="left"><%=rs("in_time")%></td>
</tr>
<tr>
<td width="37%" align="right">身份证号:</td>
<td width="38%" align="left"><%=rs("user_idnumber")%></td>
</tr>
<tr>
<td width="37%" align="right">性别:</td>
<td width="38%" align="left"><%=rs("user_sex")%></td>
</tr>
<tr>
<td width="37%" align="right">出生年月:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_time")%></td>
</tr>
<tr>
<td width="37%" align="right">婚姻情况:</td>
<td width="63%" align="left" colspan="2"><%=rs("marriage")%></td>
</tr>
<tr>
<td width="37%" align="right">是否住宿:</td>
<td width="63%" align="left" colspan="2"><%=rs("lodging")%></td>
</tr>
<tr>
<td width="37%" align="right">学历:</td>
<td width="63%" align="left" colspan="2"><%=rs("u_diploma")%></td>
</tr>
<tr>
<td width="37%" align="right">专业:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_major")%></td>
</tr>
<tr>
<td width="37%" align="right">班级:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_class")%></td>
</tr>
<tr>
<td width="37%" align="right">省市:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_city")%></td>
</tr>
<tr>
<td width="37%" align="right">地县:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_area")%></td>
</tr>
<tr>
<td width="37%" align="right">地址:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_address")%></td>
</tr>
<tr>
<td width="37%" align="right">邮编:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_postcode")%></td>
</tr>
<tr>
<td width="37%" align="right">家庭电话:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_homephone")%></td>
</tr>
<tr>
<td width="37%" align="right">寝室电话:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_bedroomphone")%></td>
</tr>
<tr>
<td width="37%" align="right">移动电话:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_mobilephoe")%></td>
</tr>
<tr>
<td width="37%" align="right">电子邮箱:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_mail")%></td>
</tr>
<tr>
<td width="37%" align="right">QQ号码:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_qq")%></td>
</tr>
<tr>
<td width="37%" align="right">是否办证:</td>
<td width="63%" align="left" colspan="2"><%=rs("certificate")%></td>
</tr>
<tr>
<td width="37%" align="right">是否就业:</td>
<td width="63%" align="left" colspan="2"><%=rs("employment")%></td>
</tr>
<tr>
<td width="37%" align="right" valign="top">高考成绩:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_collogetestach")%></td>
</tr>
<tr>
<td width="37%" align="right" valign="top">奖惩情况:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_rp")%></td>
</tr>
<tr>
<td width="37%" align="right" valign="top">备注信息:</td>
<td width="63%" align="left" colspan="2"><%=rs("user_info")%></td>
</tr>
<tr>
<td width="100%" align="right" valign="top" colspan="3">
<p align="center"><a href="mod_info.asp?id=<%=rs("id")%>">编辑该学生信息</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
</table>
</div>
</form>
<%
rs.close
set rs=nothing
%>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -