⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_changepass.asp

📁 庐江二中
💻 ASP
字号:
<%PageName="admin_changepass"%>
<!--#include file="session.asp"-->
<%checkAdmin1%>
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!--#include file="top.asp"-->
<%
strMesg="用户密码管理"
gpy=request("gpy")
if gpy="Add" then
  password=request("password")
  password1=request("password1")
  if password=password1 then
   if Session("AdminID")<>"" then
    Query="update Admin set Password='"&password&"' where ID="&Session("AdminID")
	conn.Execute(Query)
	strMesg="<font color=red>密码修改成功</font>"
   else
    strMesg="<font color=red>密码修改失败</font>"
   end if
  else
    strMesg="<font color=red>两次密码不相同</font>"
  end if
end if
%><br>
<table border="1" width="80%" cellspacing="0" cellpadding="1" bgcolor="<%=MainBgColor%>">
<tr>
<td valign=top>
<table border="1" width="100%" cellspacing="0" cellpadding="0" Class="TableLine" bordercolorlight="<%=MainBColor%>" bgcolor="<%=MainCColor%>">
<tr>
<td width="100%" height="20" colspan=2 align=center bgcolor="<%=MainTColor%>" background="images/admin/b3.gif"><b><%=strMesg%></b></td>
</tr>
<tr>
<td align="center">
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>
<form method="post" action="admin_changepass.asp">
<div align="center">
  <center>
<table border="1" width="45%" cellspacing="0" cellpadding="0" Class="TableLine" bordercolorlight="#000000" style="font-size: 9pt; text-decoration: none; border-collapse: collapse" bordercolor="#111111">
<tr align="center">
<td width=100% align=center bgcolor="#EFEFEF" height="22" background="images/admin/b3.gif">
修改密码</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size: 9pt; border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="33%" align="right" height="30">新&nbsp;密&nbsp;码:</td>
<td width="67%"><input type="password" name="password" maxlength="20" size="20"> </td>
</tr>
<tr>
<td width="33%" align="right" height="30">确认密码:</td>
<td width="67%"><input type="password" name="password1" maxlength="16" size="20"> </td>
</tr>
<tr>
                              <td colspan="2" height="25" align=center> 
                                <input type='hidden' name='gpy' value='Add'>
<input type="submit" name="Submit" value="确 定" style="border-style: solid; border-width: 1; background-color: #FFFFFF">&nbsp;<input type="reset" name="Submit2" value="取 消" style="border-style: solid; border-width: 1; background-color: #FFFFFF">
                              </td>
</tr>
</table>
</td>
</tr>
</table>
  </center>
</div>
</form><p>&nbsp;</p>
<p>&nbsp; </p>
</td>
</tr>

</table>
</form>
</td>
</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -