?? user_admin.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="tcconn.asp" -->
<%
if request.Cookies("flag")<>"teacher" then
response.write "<script language=JavaScript>{window.alert('網絡超時或你還未登錄,請重新登陸!');window.location.href='index.htm';}</script>"
response.end
end if
uid=request.Cookies("adminuser")
select case request("ac")
case "edit"
call user_edit()
end Select
%>
<html>
<head>
<title>重慶文理學院教師業務管理系統</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="keywords" content="蘭州理工大學石油化工學院學院,明星設計,lyz.cn@126.com,L.Y.Z">
<LINK href="css.css" type=text/css rel=stylesheet>
</head>
<body background="img/bg.gif" topmargin="0" leftmargin="0">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#99CC00">
<tr>
<td height="30"> </td>
</tr>
<tr>
<td><img src="img/admin_top.gif" width="778" height="66"></td>
</tr>
<tr>
<td>
您現在正在操作:<span class="style8">管理帳戶</span>
<p> </p></td>
</tr>
<tr>
<td>
<table width="754" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="img/admin_admin.gif" width="754" height="27"></td>
</tr>
<tr>
<td background="img/table_bg.gif">
<form name="form1" method="post" action="">
<table width="754" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="115"> </td>
<td width="60"><input name="ac" type="hidden" id="ac" value="edit"></td>
<td width="130"> </td>
<td width="85"> </td>
<td width="153"> </td>
<td width="58"> </td>
<td width="65"> </td>
<td width="88"> </td>
</tr>
<%set rs=conn.execute("select tc_name,tc_pwd from tcinfor where tc_id="&uid&"")%>
<tr>
<td> </td>
<td>用戶名:</td>
<td><%=rs("tc_name")%></td>
<td align="center">密碼:</td>
<td><input name="txt_pwd" type="text" id="txt_pwd" value="<%=rs("tc_pwd")%>" size="20"></td>
<td><input name="btm01" type="submit" id="btm01" value="修改"></td>
<td><input name="btm02" type="reset" id="btm02" value="重置"></td>
<td> </td>
</tr>
<%set rs=nothing%>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td background="img/table_btom.gif"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="300"><p> </p> </td>
</tr>
</table>
</body>
</html>
<%
sub user_edit()
admin_pwd=request("txt_pwd")
conn.execute("update tcinfor set tc_pwd='"&admin_pwd&"' where tc_id="&uid&"")
response.write "<script language=JavaScript>{window.alert('修改成功!');window.location.href='user_admin.asp';}</script>"
response.end
end sub
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -