📄 login.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" import="com.eline.vod.utils.*" %>
<%
String userName = request.getParameter("j_username");
String password = request.getParameter("j_password");
request.getUserPrincipal();
System.out.println("user{" + userName + "},passwd{" + password + "}");
if (userName != null && password != null) {
response.sendRedirect("j_security_check?j_username=" + userName + "&j_password=" + password);
return;
}
java.util.Enumeration keys = request.getAttributeNames();
while (keys.hasMoreElements()) {
Object key = keys.nextElement();
Object value = request.getAttribute((String) key);
System.out.println("LOGIN:Attributes["+key+"]=" + value);}
String forwardUri = (String) request.getAttribute("javax.servlet.forward.request_uri");
boolean windowed = false;
if (forwardUri != null) {
if (forwardUri.indexOf("/customer/movie_player.jsp") >= 0)
windowed = true;}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<link rel=stylesheet href="<%=request.getContextPath()%>/stylesheet/global.css" type="text/css" />
<title>96MOV电影门户 -- 用户登录</title>
</head>
<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0">
<%if (!windowed) { %>
<table cellSpacing="0" cellPadding="0" width="1000" align="center" border="0">
<tr>
<td>
<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<PARAM NAME="_cx" VALUE="26432">
<PARAM NAME="_cy" VALUE="2778">
<PARAM NAME="FlashVars" VALUE="">
<PARAM NAME="Movie" VALUE="<%= request.getContextPath() %>/flash/top.swf">
<PARAM NAME="Src" VALUE="<%= request.getContextPath() %>/flash/top.swf">
<PARAM NAME="WMode" VALUE="Window">
<PARAM NAME="Play" VALUE="-1">
<PARAM NAME="Loop" VALUE="-1">
<PARAM NAME="Quality" VALUE="High">
<PARAM NAME="SAlign" VALUE="">
<PARAM NAME="Menu" VALUE="-1">
<PARAM NAME="Base" VALUE="">
<PARAM NAME="AllowScriptAccess" VALUE="">
<PARAM NAME="Scale" VALUE="ShowAll">
<PARAM NAME="DeviceFont" VALUE="0">
<PARAM NAME="EmbedMovie" VALUE="0">
<PARAM NAME="BGColor" VALUE="">
<PARAM NAME="SWRemote" VALUE="">
<PARAM NAME="MovieData" VALUE="">
<PARAM NAME="SeamlessTabbing" VALUE="1">
<PARAM NAME="Profile" VALUE="0">
<PARAM NAME="ProfileAddress" VALUE="">
<PARAM NAME="ProfilePort" VALUE="0">
<embed src="<%= request.getContextPath() %>/flash/top.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="100%"> </embed>
</OBJECT>
</td>
</tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td height="10" align="center"><img src="<%= request.getContextPath() %>/images/04/reg_01_1.gif" /></td>
</tr>
</table>
<%} %>
<table cellSpacing="0" cellPadding="0" width="650" align="center" border="0">
<tr>
<td colspan="3" height="25"><img src="<%= request.getContextPath() %>/images/04/t1.gif"></td>
</tr>
<tr>
<td width="132" vAlign="top" bgColor="#fef977"><img src="<%= request.getContextPath() %>/images/04/t2.gif"></td>
<td width="505"><p align="center" style="FONT-SIZE: 9pt; COLOR: #a05000; FONT-FAMILY: SimSun"><b>用户登录</b></p>
<form method="POST" action="<%=response.encodeURL("j_security_check")%>">
<table align="center" width="400" height="115" border="0" cellpadding="0" cellspacing="0" background="<%= request.getContextPath() %>/images/04/login-bg.gif">
<tr>
<td width="120" height="115" rowspan="3"></td>
<td width="200" height="59" colspan="2">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td width="60">用户名:</td>
<td><input type=text name="j_username" maxLength="50" size="20"></td>
</tr>
<tr>
<td width="60">密码:</td>
<td><input type=password name="j_password" maxLength="50" size="20"></td>
</tr>
</table>
</td>
<td width="80"><input type="image" src="<%= request.getContextPath() %>/images/04/login.gif" width="61" height="46" /></td>
</tr>
<tr>
<td colspan="2"> </td>
<td width="80" rowspan="2"> </td>
</tr>
<tr>
<td><a href="<%=SiteUrls2.getInstance().getRegisterURL() %>" <%if (windowed){ %>target="_blank"<%} %>><img border="0" src="<%= request.getContextPath() %>/images/button-left_register.gif" width="86" height="21"></a></td>
<td><img src="<%= request.getContextPath() %>/images/button-left_getpwd.gif" width="86" height="21"></td>
</tr>
</table>
</form>
</td>
<td width="13" vAlign="top" bgColor="#e08161"><IMG src="<%= request.getContextPath() %>/images/04/t3.gif"></td>
</tr>
<tr>
<td height="27" colspan="3" valign="top" bgcolor="#ffffff"> </td>
</tr>
</table>
<%if (!windowed) { %>
<table cellSpacing="0" cellPadding="0" width="1000" border="0">
<tr>
<td height="10"> </td>
</tr>
<tr>
<td height="84"
background="<%= request.getContextPath() %>/images/bottom_copyright_bg.gif">
<div align="center">| 公司简介 | 客户服务 | 节目合作 | 精英加盟 | 联系我们 |<br>
<br>
版 权 所 有 2004-2008 北京亿联星空技术有限公司 <br>
</div>
</td>
</tr>
</table>
<%} else { %>
<table cellSpacing="0" cellPadding="0" width="650" align="center" border="0" height="40">
<tr>
<td align="center">版 权 所 有 2004-2008 96MOV电影网</td>
</tr>
</table>
<%} %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -