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

📄 supervisor.asp

📁 一篇不错的好论文
💻 ASP
字号:
<!--#include file="conn.asp"-->
<% response.buffer=false %>
<html>
<head>
<title>超 级 管 理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
form {margin:0;padding:0}
</style>
<link rel="stylesheet" href="css/text.css" type="text/css">
<script language=javascript src="js/super.js"></script>
</head>

<body bgcolor="F7FEF6" text="#000000">
<%
oldpass=request("oldpass")
newpass=request("newpass")
row=request("row")
style=request("style")

set rssup=conn.execute("select * from supervisor")
pagerow=rssup("row")
stylesup=rssup("style")
set rssup=nothing

//如果密码和回复内容不为空
if len(oldpass)>0 and len(newpass)>0 then
sql="select pass from supervisor"
set rsreaple=conn.execute (sql)
'response.write rsreaple("pass")
'response.end
if oldpass<>rsreaple("pass") then 
response.write("<script language=javascript>alert('管理员密码错误!请重新输入!')</script>")
else
'set rs=server.createobject("adodb.recordset")
sql="update supervisor set pass='"&newpass&"',row="&row&",style="&style
conn.execute sql
response.write("<script language=javascript>window.opener.location.reload();;alert('修改成功!');javascript:window.close()</script>")
end if
end if 
%>
<table width="269" border="0" height="220" cellspacing="0" cellpadding="1" bgcolor="70C570">
  <tr> 
    <td valign="top" width="421"> 
      <form name="form1" method="post" action="supervisor.asp" onsubmit="return check(form1)">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="F7FEF6" height="100%">
          <tr> 
            <td valign="top"> 
              <table width="100%" border="0" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT: fixed" background="images/about/bgbt.gif">
                <tr> 
                  <td height="20"><font color="#FF0000"> <font color="#FFFFFF">&nbsp;∴</font> 
                    留 言 本 管 理</font></td>
                  <td width="30" align="center"><a href="javascript:window.close();"><img src="images/del/gb1.gif" width="16" height="16" border="0" alt="取 消 回 复"></a></td>
                </tr>
              </table>
              <table width="90%" border="1" align="center" cellspacing="0" cellpadding="4" bordercolor="F0F9F0" bordercolordark="F7FEF6" class="text9">
                <tr> 
                  <td align="center"><font color="#000000">旧 &nbsp;&nbsp;密 &nbsp;&nbsp;码 
                    :</font> <br>
                    <p> <font color="#000000">新 &nbsp;&nbsp;密 &nbsp;&nbsp;码 :</font> 
                  </td>
                  <td> 
                    <input type="password" name="oldpass" size="20" maxlength="12" class="text" onMouseOver="this.focus()">
                    <p> 
                      <input type="password" name="newpass" size="20" maxlength="12" class="text" onMouseOver="this.focus()">
                    </p>
                  </td>
                </tr>
                <tr> 
                  <td colspan="2" align="center" height="10">&nbsp; </td>
                </tr>
                <tr> 
                  <td width="36%" align="center"><font color="#000000">每&nbsp;&nbsp;页&nbsp;行&nbsp;&nbsp;数:</font></td>
                  <td width="64%"> 
                    <input type="text" name="row" size="5" maxlength="2" class="text" onMouseOver="this.focus()" value="<%=pagerow%>">
                  </td>
                </tr>
                <tr> 
                  <td valign="top" colspan="2" height="10">&nbsp;</td>
                </tr>
                <tr> 
                  <td valign="top" align="center"><font color="#000000">定&nbsp;&nbsp;制&nbsp;风&nbsp;&nbsp;格:</font></td>
                  <td> 
                    <input type="radio" name="style" value="true" <% if stylesup=true then response.write "checked" %> >
                    留言本 
                    <input type="radio" name="style" value="false" <% if stylesup=false then response.write "checked" %> >
                    bbs </td>
                </tr>
                <tr> 
                  <td valign="top" colspan="2">&nbsp;</td>
                </tr>
                <tr> 
                  <td align="center" colspan="2"> 
                    <input type="submit" name="submit" value=" 修 改  " class="text9">
                    &nbsp;&nbsp;&nbsp; 
                    <input type="reset" name="Submit2" value=" 重 填  " class="text9">
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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