admin_login.asp

来自「利用C++编写的网络跟踪代码」· ASP 代码 · 共 111 行

ASP
111
字号
<%@language=vbscript codepage=936 %>
<%
option explicit
'强制浏览器重新访问服务器下载页面,而不是从缓存读取页面
Response.Buffer = True 
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache" 
'主要是使随机出现的图片数字随机
%>
<html>
<head>
<title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Admin_Style.css">
<script language=javascript>
<!--
function SetFocus()
{
if (document.Login.UserName.value=="")
	document.Login.UserName.focus();
else
	document.Login.UserName.select();
}
function CheckForm()
{
	if(document.Login.UserName.value=="")
	{
		alert("请输入用户名!");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.Password.value == "")
	{
		alert("请输入密码!");
		document.Login.Password.focus();
		return false;
	}
	
}

function CheckBrowser() 
{
  var app=navigator.appName;
  var verStr=navigator.appVersion;
  if (app.indexOf('Netscape') != -1) {
    alert("MY动力友情提示:\n    你使用的是Netscape浏览器,可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  } 
  else if (app.indexOf('Microsoft') != -1) {
    if (verStr.indexOf("MSIE 3.0")!=-1 || verStr.indexOf("MSIE 4.0") != -1 || verStr.indexOf("MSIE 5.0") != -1 || verStr.indexOf("MSIE 5.1") != -1)
      alert("MY动力友情提示:\n    您的浏览器版本太低,可能会导致无法使用后台的部分功能。建议您使用 IE6.0 或以上版本。");
  }
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
	font-size: xx-large;
	color: #FF0000;
	font-weight: bold;
	font-family: Georgia, "Times New Roman", Times, serif;
}
.style2 {color: #0000FF}
-->
</style>
</head>
<body class="bgcolor">
<p>&nbsp;</p>
<form name="Login" action="Admin_ChkLogin.asp" method="post" target="_parent" onSubmit="return CheckForm();">
  <div align="center"> 
    <p>&nbsp;</p>
    <p class="style1">管 理 后 台 </p>
  </div>
  <table width="300" border="0" align="center" cellpadding="0" cellspacing="8" bgcolor="ffffff">
    <tr align="center"> 
      <td height="50" colspan="2"><img src="new/logo.gif" width="199" height="41"> 
      </td>
    </tr>
    <tr> 
      <td align="right"><font color="#666666">用户名称:</font></td>
      <td><input name="UserName"  type="text"  id="UserName4" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#f9f9f9';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
    </tr>
    <tr> 
      <td align="right"><font color="#666666">用户密码:</font></td>
      <td><input name="Password"  type="password" maxlength="20" style="width:160px;border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1" onMouseOver="this.style.background='#f9f9f9';" onMouseOut="this.style.background='#FFFFFF'" onFocus="this.select(); "></td>
    </tr>
    <tr valign="middle"> 
      <td height="35" colspan="2"> 
        <div align="center"> 
          <input   type="submit" name="Submit" value=" 确&nbsp;认 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #f9f9f9; border: 1 solid #e1e1e1" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#f9f9f9'">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
          <input name="reset" type="reset"  id="reset" value=" 清&nbsp;除 " style="font-size: 9pt; height: 19; width: 60; color: #000000; background-color: #f9f9f9; border: 1 solid #e1e1e1" onMouseOver ="this.style.backgroundColor='#ffffff'" onMouseOut ="this.style.backgroundColor='#f9f9f9'">
          <br>
        </div></td>
    </tr>
  </table>
  <p align="center">屏幕分辨率为 <font color="#FF0000"><strong>1024*768</strong></font> 
    或以上达到最佳浏览效果!<br>
    需要浏览器为<strong><font color="#FF0000"> </font></strong><font color="#FF0000"><strong>IE5.5</strong></font> 
    或以上版本才能正常运行!!!</p>
  <p align="center" class="style2">QQ免费资源网V1.0正式版</p>
</form>
<script language="JavaScript" type="text/JavaScript">
CheckBrowser();
SetFocus(); 
</script>
</body>
</html>

⌨️ 快捷键说明

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