📄 edituser.asp
字号:
<!--#include file="adminconn.inc" -->
<%
if request("action")="deluser" then
killusername=request("killusername")
conn.execute "delete * from user where username='"&killusername&"'"
response.write"<SCRIPT language=JavaScript>alert('你已删除了此帐号!');"
response.write"javascript:history.go(-2)</SCRIPT>"
rseponse.end
end if
%>
<%
if request("action")="viewuserorderlog" then
username=request("orderusername")
url="userorderlog.asp?username="&username&""
response.redirect url
end if
%>
<%
if request("action")="edituser" then
editusername=request("editusername")
password=request("password")
email=request("email")
userfrom=request("userfrom")
oicq=request("oicq")
telphone=request("telphone")
conn.execute "update user set password='"&password&"',email='"&email&"',userfrom='"&userfrom&"',oicq='"&oicq&"',telphone='"&telphone&"' where username='"&editusername&"'"
response.write"<SCRIPT language=JavaScript>alert('你已更改了此帐号!');"
response.write"javascript:history.go(-2)</SCRIPT>"
end if
%>
<head>
<title>在线测购物管理系统-帐号管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../inc/guhongying.css" type="text/css">
</head>
<body bgcolor="6699CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#000000" vspace="0" hspace="0">
<tr>
<td bgcolor="#316395" height="27"><font color="#FFFFFF">.:: 您可以在这里删除或者修改帐号资料</font></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50"> </td>
</tr>
</table>
<%
sql="select * from user where username='"&request("searchuser")&"'"
set rs=server.createobject("ADODB.Recordset")
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起,没有此帐号!');"
response.write"javascript:history.go(-1)</SCRIPT>"
end if
%>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#000000" width="60%" align="center">
<form name="form1" method="post" action="edituser.asp">
<tr>
<td bgcolor="#336699" height="30" width="31%"><font color=ffffff>用户帐号:</font></td>
<td bgcolor="#336699" height="30" width="69%"><font color=ffffff><b><%=rs("username")%>
</b></font></td>
</tr>
<tr>
<td bgcolor="#7C96B8" align="left" height="30" width="31%"><font color=ffffff>帐号密码:</font></td>
<td bgcolor="#7C96B8" align="left" height="30" width="69%">
<input type="text" name="password" value="<%=rs("password")%>">
</td>
</tr>
<tr>
<td bgcolor="#336699" height="30" width="31%"><font color=ffffff>来 自:</font></td>
<td bgcolor="#336699" height="30" width="69%"><font color=ffffff><b>
<input type="text" name="userfrom" value="<%=rs("userfrom")%>">
</b></font></td>
</tr>
<tr bgcolor="#7C96B8">
<td height="30" width="31%"><font color=ffffff>Oicq:</font></td>
<td height="30" width="69%"><font color=ffffff><b>
<input type="text" name="oicq" value="<%=rs("oicq")%>">
</b></font></td>
</tr>
<tr>
<td bgcolor="#336699" height="30" width="31%"><font color=ffffff>电 话:</font></td>
<td bgcolor="#336699" height="30" width="69%"><font color=ffffff><b>
<input type="text" name="telphone" value="<%=rs("telphone")%>">
</b></font></td>
</tr>
<tr bgcolor="#7C96B8">
<td height="30" width="31%"><font color=ffffff>联系邮箱:</font></td>
<td height="30" width="69%"><font color=ffffff><b>
<input type="text" name="email" value="<%=rs("email")%>">
</b></font></td>
</tr>
<tr bgcolor="#336699">
<td align="left" height="50" colspan="2">
<div align="center">
<input type="submit" name="Submit" value="修改此帐号资料" class="Tips_bo">
<input type="hidden" name="action" value="edituser">
<input type="hidden" name="editusername" value="<%=request("searchuser")%>">
</div>
</td>
</tr></form>
<tr bgcolor="#7C96B8">
<td align="left" height="30" bgcolor="#7C96B8">
<form name="deluser" method="post" action="edituser.asp">
<div align="center">
<input type="submit" name="Submit" value="删除此帐号" class="Tips_bo">
<input type="hidden" name="action" value="deluser">
<input type="hidden" name="killusername" value="<%=request("searchuser")%>">
</div>
</form>
</td>
<td>
<form name="deluser" method="post" action="edituser.asp">
<input type="submit" name="Submit" value="查看此帐号的交易资料" class="Tips_bo">
<input type="hidden" name="action" value="viewuserorderlog">
<input type="hidden" name="orderusername" value="<%=request("searchuser")%>">
</form>
</td></tr>
</table>
<table border="0" cellspacing="1" cellpadding="4" bgcolor="#000000" width="60%" align="center"></table>
<p> </p>
<center>
<font color="ffffff">建议使用 1024 X 768 及以上分辨率 </font>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -