⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toppage.jsp

📁 HomePlayer is an extention of the FreePlayer software provided by the french internet provider Free
💻 JSP
字号:
<%@page contentType="text/html;charset=ISO-8859-15"
	pageEncoding="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request" />
<%@page import="org.homeplayer.data.Photo"%>
<%@page import="org.homeplayer.data.MediaItem"%>
<html>
<head>
<jsp:include page="/WEB-INF/jsp/head.jsp" />
</head>
<%

String topColor   = "#FFFFFFFF" ;
String alinkColor = "#4B93A2FF" ;
String selectColor = "#2B7382FF" ;
String topIcon    = hppc.getSkin().getPath()+"/images/defaultico.gif" ;
String imageMenu  = "" ;
String background = "ts://127.0.0.1" ;
VLCControl vlc = VLCControl.shareInstance().getUnsynchronizedInstance() ;

hppc.getSkin().setProp("bodyColor","#00000000" ) ;
background = "/images/bg.mp2v?ox=0&oy=0&ow=720&oh=576" ;
if( HPSession.get("RELOADBG",false) == true ) {
	HPSession.set("RELOADBG",false) ;
} else {
	String state = vlc.getStreamState() ;
	if( state !=null && state.equals( VLCInfo.STATE_UNKNOWN )==false && state.equals( VLCInfo.STATE_STOP )==false && state.equals( VLCInfo.STATE_LOADING )==false ) {
		hppc.getSkin().setProp("bodyColor","#33333338" ) ;
		background = hppc.getBackground() ; ;
	}
}

hppc.getSkin().setProp( "bgSelectColor", selectColor ) ;
hppc.getSkin().setProp( "alink", alinkColor ) ;
hppc.getSkin().setProp( "headerColor", topColor ) ;
hppc.getSkin().setProp( "imageMenu", imageMenu ) ;


%>
<body background="<%=background %>" text="<%= hppc.color("#FFFFFFFF")%>"
	link="<%= hppc.color("#FFFFFFFF")%>"
	alink="<%= hppc.color(hppc.getSkin().getProp("alink")) %>"
	vlink="<%= hppc.color(hppc.getSkin().getProp("vlink")) %>">
<%
String headerTitle;
if (hppc.getHeaderTitle() == null) {
	headerTitle = "&nbsp;";
} else {
	String headerWithoutHtml = StringUtil.removeHTMLCode(hppc.getHeaderTitle());
	headerTitle = headerWithoutHtml.length()>55 ? (hppc.getHeaderTitle().substring(0,45)+"...") : hppc.getHeaderTitle() ;
}

%>
<center>
<table width="615" align="center" border="0" cellspacing="0"
	cellpadding="0">
	<tr>
		<td height="20"><img width="1" height="1"
			src="/images/blanck.gif"></td>
	</tr>
	<tr>
		<td>
		<table border="0" cellspacing="0" cellpadding="0">
			<tr height="30" width="615">
				<td>
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="185" height="30"><img width="1" height="1"
							src="/images/blanck.gif"></td>
						<td width="430"><font color="<%= hppc.color("#000000FF") %>"
							size="+1"> <%=hppc.getMenuTitle() %> - <%=headerTitle %></font></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" width="208">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<td valign="top"><jsp:include page="menu.jsp" /></td>
					</tr>
					<%if( imageMenu.equals("/images/blanck.gif") ) {%>
					<tr>
						<td valign=bottom align=center><a
							href="<%= HPSession.get("PLAY_URL", "/play.jsp") %>">
						<table border=2 bordercolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>">
							<tr>
								<td valign=bottom height=140 align=center><img
									src="<%=imageMenu %>"></td>
							</tr>
						</table>
						</a></td>
					</tr>
					<%} else if( imageMenu.equals("") == false ) {%>
					<tr>
						<td
							bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>"
							valign=bottom height=120 align=center><img
							src="<%=imageMenu %>"></td>
					</tr>
					<%} %>
				</table>
				</td>
				<td valign="top" width="2"
					bgcolor="<%= hppc.color(hppc.getSkin().getProp("headerColor")) %>"><img
					width="1" height="1" src="/images/blanck.gif"></td>
				<td height="404" width="405" valign="top">
				<table border="0" cellspacing="0" cellpadding="0" width="100%">
					<tr>
						<td>
						<table border="0" cellspacing="0" cellpadding="0" width="100%">
							<tr>
								<td bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>" width="15" valign="top">
								<table border="0" cellspacing="0" cellpadding="0" width="100%">
									<tr>
										<td height=25 bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>"><img width="1" height="1" src="/images/blanck.gif"></td>
									</tr>
									<tr>
										<td height=2 bgcolor="<%= hppc.color(hppc.getSkin().getProp("headerColor")) %>"><img width="1" height="1" src="/images/blanck.gif"></td>
									</tr>
								</table>
								</td>
								<td>
								<table border="0" cellspacing="0" cellpadding="0" width="100%">
									<%
	String topCommand = hppc.getTopCommand();
	int topHeight = 25;
	if (!topCommand.trim().equals("") || (hppc.getTopCommandPage() != null)) {
		topHeight = 25;
	}
%>
									<% if (topHeight > 0) { %>
									<tr
										bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>">
										<td height="25">
										<% if (hppc.getTopCommandPage() != null) { %><jsp:include
											page="<%=hppc.getTopCommandPage()%>" />
										<% } else { %><%= topCommand.equals("")?"&nbsp;":topCommand %>
										<% } %>
										</td>
									</tr>
									<% } %>
									<tr>
										<td height=2 bgcolor="<%= hppc.color(hppc.getSkin().getProp("headerColor")) %>"><img width="1" height="1" src="/images/blanck.gif"></td>
									</tr>

								</table>
								</td>
								<% if (hppc.getFavorite() != null) { %>
								<td align="center" bgcolor="<%= hppc.color(hppc.getSkin().getProp("headerColor")) %>" width="30">							
									<img src="<%=hppc.isFreeBoxHD()?"/images/favoritesV5.gif":"/images/favorites16.gif"%>">
								<%} %>
								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td height="2"
							bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>"><img
							width="1" height="1" src="/images/blanck.gif"></td>
					</tr>
					<%
	topHeight = Math.max(topHeight, hppc.getTopCommandHeigth());
	int bottomHeight = 0;
	if (!hppc.getBottomCommand().trim().equals("") || hppc.getPageCount() > 1) {
		bottomHeight = 24;
	}
	int pageHeight = 404 - topHeight - bottomHeight;
	request.setAttribute("bottomHeight", new Integer(bottomHeight));
%>
					<tr>
						<td height="<%= pageHeight %>" align="center" bgcolor="<%= hppc.color(hppc.getSkin().getProp("bodyColor")) %>" valign="top">

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -