📄 index.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>首页</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<script language=javascript>
function CheckForm()
{
if(document.booklogin.username.value == "")
{
alert("请输入用户名!");
document.booklogin.username.focus();
return false;
}
if(document.booklogin.userpwd.value == "")
{
alert("请输入密码!");
document.booklogin.userpwd.focus();
return false;
}
return true;
}
</script>
<script language=javascript>
function Check1()
{
if(document.book.username.value == "")
{
alert("请输入用户名!");
document.book.username.focus();
return false;
}
if(document.book.userpwd.value == "")
{
alert("请输入密码!");
document.book.userpwd.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<table width="750" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="375" height="750" align="center" valign="middle"><form name="booklogin" method="post" action="login.asp" onSubmit="return CheckForm();">
<label>管理帐号:
<input name="username" type="text" />
</label>
<p>
<label>管理密码:
<input name="userpwd" type="text" />
</label>
</p>
<p>
<label>
<input type="submit" name="" value="登录" />
</label>
<label>
<input type="reset" name="Submit2" value="取消" />
</label>
</p>
</form> </td>
<td width="375" align="center" valign="middle"><form name="book" method="post" action="login1.asp" onSubmit="return Check1();">
<p>用户名 :
<input type="text" name="username">
</p>
<p>用户密码:
<input type="text" name="userpwd">
</p>
<p>
<input name="Submit3" type="submit" value="登陆">
<input type="reset" name="Submit4" value="取消">
</p>
</form> </td>
</tr>
</table>
</body>
</html>
<%
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -