?? user_edit.asp
字號:
<!--#include file="Conn.asp"-->
<!--#include file="Check.asp"-->
<%
Dim uid,mm
uid = Request.QueryString("id")
Set mm = conn.execute("Select admin,password From [Admin] Where ID = " & uid)
%>
<html><head><title>管理中心</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="Image/style.css" type=text/css rel=stylesheet>
<script language="JavaScript" src="Image/js.js"></SCRIPT></head>
<script language="JavaScript">
<!--
function chk(theForm){
if (theForm.name.value == ""){
alert("請輸入用戶名!");
theForm.name.focus();
return (false);
}
if (theForm.pwd.value == ""){
alert("請輸入你的舊密碼!");
theForm.pwd.focus();
return (false);
}
}
//-->
</script>
<body text="#000000">
<table cellpadding="2" cellspacing="1" border="0" width="95%" class="tableBorder" align=center>
<form action="User_Edit2.asp?action=edit" method=post id=form1 name=form1 onSubmit="return chk(this)">
<tr bgcolor=ffffff align="center">
<th colspan=2 height=25>管理員管理--編輯管理員</th>
</tr>
<tr bgcolor=ffffff>
<td width="26%" align="right" class=forumrow>登陸名:</td>
<td width="74%" class=forumrow><input name="name" type=text value="<%=mm(0)%>" maxlength="16"></td>
</tr>
<tr bgcolor=ffffff>
<td width="26%" align="right" class=forumrow>舊密碼:</td>
<td width="74%" class=forumrow><input name="pwd" type="password" maxlength="16">
</td>
</tr>
<tr bgcolor=ffffff>
<td align="right" class=forumrow>新密碼:</td>
<td width="74%" class=forumrow><input name="newpwd" type="password" id="newpwd" maxlength="16"> (<font color=red>不想修改密碼請留空!</font>)</td>
</tr>
<tr align="center" bgcolor=ffffff>
<td colspan="2" class=forumrow>
<input type="hidden" name="id" value="<%=uid%>">
<input type="submit" name="Submit" value="修 改">
</td>
</tr>
</form>
</table>
</html>
<%
mm.Close
Conn.Close
Set mm=Nothing
Set Conn=Nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -