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

📄 admchangpass.asp

📁 电子日记可以自动提醒、记录你所做的事情。在特别有意义的日子里
💻 ASP
字号:
<%
  response.buffer=true
  Set Conn=Server.CreateObject("ADODB.Connection") 
  DBPath=Server.MapPath("classsky.asp") 
  Conn.open "Driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath 
  Set rs=Server.CreateObject("ADODB.RecordSet")
  rs.open "Select * From admin",Conn,2,3
  cjpass=rs("password")
  if pass1=pass2 then
	ok="yes"
  end if
  if session("root")<>cjpass then
     response.redirect "index.asp"
  end if 
  home=request.form("home")
  page=request.form("page")
  user=request.form("user")
  usermail=request.form("usermail")
  name=request.form("name")
  riji=request.form("riji")
  pass1=request.form("password1")
  pass2=request.form("password2")
  if ok="yes" then
     if usermail<>"" then rs("usermail")=usermail
     if home<>"" then rs("home")=home
     if page<>"" then rs("page")=page
     if user<>"" then rs("user")=user
     if name<>"" then rs("name")=name
     if riji<>"" then rs("riji")=riji
     if pass1<>"" then
     	rs("password")=pass1
     	session("root")=pass1
     end if
     rs.update
     if pass1<>"" then
     	response.redirect "adminindex.asp"
     end if
  end if
	if logo="" or isnull(logo) then logo="images/girl.gif"
  
%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<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>
<style>
BODY { scrollbar-track-color:#eeeeee; SCROLLBAR-FACE-COLOR: #ffffff; FONT-SIZE: 9pt; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #ffffff;  SCROLLBAR-3DLIGHT-COLOR: #ffffff; SCROLLBAR-ARROW-COLOR: #ffffff; FONT-FAMILY: "Verdana"; SCROLLBAR-DARKSHADOW-COLOR: #ffffff;CURSOR: url('images/c.cur')}
select{font-size:8pt;font-family:verdana;background-color:#ffffff;border:1px dotted #cccccc; color:#333333;}
input{font-size:8pt;font-family:verdana;background-color:#ffffff;border-bottom:1px solid #cccccc;border-left:1px solid #cccccc; border-top:0px solid #cccccc;border-right:0px dotted #cccccc;color:#333333;}
textarea{font-size:8pt; font-family:verdana;background-color:#ffffff;border:1px dotted #cccccc;color:#333333;letter-spacing : 1pt ;line-height : 150%}
A {COLOR: #000000; TEXT-DECORATION: none }
A:visited {COLOR: #000000; TEXT-DECORATION: none}
A:active {COLOR: #ffffff; TEXT-DECORATION: none}
A:hover {COLOR: #000000; background-color: #E8FCD0}
td {FONT-SIZE: 9pt;  FONT-FAMILY: "Verdana"; color:#3333333;letter-spacing : 1pt ;line-height :14pt;WORD-BREAK: break-all;}
</style>
</head>
<body>
<div align="center">
<center>
    <img src="images/title.gif" width="197" height="58"> 
    <table class=td border="0" cellspacing="0" cellpadding="20">
      <tr>
        <td>
          <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="100%"> 
                <form method="POST" action="admchangpass.asp">
                  <p><font size="2">日 
                    记 名:
                    <input type="text" name="riji" size="40" value=<%=rs("riji")%>>
                    </font></p>
                  <p><font size="2">每页显示:
                    <input type="text" name="page" size="10" value=<%=rs("page")%>>
                    则日记内容</font></p>
                  <p><font size="2">您的名字:
                    <input type="text" name="user" size="20" value=<%=rs("user")%>>
                    </font><font size=2 color=565656>(授权用户名)</font></p>
                  <p><font size="2">您的网址:
                    <input type="text" name="home" size="40" value=<%=rs("home")%>>
                    </font></p>
                  <p><font size="2">您的电邮:
                    <input type="text" name="usermail" size="20" value=<%=rs("usermail")%>>
                    </font></p>
                  <p ><font size="2">超级帐号:
                    <input type="text" name="name" size="20" value=<%=rs("name")%>>
                    </font></p>
                  <p ><font size="2">新 
                    密 码:
                    <input type="password" name="password1" size="20">
                    </font></p>
                  <p ><font size="2">确认密码:
                    <input type="password" name="password2" size="20">
                    </font></p>
                  <p ><font size="2"> 
                    <input type="submit" value="提交" name="B1">
                    <input type="reset" value="全部重写" name="B2">
                    </font> 
                    <input type="button" name="abort" value="返回管理页面" onClick="javascript:location.href='adminindex.asp'" style='cursor:hand;'>
                  </p>
                </form>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <br>
    <table class=td2 width="50%" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td nowrap align="center">免费服务由<a href="http://classsky.com/">|班级天空|</a>提供<font size="1">/ 
          Skin By <a href="http://blueyr.com">Blueyr.Com</a></font><font size="1"><br>
          <a href="http://classsky.com/" target="_blank"><img src="images/copy.gif" width="305" height="5" border="0"></a> 
          </font></td>
      </tr>
    </table>
  </center>
</div>
</body>

</html>

⌨️ 快捷键说明

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