📄 admin_edituser.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="login_menu.asp" -->
<!--#include file="error.asp" -->
<!--#include file="md5.asp" -->
<html>
<head>
<title>25175学生成绩查询管理系统v2.21_(学生成绩查询)_(绩查询管理)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="25175com_221.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (25175_sub2.psd) -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/index_02.gif"><table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--#include file="topadmin_user.asp" -->
<table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="202" valign="top"><%call login()%></td>
<td width="696" valign="top"><table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_15.gif" width="695" height="48" alt=""></td>
</tr>
<tr>
<td><table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="32"><img src="images/index_17.gif" width="32" height="579" alt=""></td>
<td valign="top" bgcolor="#FFFFFF"><table width="619" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="619" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="340"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4%"><div align="right"><img src="images/index_19.gif" width="6" height="20" alt=""></div></td>
<td width="93%" bgcolor="#E4E7DB"> <a href="index.asp">首页</a> > <a href="admin_user.asp">学生管理</a> > 学生修改</td>
<td width="3%"><img src="images/index_21.gif" width="7" height="20" alt=""></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="80" valign="bottom"><table width="97%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="images/index_30.gif" width="6" height="70" alt=""></div></td>
<td width="600" background="images/index_31.gif">
<%
dim rank
if admin25175="" then
errmsg="<li>你还没有登陆,请先登陆"
call errormsg()
else
set rs=conn.execute("select rank from manager where mname='"&admin25175&"'")
rank=rs("rank")
set rs=nothing
if rank<=1 then
errmsg="<li>你没有操作权限"
call errormsg()
end if
end if
%> <td>
<td><div align="center"><img src="images/index_34.gif" height="70" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="429" valign="top">
<%
if rank>=2 then
select case request("action")
case "edit"
call edit()
case "del"
call del()
case "save"
call save()
end select
sub edit()
dim rs_cla,scomey,scomem,souty,soutm,scancely,scancelm
set rs=conn.execute("select * from student where sid="&request("id")&"")
if rs.eof and rs.bof then
errmsg="<li>不存在该ID的学生"
call errormsg()
else
scomey=year(rs("scome"))
scomem=month(rs("scome"))
souty=year(rs("sout"))
soutm=year(rs("sout"))
scancely=year(rs("scancel"))
scancelm=year(rs("scancel"))
%>
<form name="form1" method="post" action="?action=save&id=<%=request("id")%>">
<table width="100%" border="0">
<tr>
<td>学号</td>
<td><input name="suser" type="text" id="suser" value="<%=rs("suser")%>" disabled="disabled"></td>
<td>入学</td>
<td><select name="scomey" id="scomey">
<option value="2002" <%if scomey="2002" then response.write"selected"%>>2002</option>
<option value="2003" <%if scomey="2003" then response.write"selected"%>>2003</option>
<option value="2004" <%if scomey="2004" then response.write"selected"%>>2004</option>
<option value="2005" <%if scomey="2005" then response.write"selected"%>>2005</option>
<option value="2006" <%if scomey="2006" then response.write"selected"%>>2006</option>
<option value="2007" <%if scomey="2007" then response.write"selected"%>>2007</option>
<option value="2008" <%if scomey="2008" then response.write"selected"%>>2008</option>
<option value="2009" <%if scomey="2009" then response.write"selected"%>>2009</option>
<option value="2010" <%if scomey="2010" then response.write"selected"%>>2010</option>
<option value="2011" <%if scomey="2011" then response.write"selected"%>>2011</option>
<option value="2012" <%if scomey="2012" then response.write"selected"%>>2012</option>
<option value="2013" <%if scomey="2013" then response.write"selected"%>>2013</option>
<option value="2014" <%if scomey="2014" then response.write"selected"%>>2014</option>
<option value="2015" <%if scomey="2015" then response.write"selected"%>>2015</option>
</select>
年
<select name="scomem" id="scomem">
<option value="1" <%if scomem="1" then response.write"selected"%>>1</option>
<option value="2" <%if scomem="2" then response.write"selected"%>>2</option>
<option value="3" <%if scomem="3" then response.write"selected"%>>3</option>
<option value="4" <%if scomem="4" then response.write"selected"%>>4</option>
<option value="5" <%if scomem="5" then response.write"selected"%>>5</option>
<option value="6" <%if scomem="6" then response.write"selected"%>>6</option>
<option value="7" <%if scomem="7" then response.write"selected"%>>7</option>
<option value="8" <%if scomem="8" then response.write"selected"%>>8</option>
<option value="9" <%if scomem="9" then response.write"selected"%>>9</option>
<option value="10" <%if scomem="10" then response.write"selected"%>>10</option>
<option value="11" <%if scomem="11" then response.write"selected"%>>11</option>
<option value="12" <%if scomem="12" then response.write"selected"%>>12</option>
</select>
月</td>
</tr>
<tr>
<td>密码</td>
<td><input name="password" type="text" id="password"></td>
<td>登记</td>
<td><%=rs("saddtime")%></td>
</tr>
<tr>
<td>姓名</td>
<td><input name="sname" type="text" id="sname" value="<%=rs("sname")%>"></td>
<td>最后登陆</td>
<td><%=rs("slastdate")%></td>
</tr>
<tr>
<td>性别</td>
<td><select name="sex" id="sex">
<option value="保密" <%if rs("sex")="保密" then response.write"selected"%>>保密</option>
<option value="男" <%if rs("sex")="男" then response.write"selected"%>>男</option>
<option value="女" <%if rs("sex")="女" then response.write"selected"%>>女</option>
</select></td>
<td>登陆数</td>
<td><%=rs("sloads")%></td>
</tr>
<tr>
<td>班级</td>
<td><select name="cla_id" id="select">
<%
set rs_cla=conn.execute("select cid,cname from class")
do while not rs_cla.eof
if rs("cla_id")=rs_cla("cid") then
response.write"<option value='"&rs_cla("cid")&"' selected>"&rs_cla("cname")&"</option>"
else
response.write"<option value='"&rs_cla("cid")&"'>"&rs_cla("cname")&"</option>"
end if
rs_cla.movenext
loop
set rs_cla=nothing
%>
</select></td>
<td>离校</td>
<td><select name="souty" id="souty">
<option value="2002" <%if souty="2002" then response.write"selected"%>>2002</option>
<option value="2003" <%if souty="2003" then response.write"selected"%>>2003</option>
<option value="2004" <%if souty="2004" then response.write"selected"%>>2004</option>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -