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

📄 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"/>
<html>
<%

String topColor   = "#D8E7EBFF" ;
String alinkColor = "#4B93A2FF" ;
String selectColor = "#2B7382FF" ;
String topIcon    = hppc.getSkin().getPath()+"/images/defaultico.gif" ;
String imageMenu  = hppc.getSkin().getPath()+"/images/defaultimg.gif" ;

if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("TV")!=-1 ) {
	topColor    = "#EFE4D1FF" ;
	alinkColor  = "#A57938FF" ;
	selectColor = "#855918FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/tvico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/tvimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("RADIO")!=-1 ) {
	topColor    = "#F6DED1FF" ;
	alinkColor  = "#B66D4AFF" ;
	selectColor = "#863D2AFF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/radioico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/radioimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("FreeNav")!=-1 ) {
	topColor    = "#E3E7E5FF" ;
	alinkColor  = "#748677FF" ;
	selectColor = "#546657FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/navico.gif" ;
	imageMenu   = "" ;
} else if( hppc.getServiceName()!=null && (hppc.getServiceName().indexOf("PRATIQUES")!=-1||hppc.getServiceName().indexOf("TRAFFIC")!=-1||hppc.getServiceName().indexOf("RSS")!=-1||hppc.getServiceName().indexOf("PODCAST")!=-1||hppc.getServiceName().indexOf("News")!=-1||hppc.getServiceName().indexOf("Meteo")!=-1 ) ) {
	topColor    = "#E3E7E5FF" ;
	alinkColor  = "#748677FF" ;
	selectColor = "#546657FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/pratiqueico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/pratiqueimg.gif" ;
	if( hppc.getServiceName().indexOf("News")!=-1||hppc.getServiceName().indexOf("RSS")!=-1||hppc.getServiceName().indexOf("PODCAST")!=-1||hppc.getServiceName().indexOf("Meteo")!=-1 ) {
		imageMenu = "" ;
	}
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("CLIP")!=-1 ) {
	topColor    = "#DAD8EFFF" ;
	alinkColor  = "#7F71A2FF" ;
	selectColor = "#5F5182FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/clipico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/clipimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("PHOTO")!=-1 ) {
	topColor    = "#D8E7EBFF" ;
	alinkColor  = "#4B93A2FF" ;
	selectColor = "#2B7382FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/photoico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/photoimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("Options")!=-1 ) {
	topColor    = "#D8E7EBFF" ;
	alinkColor  = "#4B93A2FF" ;
	selectColor = "#2B7382FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/optionsico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/optionsimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("FILM")!=-1 ) {
	topColor    = "#DAD8EFFF" ;
	alinkColor  = "#7F71A2FF" ;
	selectColor = "#5F5182FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/videoico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/videoimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("MUSIC")!=-1 ) {
	topColor    = "#DFE7F1FF" ;
	alinkColor  = "#6277A4FF" ;
	selectColor = "#425784FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/musicico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/musicimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("DVD")!=-1 ) {
	topColor    = "#DAD8EFFF" ;
	alinkColor  = "#7F71A2FF" ;
	selectColor = "#5F5182FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/dvdico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/dvdimg.gif" ;
} else if( hppc.getServiceName()!=null && hppc.getServiceName().indexOf("BACine")!=-1 ) {
	topColor    = "#DAD8EFFF" ;
	alinkColor  = "#7F71A2FF" ;
	selectColor = "#5F5182FF" ;
	topIcon     = hppc.getSkin().getPath()+"/images/bacineico.gif" ;
	imageMenu   = hppc.getSkin().getPath()+"/images/bacineimg.gif" ;
}
VLCControl vlc = VLCControl.shareInstance();
String state = vlc.getStreamState() ;
if( hppc.isFreeBox() && state.equals( VLCInfo.STATE_LOADING )==false && state.equals( VLCInfo.STATE_STOP )==false && state.equals( VLCInfo.STATE_UNKNOWN )==false ) {
	imageMenu = imageMenu.equals("") ? "" : "/images/blanck.gif" ;
	hppc.setBackground("ts://127.0.0.1?ox=55&oy=360&ow=200&oh=150");
} else{
	hppc.setBackground("ts://127.0.0.1?ox=55&oy=360&ow=1&oh=1");
}

hppc.getSkin().setProp( "bgSelectColor", selectColor ) ;
hppc.getSkin().setProp( "alink", alinkColor ) ;
hppc.getSkin().setProp( "headerColor", topColor ) ;
hppc.getSkin().setProp( "imageMenu", imageMenu ) ;
%>
<head>
<jsp:include page="/WEB-INF/jsp/head.jsp"/>
<% if (!hppc.isFreeBox()) {%>
<style type="text/css">
	body {
		background : black;
	}
	td {
	   font-family:Helvetica, sans-serif; 
	   font-size:12px; 
	}
	a {  
		FONT: 12px Helvetica, sans-serif; 
		text-decoration: none; 
		color:  #FFFFFF;
	}
	a:hover {  color: <%= hppc.color(hppc.getSkin().getProp("alink")) %>}
</style>
<% } %>
</head>
<body background="<%= hppc.getBackground() %>" text="<%= hppc.color("#FFFFFFFF")%>" link="<%= hppc.color("#FFFFFFFF")%>" alink="<%= hppc.color(hppc.getSkin().getProp("alink")) %>" vlink="<%= hppc.color(hppc.getSkin().getProp("vlink")) %>">
<jsp:include page="../default/exttoppage.jsp"/>
<%
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="5">&nbsp;</td></tr>
	<tr>
		<td>
		<table border="0" cellspacing="0" cellpadding="0">
			<tr height="50" width="615" bgcolor="<%= hppc.color(topColor) %>">
				<td>
					<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="5" height="50"><img width="1" height="1" src="/images/blanck.gif"></td>
						<td width="50" height="50"><img width="50" height="50" src="<%=topIcon %>"></td>
						<td width="5" height="50"><img width="1" height="1" src="/images/blanck.gif"></td>
						<td width="555"><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>
											<td align="center" bgcolor="<%= hppc.color(hppc.getSkin().getProp("headerColor")) %>" width="30">
												<% if (hppc.getFavorite() != null) { %><img width="16" height="16" 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 + -