📄 adminlogin.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
<style type="text/css">
<!--
.style3 {color: #FFFFFF; font-family: "华文行楷"; font-size: 24px;}
body {
background-image: url();
background-color: #FFFFFF;
}
-->
</style>
</head>
<Script language="vbscript">
sub check(yzm1)
alert(yzm1)
alert(form1.yzm.value)
if form1.uid.value="" then
alert("登录名不能为空,请输入登录名")
form1.uid.focus
elseif form1.pwd.value="" then
alert("密码不能为空,请输入密码")
form1.pwd.focus
elseif cint(form1.yzm.value)<>yzm1 then
alert("输入的验证码不正确!")
else
alert("submit")
form1.submit
end if
end sub
</script>
<body>
<%
randomize
yzm=int(8999*rnd()+1000)
randomize
yzm_skin=int(3*rnd()+1)
%>
<br>
<br>
<br>
<br>
<table width="369" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td width="367" height="69" align="center"><img src="picture/login.gif" width="411" height="74"></td>
</tr>
<tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#FFFFFF"> <form name="form1" action="admincheck.asp" method="post">
<table width="95%" border="0" align="center">
<tr>
<td> <fieldset>
<legend accesskey="F" align="left"><font size="2">管理员登录窗口</font></legend>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="10%"><font size="2"> </font></td>
<td width="20%"><font size="2">用 户 名:</font></td>
<td><input name="uid" type="text" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1;width=200px;height=20px" onFocus="this.select(); " onmouseover="this.style.background='#EAEAEA';" onmouseout="this.style.background='#FFFFFF'">
</td>
</tr>
<tr>
<td width="10%"><font size="2"> </font></td>
<td width="20%"><font size="2">密 码:</font></td>
<td><input name="pwd" type="password" style="border-style:solid;border-width:1;padding-left:4;padding-right:4;padding-top:1;padding-bottom:1;width=200px;height=20px" onFocus="this.select(); " onmouseover="this.style.background='#EAEAEA';" onmouseout="this.style.background='#FFFFFF'">
</td>
</tr>
<tr>
<td align="center"> </td>
<td><font size="2">验 证 码:</font></td>
<td><input alt="请根据右边的图片填写验证码" maxlength=4 size=4 name="yzm">
<font color="#000000" size="2">请在左边输入</font><%
a=int(yzm/1000)
b=int((yzm-a*1000)/100)
c=int((yzm-a*1000-b*100)/10)
d=int(yzm-a*1000-b*100-c*10)
response.write "<img align=top height=15 border=0 src=yzm/"&yzm_skin&"/"&a&".gif><img align=top height=15 border=0 src=yzm/"&yzm_skin&"/"&b&".gif><img align=top height=15 border=0 src=yzm/"&yzm_skin&"/"&c&".gif><img align=top height=15 border=0 src=yzm/"&yzm_skin&"/"&d&".gif>"
%>
</td>
</tr>
<tr>
<td colspan="2" align="center"> </td>
<td> <input name="submit1" type="button" onClick="check(<%=yzm%>)" value=" 登 录 ">
<input type="reset" name="submit2" value=" 重 置 " class="input"></td>
</tr>
</table>
</fieldset></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -