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

📄 poplogon.asp

📁 用asp和access做的一个文学管理网站
💻 ASP
字号:
<!--#include file="conn.asp" -->
<!--#include file="../char.asp" -->
<html>
<title>会话过期,请重新登录</title>
<head>

<meta http_Equiv="Progma" content="no-cache">
<%
   Response.Write "<script language=javascript>"
   Response.Write "window.moveTo(200,200);"
   Response.Write "</script>"    
%>
<link rel="stylesheet" href="../style.css" type="text/css">
<script language=javascript>
   function Check()
   {
      if(form1.UserName.value==""){
         alert("请输入用户名!");
         return false;
      }else{return true;};
      
   }

</SCRIPT>
</head>
<%
     

If Request.Form("form") = 1 Then

     UserName = Request.Form("UserName")
     PassWord = Request.Form("PassWord")
     sql="select * from admin where UCase(password)='"&UCase(password)&"' and UCase(username)='"&UCase(username)&"'"

     Set Rs = Conn.Execute(Sql)
     If Not Rs.Eof Then
        session("admin")=rs("username")
	session("flag")=rs("flag")
        Response.write "<script language=javascript>"
        Response.Write "window.opener.document.location.reload();"
        Response.Write "window.close();"
        Response.Write "</script>"
     Else
        Response.write "<script language=javascript>"
        Response.Write "alert(""不正确的用户名或密码!"");"
        Response.Write "</script>"
     End If
	 Set Rs = Nothing
     Set Conn = Nothing
End If

%>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="6" >
<form name="form1" method="post" action="" onsubmit='return Check();'>       
  <table width="340" border="0" cellspacing="0" cellpadding="0" height="0" align="center" class="fmat">
    <tr> 
      <td rowspan="4" bgcolor="#7A9BDE" width="20" align="center" valign="middle">
        <table width="3" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="9">
          <tr> 
            <td></td>
          </tr>
        </table>
      </td>
      <td width="98" class="text" align="right" valign="bottom" bgcolor="#F1F4FC" height="25">用户名:</td>
      <td width="154" align="left" valign="middle" bgcolor="#F1F4FC" height="25"> 
        <input type=text name=UserName class="bokcss">
      </td>
      <td rowspan="4" bgcolor="#7A9BDE" width="20" align="center" valign="middle">
        <table width="3" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" height="9">
          <tr>
            <td></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td width="98" class="text" align="right" valign="bottom" bgcolor="#F1F4FC" height="25">密码:</td>
      <td width="154" align="left" valign="middle" bgcolor="#F1F4FC" height="25"> 
        <input type=password name=PassWord class="bokcss">
      </td>
    </tr>
    <tr> 
      <td colspan="2" bgcolor="#F1F4FC" height="30"> 
        <div align="center"> 
          <input type=submit value=确认 name="submit" >
          &nbsp;&nbsp;
          <input type=button  value=关闭 name="reset"  onclick='window.opener.close();window.close();'>
          <input type=hidden name=form value="1">
        </div>
      </td>
    </tr>
  </table>
        </form>
</body>

⌨️ 快捷键说明

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