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

📄 favorites.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="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<%@page import="java.util.*"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request"/>
<%
FavoriteManager favman = FavoriteManager.getInstance();
List services = (List) request.getAttribute("PAGE_SERVICES"); // this att is set in computeFavoritesPaging.jsp
%>
<table width="100%" cellpadding=0 cellspacing=1 >
<%

int cpt = 0;
for (Iterator it = services.iterator(); it.hasNext();) {
	String serviceName = (String) it.next();
%>
     <% if( cpt % 2 == 0 ) { %><tr> <% } %>
      <td valign="top">
          <table width="90%" cellpadding=0 cellspacing=0 align="center">
              <tr>
                  <td width=32 valign=top>
                  	<img src="<%=MMPConfig.shareInstance().get( serviceName, "FavImage", "" )%>">
                  </td>
                  <td valign=center>
                      <table width="100%" cellpadding=0 cellspacing=2>
                      	<tr><td height=25><u><%= MMPConfig.shareInstance().get( serviceName, "Title", serviceName ) %></u></td></tr>
                      	
					<%
						for (Iterator it2 = favman.getFavorites(serviceName).iterator(); it2.hasNext();) {
							Favorite fav = (Favorite) it2.next();
							if( fav.getUrl() != null ) {
					%>   
			              <tr>
                              <td height=18><a href="<%= fav.getUrl() %>"><%= hppc.getSymbol("T") %><%= fav.getName() %></a></td>
                          </tr>
                     <%		}
						} %>
                      </table>
                  </td>
              </tr>
          </table>
      </td>
    <% if (!it.hasNext() && (cpt % 2 == 0)) { %><td>&nbsp;</td> <% } %>
	<% if (cpt % 2 == 1) { %></tr><% } %>
	<% cpt++; %>
<% } %>
<% if (cpt == 0) { %>
	<tr>
		<td>
			Vous trouverez ici vos favoris. <br>
			&nbsp;<br>
			Pour ajouter un favori, appuyez sur la touche&nbsp;<img width=16 height=16 src="<%=hppc.isFreeBoxHD()?"/images/favoritesV5.gif":"/images/favorites16.gif"%>">&nbsp;de votre t閘閏ommande sur les pages 
			marqu閑s du symbole <img width=16 height=16 src="<%=hppc.isFreeBoxHD()?"/images/favoritesV5.gif":"/images/favorites16.gif"%>">
		</td>
	</tr>
<% } %>			
</table>

⌨️ 快捷键说明

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