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

📄 login_m.asp

📁 建造工业系统所需的SQL源代码
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="Conn/Conn.asp" -->  <!--包含数据库连接文件-->
<% Session.Timeout=30
if Request.Form("Manager")<>"" and request.Form("PWD")<>"" then
	Manager=request.Form("Manager")
	PWD=request.Form("PWD")
	sql="select * from tb_Manager where Manager='"&Manager&"'"
	'111=2 or 1=1 
	'response.write(22=2 or 1=1 )
	'response.write(sql)
	'response.end()
	set rs=conn.execute(sql)
	if rs.eof then %>
  		<script language="javascript">
  		alert("您输入的管理员错误,请重新输入!");
		history.back();
 		 </script> 
	<%else 
		if rs("PWD")=PWD then
			Session("Manager")=Manager
		%>
     		<script language="javascript">
			opener.location.href="Manage/product.asp";
      		window.close();
  	 		</script>
 		 <%else%>
   			<script language="javascript">
			 alert("您输入的密码错误,请重新输入!");
  			history.back();
  			</script>  		
		<%end if
	end if
end if%>
<script language="javascript">
function mycheck(myform){
if (myform.Manager.value=="")
{alert("请输入管理员!");myform.Manager.focus();return;}
if(myform.PWD.value=="")
{alert("请输入密码!");myform.PWD.focus();return;}
myform.submit();
}
</script>
<html>
<head>
<title>管理员登录!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Css/style.css" rel="stylesheet">
</head>

<body>
<table width="322" height="206"  border="0" cellpadding="-2" cellspacing="-2">
  <tr>
    <td height="153" valign="top" background="Images/Login_M_Top.gif"><table width="100%" height="153"  border="0" cellpadding="-2" cellspacing="-2">
      <tr>
        <td>
		<form method="post" action="Login_M.asp" name="myform">
		  <table width="100%"  border="0" cellspacing="-2" cellpadding="-2">
            <tr>
              <td width="20" height="65">&nbsp;</td>
              <td width="82">&nbsp;</td>
              <td width="200">&nbsp;</td>
              <td width="20">&nbsp;</td>
            </tr>
            <tr>
              <td height="34">&nbsp;</td>
              <td align="center" class="word">&nbsp;&nbsp;管理员:</td>
              <td><input name="Manager" type="text" class="txt_grey" id="Manager3"onKeyDown="if(event.keyCode==13) myform.PWD.focus();" maxlength="20"></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td height="34">&nbsp;</td>
              <td align="center" class="word">&nbsp;&nbsp;密&nbsp;&nbsp;码:</td>
              <td><input name="PWD" type="password" class="txt_grey" id="PWD" onKeyDown="if(event.keyCode==13) mycheck(myform)" maxlength="20"></td>
              <td>&nbsp;</td>
            </tr>
          </table>
		
	    </form></td>
      </tr>
    </table>
	</td>
  </tr>
  <tr>
    <td><img src="Images/Login_M_bottom.gif" width="322" height="53" border="0" usemap="#Map"></td>
  </tr>
</table>
<map name="Map">
  <area shape="rect" coords="164,8,246,26" href="#" onClick="window.close();">
  <area shape="rect" coords="76,8,158,26" href="#" onClick="mycheck(myform)">
</map>
</body>
</html>

⌨️ 快捷键说明

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