📄 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="java.io.File"%>
<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="3"/>
</jsp:useBean>
<%
String media = WebUtil.getParam(request, "Media", "");
if( MultiMediaManager.shareInstance().getMediaManagerFor(Film.nomType)!=MediaManager.getCurrentMediaManager() ) {
MediaManager.setCurrentMediaManager(MultiMediaManager.shareInstance().getMediaManagerFor(Film.nomType)) ;
}
Film film = (Film)MediaManager.getCurrentMediaManager().getMediaItem(GUIDGenerator.makeGUID(media));
if( film == null ) {
film = new Film() ;
if( media.equals("") == false ) {
film.setPath(media) ;
film.setTitle(IOUtil.getFileName(new File(media).getName()));
film.setGenre(new File(media).getParentFile().getName());
}
}
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 headerTitle = film.getDisplayTitle() ;
hppc.setHeaderTitle(headerTitle.length()>30?(headerTitle.substring(0,30)+"..."):headerTitle);
String synopsis = film.getSynopsis().length()>500?(film.getSynopsis().substring(0,500)+"..."):film.getSynopsis() ;
String player = "play.jsp";
((FilmManager)MediaManager.getCurrentMediaManager()).readFilmBA(film);
String mpegurl = BACineImpl.getVideoUrl( "", film.getBAID() ) ;
hppc.topCommandAppend( "<table cellpadding=0 cellspacing=0><tr>>" ) ;
hppc.topCommandAppend( "<td width=80><a href=\""+player+"?MediaType="+Film.nomType+"&Media="+WebUtil.urlEncode(media)+"\" focused>"+hppc.getSymbol("T")+" Voir</a></td>" ) ;
hppc.topCommandAppend( "<td> </td>" ) ;
if( mpegurl != null ) {
hppc.topCommandAppend( "<td width=150><a href=\""+player+"?MediaType="+WEBVideoStream.nomType+"&Media="+WebUtil.urlEncode(mpegurl)+"&Title="+WebUtil.urlEncode(film.getTitle())+"\">"+hppc.getSymbol("T")+"Bande Annonce</a></td>" ) ;
}
hppc.topCommandAppend("</tr></table>" );
hppc.setTopCommandHeigth( 28 ) ;
%>
<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 + -