📄 login.asp
字号:
<html>
<head>
<title>管理员登陆</title>
<script language="JavaScript">
<!--
if (self != top) top.location.href = window.location.href
//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<%
Dim num1,rndnum
Randomize
Do While Len(rndnum)<4
num1=CStr(Chr((57-48)*rnd+48))
rndnum=rndnum&num1
Loop
session("verifycode")=rndnum
%>
<div align="center">
<TABLE align=center bgColor=#DEDFDE cellpadding="4" cellspacing="0" border=0 style="border: outset 2px;width:60%;">
<TR>
<TD height=21 align="center" style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#003399', endColorStr='#AEC0EC', gradientType='1')"><b><font color=#FFFFFF>管理中心登陆----Administer
Login</FONT></b></td>
</tr>
<TR>
<td width="100%">
<center>
<table cellspacing="0" cellpadding="0" width="558" border="0" style="border-collapse: collapse" bordercolor="#111111" height="237">
<tbody>
<tr>
<td valign="top" width="100%" height="104">
<form name="admininfo" method="post" action="chkadmin.asp" >
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="29">
<table width="245" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td width="52"> <div align="left">管理员:</div></td>
<td width="91"> <div align="left">
<input name="admin" type="text" id="admin2" size="12" style="BORDER-RIGHT: #ffffff 0px groove; BORDER-TOP: #ffffff 0px groove; BORDER-LEFT: #ffffff 0px groove; COLOR: #333333; BORDER-BOTTOM: #3333331px groove; HEIGHT: 18px; BACKGROUND-COLOR: #DEDFDE";>
</div></td>
</tr>
<tr>
<td width="52"> <div align="left">密 码:</div></td>
<td width="91"> <div align="left">
<input name="password" type="password" id="password" size="12" style="BORDER-RIGHT: #ffffff 0px groove; BORDER-TOP: #ffffff 0px groove; BORDER-LEFT: #ffffff 0px groove; COLOR: #333333; BORDER-BOTTOM: #3333331px groove; HEIGHT: 18px; BACKGROUND-COLOR: #DEDFDE";>
</div></td>
</tr>
<tr>
<td align=center class="forumRowHighlight">附加码:</td>
<td class=forumRow><input name="verifycode" maxlength="20" size="12" class="tableBorder" style="BORDER-RIGHT: #ffffff 0px groove; BORDER-TOP: #ffffff 0px groove; BORDER-LEFT: #ffffff 0px groove; COLOR: #333333; BORDER-BOTTOM: #3333331px groove; HEIGHT: 18px; BACKGROUND-COLOR: #DEDFDE";>
请输入:<b><font color=RED><%=session("verifycode")%></font></b></td>
<br>
<br>
<br>
</tr>
<tr>
<td height="50" colspan="2">
<input onClick="return check();" type="image" border="0" name="submit" src="../images/xx.gif" width="54" height="18">
<a href="login.asp"><img src="../images/qc.gif" width="54" height="18" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</td>
</tr>
<tr>
<td valign="top" width="360" height="36">
<p align="center">
</td>
</tr>
<tr>
<td valign="top" width="360" height="10"> </td>
</tr>
</tbody>
</table>
</center>
</td>
</tr>
</table>
</div>
</body>
</html>
<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
function check()
{
if(checkspace(document.admininfo.admin.value)) {
document.admininfo.admin.focus();
alert("管理员不能为空!");
return false;
}
if(checkspace(document.admininfo.password.value)) {
document.admininfo.password.focus();
alert("密码不能为空!");
return false;
}
document.admininfo.submit();
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -