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

📄 login.asp

📁 一套酒店预订系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>

<%response.buffer=true%>

<!-- #include file=include/setup.inc -->

<!--

---------------------

-->

<html>

<head>

<meta HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312">

<link rel="stylesheet" type="text/css" href="html/guilin.css">

<title>::::::::::::修武云台山商务酒店网站客房预订系统::::::::::::</title></head>

<body text=ffffff bgcolor=#FFFFFF leftmargin="20">

<table width="133" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td height="75">&nbsp;</td>

    <td height="75">&nbsp;</td>

  </tr>

</table>

<%

pass=request("pass")

if pass="" then

%>

<script language=JavaScript>

<!--

function chs1(){

h2.style.display="none";

h3.style.display="none";

h5.style.display="none";

h1.style.display="block";

}



function chs2(){

h1.style.display="none";

h3.style.display="none";

h5.style.display="none";

h2.style.display="block";

}



function chs3(){

h2.style.display="none";

h1.style.display="none";

h5.style.display="none";

h3.style.display="block";

}



function chs5(){

h2.style.display="none";

h1.style.display="none";

h3.style.display="none";

h5.style.display="block";

}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);



function MM_showHideLayers() { //v3.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }

    obj.visibility=v; }

}



function change(obj) {

  if(obj.selectedIndex == 0) { return false; }

  urlhtml=obj.options[obj.selectedIndex].value;

  window.open(urlhtml,"homeWin");

  obj.selectedIndex=0;

  return true;

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}



function logins(){

if (document.form1.select.value==0){document.form1.action="chat/chklogin.asp";}

else{document.form1.action="lt/chklogin.asp";}

}



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

//-->

</script>

<form method="POST" action="login.asp">

  <center>

    <table height=201 cellspacing=0 cellpadding=0 width=400 align=center 

      border=0>

      <tbody> 

      <tr> 

        <td background=pic/loginbg.gif> 

          <table class=t12 cellspacing=0 cellpadding=0 width="90%" 

            align=center border=0>

            <tbody> 

            <tr> 

              <td height=30> 

                <div align=center>☆管理员登陆(非管理员请离开此页) </div>

              </td>

            </tr>

            <tr> 

              <td height=20> 

                <table align="center">

                  <tr> 

                    <td><span class="p9">密码</span></td>

                    <td align="center"> 

                      <input name="pass" maxlength="200" class=smallinput>

                    </td>

                  </tr>

                  <tr> 

                  <tr> 

                    <td align="right"></td>

                    <td colspan="2" align="center"> 

                      <input type="submit" value="开始登陆" class="buttonface" name="submit">

                    </td>

                  </tr>

                  <tr> 

                    <td align="right"></td>

                    <td  colspan="2" align="center"> <span class="p9"> </span> 

                    </td>

                  </tr>

                </table>

                <br>

              </td>

            </tr>

            </tbody> 

          </table>

          <table class=t12 cellspacing=0 cellpadding=0 width="73%" 

            align=center border=0>

            <tbody> 

            <tr> 

              <td> 

                <table cellspacing=0 cellpadding=0 width="78%" align=center 

                  border=0>

                  <tbody> 

                  <tr> 

                    <td width="13%" background=pic/1047.gif> 

                      <div align=left><img height=22 src="pic/1046.gif" 

                        width=2></div>

                    </td>

                    <td class=t12 width="72%" 

                        background=pic/1047.gif> 

                      <div align=center><a 

                        href="http://www.5d1d.com">网站首页</a></div>

                    </td>

                    <td width="15%" background=pic/1047.gif> 

                      <div align=right><img height=22 

                        src="pic/1048.gif" 

                  width=2></div>

                    </td>

                  </tr>

                  </tbody> 

                </table>

              </td>

              <td> 

                <table cellspacing=0 cellpadding=0 width="80%" align=center 

                  border=0>

                  <tbody> 

                  <tr> 

                    <td width="13%" background=pic/1047.gif> 

                      <div align=left><img height=22 src="pic/1046.gif" 

                        width=2></div>

                    </td>

                    <td class=t12 width="73%" 

                        background=pic/1047.gif> 

                      <div align=center><a 

                        href="Goods.asp">返回程序</a></div>

                    </td>

                    <td width="14%" background=pic/1047.gif> 

                      <div align=right><img height=22 

                        src="pic/1048.gif" 

                  width=2></div>

                    </td>

                  </tr>

                  </tbody> 

                </table>

              </td>

              <td> 

                <table cellspacing=0 cellpadding=0 width="80%" align=center 

                  border=0>

                  <tbody> 

                  <tr> 

                    <td width="13%" background=pic/1047.gif> 

                      <div align=left><img height=22 src="pic/1046.gif" 

                        width=2></div>

                    </td>

                    <td class=t12 width="74%" 

                        background=pic/1047.gif> 

                      <div align=center><a 

                        href="javascript:MM_openBrWindow('help.htm','','width=334,height=228')">系统帮助</a></div>

                    </td>

                    <td width="13%" background=pic/1047.gif> 

                      <div align=right><img height=22 

                        src="pic/1048.gif" 

                  width=2></div>

                    </td>

                  </tr>

                  </tbody> 

                </table>

              </td>

            </tr>

            </tbody> 

          </table>

        </td>

      </tr>

      </tbody> 

    </table>

  </center>

</form>

<center>

  <%else%>

  <!-- #include file=database.asp -->

  <%set Rs=server.CreateObject("ADODB.Recordset")

   Rs.open "select top 1 * from manage",con,1,1

   if Rs.eof or Rs.bof then

      response.write "数据库错误,数据库中注管理员已经不存在,请添加记录后再操作!"

      Rs.close

      set Rs=nothing

      con.close

      set con=nothing

      response.end

   end if

   

   if rs("pass")<>pass then

      response.write "密码错误!"

      Rs.close

      set Rs=nothing

      con.close

      set con=nothing

      response.end

   end if

   

   session("pass")=pass

   response.clear

   Rs.close

   set Rs=nothing

   con.close

   set con=nothing

   response.redirect "manage.asp"

end if

%>

</center>

⌨️ 快捷键说明

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