?? editadmin.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="md5.asp"-->
<%
dim key
key=request.querystring("key")
if key<>"" then
set rs=server.createobject("adodb.recordset")
cmd="select * from admin where username like '"&key&"'"
rs.open cmd,conn,1,3
session("myuser")=key
else
response.Write("<script>alert('請選擇管理員');window.location.href('Manageadmin.asp')</script>")
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style2 {font-size: 10px}
body {
background-color: #0099cc;
}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="updataadmin.asp">
<table width="366" height="108" border="0" align="center">
<tr>
<td width="69"> </td>
<td width="242"> </td>
<td width="41"> </td>
</tr>
<tr>
<td><span class="style1">管理帳號:</span></td>
<td><input name="admin" type="text" disabled="disabled" id="admin" value="<%=rs("username")%>"></td>
<td> </td>
</tr>
<tr>
<td><span class="style1">管理密碼:</span></td>
<td><input name="psw" type="password" id="psw">
<span class="style2">不修改請留空</span></td>
<td> </td>
</tr>
<tr>
<td><span class="style1">管理權限:</span></td>
<td><input type="radio" name="quanxian" value="1">
<span class="style1">管理員</span> <input name="quanxian" type="radio" value="2" checked>
<span class="style1">教師</span></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="修改">
<input type="reset" name="Submit2" value="取消"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -