?? fichfilm.jsp
字號:
<%@page contentType="text/html;charset=ISO-8859-15" pageEncoding="ISO-8859-1"%>
<%@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(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())+"&size=120x160&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 ) {
hppc.topCommandAppend( "<table cellpadding=0 cellspacing=0><tr><td width=200>Bande Annonce </td>" ) ;
if( wmaurl != null ) {
hppc.topCommandAppend( "<td width=80><a href=\""+player+"?FURL="+WebUtil.urlEncode(wmaurl)+"&Title="+WebUtil.urlEncode(film.getTitle())+"\">"+hppc.getSymbol2("T")+"<img border=0 src=\"/images/playwmv.gif\"></a></td>" ) ;
} else {
hppc.topCommandAppend( "<td width=80> </td>" ) ;
}
if( mpegurl != null ) {
hppc.topCommandAppend( "<td width=80><a href=\""+player+"?FURL="+WebUtil.urlEncode(mpegurl)+"&Title="+WebUtil.urlEncode(film.getTitle())+"\" focused>"+hppc.getSymbol2("T")+"<img border=0 src=\"/images/plaympeghq.gif\"></a></td>" ) ;
} else {
hppc.topCommandAppend( "<td width=80> </td>") ;
}
hppc.topCommandAppend( "<td> </td></tr></table>" );
}
hppc.setTopCommandHeigth( 28 ) ;
hppc.setFocusSetOnPage(true) ;
%>
<jsp:include page="<%= hppc.getSkin().getHeader() %>"/>
<table cellpadding=1 cellspacing=1 width=406>
<tr><td>
<table cellpadding=0 cellspacing=0 ><tr>
<td width="10"><img width="1" height="1" src="/images/blanck.gif"></td>
<td width="<%=(width) %>" align=center valign=center bgcolor="#FFFFFFFF"><img width="<%= width %>" height="<%= height %>" src="<%=imgUrl%>"></td>
<td width="10"><img width="1" height="1" src="/images/blanck.gif"></td>
<td valign=top>
Titre : <%=film.getTitle()%><BR>
<BR>
Réalisé par : <small><%=film.getDirector()%></small><BR>
<BR>
Avec : <small><%=film.getCasting()%></small>
</td>
</tr></table>
</td></tr>
<tr>
<td>
Résumé : <small><%=synopsis%></small>
</td>
</tr>
</table>
<jsp:include page="<%= hppc.getSkin().getFooter() %>"/>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -