login.asp

来自「京云下载系统」· ASP 代码 · 共 89 行

ASP
89
字号
<%
response.cookies("jy_tajhgbook")=0
if request("user")<>"" and request("pwd")<>"" then
%>
<!--#include file="dbpath.asp"-->
<%
user=replace(request("user")," ","+++ close")
pwd=replace(request("pwd")," ","+++ close")
set rs=server.createobject("adodb.recordset")
sql="select * from admin where user='"&user&"' and pwd='"&pwd&"'"
rs.open sql,conn,1,1
if not rs.eof then
      response.cookies("jy_tajhgbook")="ok"
      response.redirect "admindex.asp"
      response.end
end if
rs.close
set rs=nothing  
conn.close
set conn=nothing
end if
if request("type")="exit" then
      response.redirect "./"
      response.end
end if%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta copy="程序制作 [惊云,网址www.65658.com] ; 盗版必究!">
<title>管理登陆</title>
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #333333; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>

<body>
 <form method="post" action="login.asp" target="_top">

                  <div align="center">
                    <center>

                  <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#99CCFF">
                    <tr>
                      <td width="100%" bgcolor="#D5EAFF">
                        <p align="center">用户登陆</td>
                    </tr>
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF">

                  <table width="100%" border="0" cellspacing="1" cellpadding="0">
                    <tr> 
                      <td width="33%" align="right" nowrap> 
                          
                        <div align="center">用户名:</div>
                      </td>
                      <td width="67%" nowrap><input name="user" maxlength="20" size="20">
                      </td>
                    </tr>
                    <tr> 
                      <td width="33%" align="right" nowrap> 
                        <div align="center">密&nbsp;&nbsp;码:</div>
                      </td>
                      <td width="67%" nowrap>
                        <input type="password" name="pwd" maxlength="16" size="20">
                      </td>
                    </tr>
                    <tr>
                      <td width="100%" align="right" colspan="2" nowrap> 
                        <p align="center"><input type="submit" name="Submit" value="确定"> 
                      </td>
                    </tr>
                  </table>
                      
</td>
                    </tr>
                  </table>
                    </center>
                  </div>
    </form> 
 <p align="center"><a href="./">&lt;&lt;返回留言本&gt;&gt;</a></p>
</body>

</html>

⌨️ 快捷键说明

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