admin.asp

来自「managerc.zip」· ASP 代码 · 共 79 行

ASP
79
字号
<!--#include file="conn.asp"-->
<%
if session("user")="" then
	response.write "管理员页面,您无权访问"
	response.end
end if
%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>管理员页面</title>
<link rel="stylesheet" href="style.css">
</head>

<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
  <center>
  <table border="0" width="400" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
        <form method="POST" action="mod_admin.asp">
        <input type="hidden" value="<%=session("user")%>" name="admin_name">
          <table border="1" width="100%" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="2">
                <p align="center">修改管理员密码</td>
            </tr>
          </center>
          <tr>
            <td width="41%">
              <p align="right">请输入新密码:</td>
            <center>
            <td width="59%"><input type="text" name="pwd" size="20"></td>
            </tr>
            <tr>
              <td width="41%"> </td>
              <td width="59%"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></td>
            </tr>
          </table>
        </center>
        <p align="right"> </p>
      </form>
      </td>
    </tr>
    <%if session("user")="admin" then%>
    <tr>
      <td width="100%">
        <form method="POST" action="add_admin.asp">
          <table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
            <tr>
              <td width="100%" colspan="2">
                <p align="center">添加新用户</td>
            </tr>
            <tr>
              <td width="40%" align="right">用户名:</td>
              <td width="60%"><input type="text" name="name" size="20"></td>
            </tr>
            <tr>
              <td width="40%" align="right">密&nbsp; 码:</td>
              <td width="60%"><input type="text" name="pwd" size="20"></td>
            </tr>
            <tr>
              <td width="100%" colspan="2" align="right"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></td>
            </tr>
          </table>
        </form>
        <p> </td>
    </tr><%end if%>
  </table>
</div>
<!--#include file="down.asp"-->
</body>

</html>

⌨️ 快捷键说明

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