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

📄 vodsearch.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="UTF-8"%><%@page import="org.homeplayer.data.*"%><%@page import="org.homeplayer.util.*"%>
<%@page import="org.homeplayer.util.vod.VODModule"%>
<%@page import="org.homeplayer.util.vod.VODManager"%>
<%@page import="org.homeplayer.util.vod.VODSection"%>
<%@page import="org.homeplayer.util.vod.VODPlaylist"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request">	<jsp:setProperty name="hppc" property="request" 		value="<%=request%>"/></jsp:useBean><%String vod = request.getParameter("MODULE") ;
String sect = WebUtil.getParam(request,"SECTION","") ;
String playl = WebUtil.getParam(request,"PLAYLIST","") ;

VODModule module = VODManager.shareInstance().getModule(vod) ;
VODSection section = module.getSection(sect) ;
VODPlaylist playlist = section.getPlaylist(playl) ;
String background = module.getBackground(hppc, module.getBgImage(section, playlist)) ;
hppc.setFocusSetOnPage(true );
String text = WebUtil.getParam(request, "TEXT", "");
String current = WebUtil.getParam(request, "ADD", null); ;
if( current != null ) {
    if( current.equals( "SUPPR" ) ) {
        text = text.length()>0 ? text.substring(0, text.length()-1 ) : "" ;
    } else if( current.equals( "ESPACE" ) ) {
        text += " " ;
    } else if( current.equals( "ENTER" ) ) {
        text += "\n" ;
    } else {
        text += current ;
    }
} else {
	current = "" ;
}
%>
<html>
<head>
<jsp:include page="/WEB-INF/jsp/head.jsp" />
</head>
<body background="<%=background %>" text="<%= module.getTextColor(section,playlist)%>" link="<%= module.getTextColor(section,playlist)%>" alink="#FF0000FF">
   <TABLE align="center" width=560>
   <tr>
   		<td height=100><img height=100 width=1></td>
   </tr>
   <tr><td width=560 height=30 valign="center">
			Saisir le texte grâce à la télécommande ou grâce au clavier virtuel.
	</td></tr>
	<tr><td>
		<form action="vodplaylist.jsp">
		<input type=hidden name=MODULE value="<%=vod %>">
		<input type=hidden name=SECTION value="<%=sect %>">
		<input type=hidden name=PLAYLIST value="<%=playl %>">
		<TABLE width=560>
	   	<tr>
	   		<td><table><tr>
	   		<td><input type="text" name="PATTERN" charset="alpha" size="40" value="<%=text %>" <%=current.equals("")?"focused":""%> /></td>
	   <%if( !hppc.isFreeBox() ) { %>
	   		<td><input type=submit value="Rechercher" /></td>
	   <%} %>
	   		</tr></td></table></td>
	   	</tr>
	   	<tr><td>'OK' pour lancer la recherche</td></tr>
		</TABLE>
		</form>
	</td></tr>
<%

String[] chars = new String[] {
"a","z","e","r","t","y","u","i","o","p",
"q","s","d","f","g","h","j","k","l","m",
"w","x","c","v","b","n",",",".","?","@",
"0","1","2","3","4","5","6","7","8","9",
"-",":","/","!", "SUPPR", "ESPACE" } ;

int cols = 10 ;
int rows = chars.length/cols+1 ;
String targetUrl = "vodsearch.jsp?MODULE="+WebUtil.urlEncode(vod)+"&SECTION="+WebUtil.urlEncode(sect)+"&PLAYLIST="+WebUtil.urlEncode(playl)+"&" ;
%>
<tr><td width=560 align="center">
	<table cellspacing=0 cellpadding=0>
<% for( int r=0 ; r<rows ; r++ ) {
    %><tr><%
    for( int c=0 ; c<cols&&(r*cols+c)<chars.length ; c++ ) {
        int index = r*cols+c ;
        String t = index<chars.length ? chars[index] : "&nbsp;" ;
        String colspan= t.length()==1?"":"colspan=3";
        int width = t.length()==1?30:90;
        %><td height=30 width=30 <%=colspan %>><%
        	String hrefurl = targetUrl+"TEXT="+WebUtil.urlEncode(text)+"&ADD="+t;
        	String focused = t.equals(current) ? "focused":"" ;%>
            <a href="<%=hrefurl%>" <%=focused%>><table border=1 bordercolor="#FFFFFFFF" bgcolor="#12034DFF" cellpadding=1 cellspacing=0 abgcolor="#FF0000FF"><tr><td height=30 width=<%=width %> valign=center align=center><font color="#FFFFFFFF"><%=t%></font></td></tr></table></a></td>
    <%}%>
    </tr>
 <%}%>
</table>
</td></tr>
<tr><td height="50">&nbsp;
</td></tr>
<tr><td width="560">
<jsp:include page="vodbottompage.jsp" />
</td></tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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