index.asp
来自「工资管理系统功能齐全包括工人工资信息查询.」· ASP 代码 · 共 90 行
ASP
90 行
<html>
<head>
<title>工资管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="home.css" rel="stylesheet" type="text/css">
<script language=javascript>
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 ClearForm()
{
document.Login.UserName.value = "";
document.Login.PassWord.value = "";
}
function setfocus()
{
document.Login.UserName.focus();
}
</script>
</head>
<body topmargin="0" onLoad="setfocus()">
<table width="100%" height="100%" border="0" style="border-collapse:collapse"align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<%if Session("MM_UserName")="" then %>
<table width="250" border="1" style="border-collapse:collapse"cellpadding="0" cellspacing="2" bgcolor="#9BA6F0">
<tr>
<td>
<table width="100%" align="center" cellpadding="5" cellspacing="0">
<form name="Login" onSubmit="return CheckForm()" action="Login.asp" method="Post">
<tr>
<td height="40" align=center bgcolor="#E6E6F7">
<table width="100%" height="100%" border="1" style="border-collapse:collapse"cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#3366CC" class="LoginTitle">用户登录</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="60" align=center bgcolor="#E6E6F7">
<span class="content">用户名:</span>
<input name="UserName" size="12" ><br>
<span class="content">密 码:</span>
<input type=password size="12" name="PassWord">
</td>
</tr>
<tr align=center>
<td height="40" bgcolor="#E6E6F7">
<input name="submit" type="image" src="images/buttonlogin.gif" width="52" height="18">
<a href='javascript:ClearForm()'>
<img src="images/buttonclear.gif" alt="清除" name="clear" width="52" height="18" border="0" style="border-collapse:collapse"></a>
</td>
</tr></form>
</table>
</td>
</tr>
</table>
<%else%>
<%
Response.Redirect("InfoManage.asp")
%>
</td>
</tr>
<tr align="center">
<td height="30" colspan="2"><a href="Logout.asp">【注销登录】</a></td>
</tr>
</table>
<%end if%>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?