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

📄 fichfilm.jsp

📁 HomePlayer is an extention of the FreePlayer software provided by the french internet provider Free
💻 JSP
字号:
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="org.homeplayer.data.*"%>
<%@page import="org.homeplayer.util.*"%>
<%@page import="org.homeplayer.web.*"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request">
	<jsp:setProperty name="hppc" property="request" 		value="<%=request%>"/>
	<jsp:setProperty name="hppc" property="navLevel" 		value="2"/>
	<jsp:setProperty name="hppc" property="serviceName" 	value="BACine"/>
	<jsp:setProperty name="hppc" property="menuInfo" 		value="Avec allocine.com et cinefil.com"/>
</jsp:useBean>
<%
hppc.addMenuItem(new HPMenuLink("Sorties Hebdo", "week.jsp", true));
hppc.addMenuItem(new HPMenuLink("D\u00e9j\u00e0 en Salle", "actually.jsp"));
String title = WebUtil.getParam(request, "TITLE", "");
hppc.setHeaderTitle(title);

String id = request.getParameter("IDFILM");
String idba = request.getParameter("IDBA");
	
Film film = new Film() ;
film.updateInfo("/film/fichefilm_gen_cfilm="+id+".html") ;

int width=0;
int height=0;
String imgUrl;
if ((film==null) || film.getAffiche().equals("")) {
	imgUrl = "/media/images/defaultaffiche.gif";
	width = 120;
	height = 160 ;
} else {
	width = 120;
	height = 160 ;
	imgUrl = "/img2fb?image="+WebUtil.urlEncode(film.getAffiche())+"&amp;size=120x160&amp;cache=true" ;
}

String synopsis = film.getSynopsis().length()>500?(film.getSynopsis().substring(0,500)+"..."):film.getSynopsis() ;

BACine cine = new BaCineWithCache(new BACineImpl());
String player = "play.jsp";

String wmaurl = null; //cine.getWmvUrl( id ) ;
String mpegurl = cine.getFLVUrl( id, idba==null?"":idba ) ;
if( wmaurl!=null||mpegurl!=null ) {
	if( wmaurl != null ) {
		hppc.topCommandAppend( "<li><a href=\""+player+"?FURL="+WebUtil.urlEncode(wmaurl)+"&Title="+WebUtil.urlEncode(film.getTitle())+"\" class=\"link-menu\">"+hppc.getSymbolWeb("T")+"Voir la Bande Annonce<img src=\"/images/novaweb/playwmv.gif\" alt=\"Jouer WMV\" class=\"img-fav\" /></a></li>" ) ;
	} 
	
	if( mpegurl != null ) {
		hppc.topCommandAppend( "<li><a href=\""+player+"?FURL="+WebUtil.urlEncode(mpegurl)+"&Title="+WebUtil.urlEncode(film.getTitle())+"\" class=\"link-menu\">"+hppc.getSymbolWeb("T")+"Voir la Bande Annonce<img src=\"/images/novaweb/plaympeghq.gif\" alt=\"Jouer Mpeg HQ\" class=\"img-fav\" /></a></li>" ) ;
	} 
}

%>
<jsp:include page="<%= hppc.getSkin().getHeader() %>"/>
<jsp:include page="../body.jsp"/>

<ul class="fav-list">
  <li><img src="<%=imgUrl%>" alt="Affiche de <%= film.getTitle()%>" class="img-ba" /></li>
  <li>Titre : <%=film.getTitle()%></li>
  <li>R&eacute;alis&eacute; par : <em><%=film.getDirector()%></em></li>
  <li>Avec : <em><%=film.getCasting()%></em></li>
  <li><p class="resume">R&eacute;sum&eacute; : <em><%=synopsis%></em></p></li>
</ul>
<jsp:include page="<%= hppc.getSkin().getFooter() %>"/>

⌨️ 快捷键说明

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