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

📄 login.asp

📁 网络电视类型的好网站
💻 ASP
字号:
<!--#include file="conn.asp" -->
<%
username=Trim(Request.Form("username"))
password=Trim(Request.Form("password"))
if username<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from admin where manager='"&username&"'"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
Response.Write("<script language='JavaScript'>alert('用户名错误!请重新登陆!')</script>")
else
if password<>rs("password") then
Response.Write("<script language='JavaScript'>alert('密码错误!请重新登陆!')</script>")
else
session("ebai8tvadmin#@$4")=1
response.Redirect("index.asp")
end if
end if
end if
set rs=nothing
set conn=nothing
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>登陆管理</title>
<LINK href="../style.css" type=text/css rel=stylesheet>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" height="100%" bgcolor="#FFFFFF" style="border: 1 solid #000000">

  <tr> 
    <td width="100%" align="center"   valign="middle"> <a href="index.asp"> </a><br>
      <br><br><br>
     <table width="554" border="0" cellspacing="0" cellpadding="0" height="113">
        <form name="form1" method="post" action="login.asp">
          <tr> 
            <td width="20%" height="75" rowspan="2"> </td>
            <td width="20%" height="37" valign="middle" align="center">用户名:</td>
         
            <td width="40%" height="37" valign="middle" align="center">
              <p align="left"><input name="username" type="text" size="25" maxlength="16" style="border: 1 solid #000000"> 
              </p>
            </td>
                 <td width="20%" rowspan="2" height="75">&nbsp;</td>
          </tr>
          <tr> 
            <td width="20%" height="38" valign="middle" align="center">密&nbsp;  
              码:</td> 
          
            <td width="40%" height="38" valign="middle" align="center"> 
              <p align="left"><input name="password" type="password" size="25" maxlength="16" style="border: 1 solid #000000"></p> 
        </td> 
          </tr> 
           <tr>  
            <td width="20%" height="38">&nbsp;</td> 
            <td colspan="2" align="center" width="60%" height="30" valign="middle"><input type="submit" name="Submit" value="提交" style="border: 1 solid #000000">  
              &nbsp; <input type="reset" name="Submit2" value="重置" style="border: 1 solid #000000"> </td>  
            <td width="20%" height="38">&nbsp;</td>  
          </tr>  
        </form>  
      </table>
    </td>  
  </tr>  
 
</table> 
</body> 
</html> 
 

⌨️ 快捷键说明

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