📄 login.jsp
字号:
<%@ page language="java" pageEncoding="GB18030"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!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" />
<title>美讯集团产品发布平台</title>
<LINK id=MainCss href="/Store/css/style.css" type="text/css"
rel=stylesheet>
<SCRIPT language=javascript src="/BookShop/css/Ajax_IndexLoad.js"
type=text/javascript charset=gb2312> </SCRIPT>
<script type="text/javascript">
function checkform(){
if(document.form1.uname.value.replace(/(^\s*)|(\s*$)/g, "")==""){
alert("用户姓名不能为空!");
document.form1.uname.focus();
return false;
}
if(document.form1.upsd.value.replace(/(^\s*)|(\s*$)/g, "")==""){
alert("用户密码不能为空!");
document.form1.upsd.focus();
return false;
}
document.form1.submit();
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="170" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" colspan="2" valign="bottom" bgcolor="#669999"
class="w-1" style="text-align: center;">
用户登录
</td>
</tr>
<tr>
<td height="100" colspan="2" bgcolor="#669999">
<c:choose>
<c:when test="${uname==null}">
<form name="form1" method="post" action="../UserServlet">
<br>
<table width="100%" border="0" align="center">
<tr>
<td height="20" class="w-1" >
帐号:
</td>
<td height="25">
<label>
<input name="uname" type="text" size="15" maxlength="20">
</label>
</td>
</tr>
<tr>
<td height="20" class="w-1">
密码:
</td>
<td height="25">
<input name="upsd" type="password" size="15" maxlength="20">
</td>
</tr>
<tr>
<td height="29" colspan="2" class="w-1">
<input type="hidden" name="action" value="login">
<a href="#"
style='cursor: hand; text-decoration: none; color: #FFFFFF'
onclick="checkform()"><font class="w-1">登录</font> </a>
<a href="./Regist.jsp"
style='cursor: hand;text-decoration : none; color: #FFFFFF'><font
class="w-1">新用户注册</font> </a>
</td>
</tr>
<c:if test="${uid!=null&&uid==0}">
<tr>
<td height="20" colspan="2" class="w-1" style="text-align: center;">
<c:out value="登录失败"></c:out>
</td>
</tr>
</c:if>
</table>
</form>
</c:when>
<c:otherwise>
<br>
<table width="100%" border="0" align="center">
<tr>
<td height="20" class="w-1">
<c:out value="${uname}"></c:out>
</td>
<td height="25">
<label>
</label>
</td>
</tr>
<tr>
<td height="20" class="w-1">
</td>
<td height="25" class="w-1">
欢迎您登录系统!
</td>
</tr>
<tr>
<td height="29" colspan="2" class="w-1">
<a href="../UserServlet?action=update"
style='cursor: hand; text-decoration: none; color: #FFFFFF'><font
class="w-1">更改您的信息</font> </a>
<a href="../UserServlet?action=exit"
style='cursor: hand ;text-decoration :none; color: #FFFFFF'><font
class="w-1">退出</font> </a>
</td>
</tr>
</table>
</c:otherwise>
</c:choose>
</td>
</tr>
<tr>
<td height="4" colspan="2" bgcolor="#669999"></td>
</tr>
<tr>
<td width="145" class="w-1" style="text-align: center;">
<img src="../pic/Ipic.jpg">
<a href="../GoodServlet" style="text-decoration: none; color: #FFFFFF"><font
class="w-1">美讯首页</font> </a>
</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#669999"></td>
</tr>
<tr>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#CCCCCC"></td>
</tr>
<tr>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#669999"></td>
</tr>
<tr>
<td height="179" colspan="2" valign="top" style="text-align: center;">
<p class="w-1">
<br>
客户咨询:
<br />
800-810-6666
<br />
或拨打:
<br />
86-10-88888888
</p>
<p class="w-1">
工作时间:
<br />
周一至周五8:30-17:00
</p>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<img src="../pic/L-XC.jpg" width="148" height="110" border="0" />
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -