📄 denglu.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel=stylesheet type=text/css href="./lib/bbs.css">
<title>欢迎光临网上书店</title>
<script language="javascript">
//判断用户信息是否填写完整
function docheck()
{
if(form1.UserName.value=="")
{
alert("请填写您的用户名!");
return false;
}
else if(form1.UserPassword.value=="")
{
alert("请填写您的密码!");
return false;
}
else
{
return true;
}
}
</script>
</head>
<body bgcolor="#F4FFFE">
<br>
<h1 align="center"><font color="#0000FF">欢迎光临网上书店</font></h1>
<div align="center">
<form action="user_login_check.jsp" name="form1" method="post" onSubmit="return docheck()">
<table width="80%" border="0">
<tr>
<td width="50%" align="right">用户名:</td>
<td width="50%" align="left"><input type="text" name="UserName" id="UserName">
</td>
</tr>
<tr>
<td width="50%" align="right" height="25" >密码:</td>
<td width="50%" align="left" height="25"><input type="password" name="UserPassword" id="UserPassword"></td>
</tr>
<tr>
<td width="50%" align="right" height="25" >用户类型:</td>
<td width="50%" align="left" height="25"> <input type="radio" value="0" name="SysRole" checked>普通用户
<input type="radio" value="1" name="SysRole">管理员
</td>
</tr>
<tr>
<td align="center" colspan="2" height="40"><input type="submit" name="sub" value="登录">
<input type="button" name="btn" value="注册" onClick="javascript:window.location='user_reg.jsp'">
<input type="button" name="btn1" value="忘记密码" onClick="javascript:window.location='get_userpassword_form.jsp'">
</td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -