headertitle.jsp

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

JSP
31
字号
<%@page contentType="text/html;charset=ISO-8859-15" pageEncoding="ISO-8859-1"%>
<%@page import="org.homeplayer.util.*"%>
<jsp:useBean id="hppc" class="org.homeplayer.web.HPPageContext" scope="request"/>
<%
String headerTitle;
if (hppc.getHeaderTitle() == null) {
	headerTitle = "";
} else {
	String headerWithoutHtml = StringUtil.removeHTMLCode(hppc.getHeaderTitle());
	headerTitle = headerWithoutHtml.length()>55 ? (hppc.getHeaderTitle().substring(0,45)+"...") : hppc.getHeaderTitle() ;
}
%>
<table border=0 cellpadding=0 cellspacing=0>
    <tr>
        <td height=20 width=406 bgcolor="<%=hppc.color(hppc.getSkin().getProp("titlePageColor"))%>">
            <table border=0 cellpadding=0 cellspacing=0>
                <tr>
                    <td width=386 align=left>
                        <%= hppc.getSymbol("T") %><font color="<%= hppc.color(hppc.getSkin().getProp("text")) %>"><%=headerTitle%></font>  
                    </td>
<% if (hppc.getFavorite() != null) { %>
                    <td width=20 align=center><img width="16" height="16" src="/images/favorites16.gif"></td>
<% } %>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height=7 align=left><img src="<%= hppc.getSkin().getPath() %>/images/btitle.gif"></td>
    </tr>
</table>      

⌨️ 快捷键说明

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