?? user_edit.asp
字號:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=pass.asp-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #E7EEF5;
}
.STYLE1 {
font-size: 12px;
font-weight: bold;
}
-->
</style></head>
<body>
<!--#include file="conn.asp"-->
<%
id=trim(request("id"))
if request("act")="edit" then
username=trim(request("username"))
password=trim(request("password"))
name=trim(request("name"))
sex=trim(request("sex"))
no=trim(request("no"))
tel=trim(request("tel"))
address=trim(request("address"))
gs=trim(request("gs"))
sh=trim(request("sh"))
sd=trim(request("sd"))
conn.execute("update [user] set [username]='"&username&"',[password]='"&password&"',[name]='"&name&"',[sex]='"&sex&"',[no]='"&no&"',[tel]='"&tel&"',[address]='"&address&"',gs='"&gs&"',sh='"&sh&"',sd='"&sd&"' where id="&id)
response.write"<script language='javascript'>alert('修改成功!');window.location.href='userlist.asp';</script>"
end if
set rs=conn.execute("select * from [user] where id="&id)
%>
<center><form action="?act=edit" method="post" name="form1" target="_self" id="form1">
<table width="500" border="0" cellpadding="2" cellspacing="1" bgcolor="#C5D5E4">
<tr>
<td height="35" colspan="2" align="center" bgcolor="#C5D5E4"><strong>修改用戶</strong></td>
</tr>
<tr>
<td width="187" align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">賬號:</td>
<td width="302" height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input name="username" value="<%=rs("username")%>" type="text" class="wenjian huise" id="username" size="30" />
</td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">密碼:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input name="password" value=<%=rs("password")%> type="text" id="password" value="123456" size="30" /></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">姓名:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="name" value="<%=rs("name")%>" type="text" class="wenjian" id="name" size="30" />
</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">性別:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><label>
<input name="sex" type="radio" id="xb_0" value="男" <%if rs("sex")="男" then response.Write "checked='checked'" %> />
男</label>
<label>
<input type="radio" name="xb" value="女" id="xb_1" <%if rs("sex")="女" then response.Write "checked='checked'" %> />
女</label></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">證件號:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="no" type="text" class="wenjian" id="no" size="30" value="<%=rs("no")%>" />
</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">電話:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="tel" type="text" class="wenjian" id="tel" size="30" value="<%=rs("tel")%>" />
</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">地址:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><span class="bk-bottom">
<input name="address" type="text" class="wenjian" id="address" size="30" value="<%=rs("address")%>" />
</span></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">審核:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input type="radio" name="sh" value="1" <%if rs("sh")="1" then response.Write "checked='checked'" %> />
通過
<input type="radio" name="sh" value="0" <%if rs("sh")="0" then response.Write "checked='checked'" %> />
不通過</td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">鎖定:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input type="radio" name="sd" value="1" <%if rs("sd")="1" then response.Write "checked='checked'" %> />
鎖定
<input type="radio" name="sd" value="0" <%if rs("sd")="0" then response.Write "checked='checked'" %> />
取消鎖定</td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor="#E7EEF5" class="cuti">掛失:</td>
<td height="31" align="left" valign="middle" bgcolor="#E7EEF5"><input type="radio" name="gs" value="1" <%if rs("gs")="1" then response.Write "checked='checked'" %> />
掛失
<input type="radio" name="gs" value="0" <%if rs("gs")="0" then response.Write "checked='checked'" %> />
取消掛失</td>
</tr>
<tr>
<td height="40" colspan="2" align="center" valign="middle" bgcolor="#E7EEF5"><input type="hidden" name="id" id="id" value="<%=request("id")%>" />
<input name="editchk" type="submit" class="button" value=" 修 改 " />
<input name="button" type="reset" class="button" id="button" value=" 重 置 " />
</span></td>
</tr>
</table>
</form>
</center>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -