84 lines
2.2 KiB
Plaintext
84 lines
2.2 KiB
Plaintext
|
<%--
|
||
|
Copyright (c) 2000, 2004 IBM Corporation and others.
|
||
|
All rights reserved. This program and the accompanying materials
|
||
|
are made available under the terms of the Common Public License v1.0
|
||
|
which accompanies this distribution, and is available at
|
||
|
http://www.eclipse.org/legal/cpl-v10.html
|
||
|
|
||
|
Contributors:
|
||
|
IBM Corporation - initial API and implementation
|
||
|
IBM Help modification :
|
||
|
2004/9/23 - Updated by Sun Li Jun for HPSYS00000122
|
||
|
--%>
|
||
|
<%@ include file="header.jsp"%>
|
||
|
<%
|
||
|
TocData data = new TocData(application,request, response);
|
||
|
WebappPreferences prefs = data.getPrefs();
|
||
|
%>
|
||
|
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
|
||
|
<title><%=ServletResources.getString("Content", request)%></title>
|
||
|
|
||
|
<base target="ContentViewFrame">
|
||
|
</head>
|
||
|
|
||
|
|
||
|
<body dir="<%=direction%>" bgcolor="<%=prefs.getBasicViewBackground()%>">
|
||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||
|
<%
|
||
|
for (int toc=0; toc<data.getTocCount(); toc++) {
|
||
|
boolean isSelected =data.getSelectedToc() != -1 &&
|
||
|
data.getTocHref(data.getSelectedToc()).equals(data.getTocHref(toc));
|
||
|
//if(!data.isEnabled(toc) && !isSelected){
|
||
|
// do not show
|
||
|
// continue;
|
||
|
//}
|
||
|
String icon = isSelected ?
|
||
|
prefs.getImagesDirectory()+"/toc_open.gif" :
|
||
|
prefs.getImagesDirectory()+"/toc_closed.gif";
|
||
|
String alt = isSelected ?
|
||
|
ServletResources.getString("bookOpen", request) :
|
||
|
ServletResources.getString("bookClosed", request) ;
|
||
|
%>
|
||
|
<tr>
|
||
|
<td align='<%=isRTL?"right":"left"%>' nowrap>
|
||
|
<%
|
||
|
if(isSelected){
|
||
|
%>
|
||
|
<!--HPSYS00000122-->
|
||
|
<b><img src="<%=icon%>" alt="<%=alt%>"><a href="<%=data.getTocDescriptionTopic(toc)%>" target="ContentViewFrame"> <%=data.getTocLabel(toc)%></a></b>
|
||
|
<%
|
||
|
}else{
|
||
|
%>
|
||
|
<b><img src="<%=icon%>" alt="<%=alt%>"><a href="<%="tocView.jsp?toc="+data.getTocHref(toc)%>" target='_self'> <%=data.getTocLabel(toc)%></a></b>
|
||
|
<%
|
||
|
}
|
||
|
%>
|
||
|
<!--end HPSYS00000122-->
|
||
|
</td>
|
||
|
</tr>
|
||
|
<%
|
||
|
// Only generate the selected toc
|
||
|
if (isSelected) {
|
||
|
%>
|
||
|
<tr>
|
||
|
<td align='<%=isRTL?"right":"left"%>' nowrap>
|
||
|
<ul>
|
||
|
<%
|
||
|
data.generateBasicToc(toc, out);
|
||
|
%>
|
||
|
</ul>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<%
|
||
|
}
|
||
|
}
|
||
|
%>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|
||
|
|