📄 login-1.asp
字号:
<% Response.Buffer=true %>
<%if (session("cuid")<>"") or (session("puid")<>"") then %>
<%if session("cuid")<>"" then
uname=session("cuid")
response.Redirect "danwei/main.asp"
end if
if session("puid")<>"" then
uname=session("puid")
response.Redirect "geren/main.asp"
end if
else%>
<html>
<head>
<title>用户登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>TABLE {
FONT-SIZE: 9pt; LINE-HEIGHT: 12pt
}
.bord {
BACKGROUND: #ffffff; BORDER-BOTTOM: rgb(238,238,238) 1px solid; BORDER-LEFT: rgb(128,128,128) 1px solid; BORDER-RIGHT: rgb(238,238,238) 1px solid; BORDER-TOP: rgb(128,128,128) 1px solid; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-WEIGHT: normal
}
</style>
<SCRIPT language=JavaScript>
<!--
function check()
{
if (login.uname.value=="")
alert("请输入用户名!");
else if (login.pwd.value=="")
alert("请输入登录密码!");
else
login.submit();
}
// --></SCRIPT>
<body bgcolor="#FFFFFF">
<p> </p>
<p> </p>
<table border="0" cellpadding="0" cellspacing="0" width="500" align="center">
<tr valign="top">
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="20">
<tr valign="top">
<td >
<table border="0" cellpadding="3" cellspacing="1" width="100%" bgcolor="#000000">
<tr>
<td colspan="6" align="right" bgcolor="#d5c88a" height="20">
<div align="center"><font color="#000000">-----用户登录-----</font>
</div>
</td>
</tr>
<form name=login action=login.asp method=post>
<tr>
<td width="57" align="right" bgcolor="#d5c88a">用户名:</td>
<td width="102" bgcolor="#FFFFFF">
<input type="text" name="uname" size="15" maxlength="20" style="font-family: 宋体; font-size: 9pt; background-color: #ffffff; color: #00006A">
</td>
<td width="53" bgcolor="#d5c88a">
<p align="right"> 密码:</p>
</td>
<td width="100" bgcolor="#FFFFFF">
<input type="password" name="pwd" maxlength="20" size="15" style="font-family: 宋体; font-size: 9pt; background-color: #ffffff; color: #00006A">
</td>
<td width="47" bgcolor="#d5c88a">
<p align="right"> 类别:</p>
</td>
<td width="71" bgcolor="#FFFFFF">
<select size="1" name="usertype">
<option value="geren">个人</option>
<option value="shangjia">单位</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="6" height="35">
<div align="center">
<input type="button" value="登 录" name="B1" style="position: relative; color: #00006A; font-family: 宋体; font-size: 9pt; height: 19; width: 48" onClick="check()">
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
<%end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -