📄 change.asp
字号:
<%
if session("admin_name")="" then
response.redirect "../index.asp"
response.end
end if
%>
<!--#include file="../inc/adconn.asp"-->
<!--#include file="user.asp"-->
<!--#include file="../css.asp"-->
<%set rs=server.createobject("adodb.recordset")%>
<%
if request("action")="change" then
sql="select top 1 * from admin"
rs.open sql,conn,3,3
rs("admin_name")=request("admin_name")
rs("admin_pass")=request("admin_pass")
rs.update
rs.close
response.write "您的更改已成功"
else
%>
<table width="560" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<form method="POST" action="change.asp?action=change">
<table cellspacing=1 cellpadding=0 width="560" align=center bgcolor=#999999 border=0>
<tbody>
<tr>
<td width="560" background=../images/pics/tile_back.gif id=maintitleback>
<table cellspacing=0 cellpadding=3 width="100%" border=0>
<tbody>
<tr>
<td bgcolor="#EEEEEE"><font color="#666666"><strong>>></strong></font></td>
<td width="100%" height="30" valign="bottom" bgcolor="eeeeee" id=maintitle>用户管理
-> <strong>更改相关项目</strong></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td id=mainbg>
<table cellspacing=1 cellpadding=4 width="100%" border=0>
<tbody>
<tr>
<%sql="select top 1 * from admin"
rs.open sql,conn,3,3%>
<td width="100" height="30" noWrap
background=../images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF">用户名</font></div></td>
<td width="150" height="30" noWrap
background=../images/pics/tile_sub.gif id=titlemedium> <div align="center">
<font color="#FFFFFF">
<input type="text" name="admin_name" size="20" value="<%=rs("admin_name")%>" class=input>
</font></div></td>
<td width="100" height="30" align=middle noWrap
background=../images/pics/tile_sub.gif id=titlemedium> <div align="center"><font color="#FFFFFF">密码</font></div></td>
<td height="30" align=middle noWrap
background=../images/pics/tile_sub.gif id=titlemedium><font color="#FFFFFF">
<input type="text" name="admin_pass" size="20" value="<%=rs("admin_pass")%>" class=input>
</font></td>
</tr>
<tr>
<td height="30" colspan="4" bgcolor=#ffffff> <div align="center"><img src="../images/pics/seperator.gif" width="359" height="1"></div></td>
</tr>
<tr>
<td id=mainfoot colspan=4 height="30"><div align="center">
<table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> <div align="center">
<input name=submit2 type=image src="../images/pics/s_button000.gif" alt=进入 align=absMiddle width="45" height="20" cache tppabs="">
</div>
</td>
</tr>
</table>
</div></td>
</tr>
</form>
<form method="POST" action="change2.asp?action=change2">
<%if session("admin_name")="admin" or session("admin_name")="felix" then
response.Write "<tr>"
response.write"<td width=100 height=30 noWrap background=../images/pics/tile_sub.gif id=titlemedium>"
response.write"<div align=center><font color=#FFFFFF>公司名称</font></div>"
response.write"</td>"%>
<td height=30 colspan=3 align=left noWrap background=../images/pics/tile_sub.gif id=titlemedium> <font color=#FFFFFF><input type=text name=mingcheng size=50 value='<%=rs("mingcheng")%>'>
</font> <font color=#FF0000 size=3>*</font><font color=#FFFFFF>
</font>
<%
response.write"</td>"
response.write"</tr>"
response.write"<tr bgcolor=#FFFFFF>"
response.write"<td height=30 colspan=4 bgcolor=#ffffff> <div align=center><img src='../images/pics/seperator.gif' width=359 height=1></div>"
response.write"</td>"
response.write"</tr>"%>
<tr>
<td id=mainfoot colspan=4 height="30"><div align="center">
<table width="30%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="25"> <div align="center">
<input name=submit2 type=image src="../images/pics/s_button000.gif" alt=进入 align=absMiddle width="45" height="20" cache tppabs="">
</div>
</td>
</tr>
</table>
</div></td>
</tr>
</form></table>
<%end if%>
</tbody>
<%rs.close
%></tr>
</tbody>
<%end if
set rs=nothing
conn.close
set conn=nothing
%></tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -