fichfilm.jsp

来自「HomePlayer is an extention of the FreePl」· JSP 代码 · 共 82 行

JSP
82
字号
<%@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&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;</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>&nbsp;</td>") ;
	}
	hppc.topCommandAppend( "<td>&nbsp;</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>
        	&nbsp;<BR>
            R&eacute;alis&eacute; par : <small><%=film.getDirector()%></small><BR>
            &nbsp;<BR>
            Avec : <small><%=film.getCasting()%></small>
        </td>
        </tr></table>
    </td></tr>
    <tr>
        <td>
            R&eacute;sum&eacute; : <small><%=synopsis%></small>
        </td>
    </tr>
</table>
<jsp:include page="<%= hppc.getSkin().getFooter() %>"/>

⌨️ 快捷键说明

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