home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.help.webapp_3.1.0 / advanced / linksView.jsp < prev    next >
Encoding:
Text File  |  2005-09-29  |  1.9 KB  |  83 lines

  1. <%--
  2.  Copyright (c) 2000, 2004 IBM Corporation and others.
  3.  All rights reserved. This program and the accompanying materials 
  4.  are made available under the terms of the Eclipse Public License v1.0
  5.  which accompanies this distribution, and is available at
  6.  http://www.eclipse.org/legal/epl-v10.html
  7.  
  8.  Contributors:
  9.      IBM Corporation - initial API and implementation
  10. --%>
  11. <%@ include file="header.jsp"%>
  12.  
  13. <%     
  14.     LinksData data = new LinksData(application, request, response);
  15.     WebappPreferences prefs = data.getPrefs();
  16. %>
  17.  
  18. <html>
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  21. <meta http-equiv="Pragma" content="no-cache">
  22. <meta http-equiv="Expires" content="-1">
  23.  
  24. <title><%=ServletResources.getString("Links", request)%></title>
  25.  
  26. <style type="text/css">
  27. <%@ include file="list.css"%>
  28. </style>
  29.  
  30. <base target="ContentViewFrame">
  31. <script language="JavaScript" src="list.js"></script>
  32.  
  33. </head>
  34.  
  35.  
  36. <body dir="<%=direction%>">
  37.  
  38. <%
  39. if(!data.isLinksRequest()) {
  40.     out.write(ServletResources.getString("pressF1", request));
  41. } else if (data.getLinksCount() == 0){
  42.     out.write(ServletResources.getString("Nothing_found", null));
  43. } else {
  44. %>
  45.  
  46. <table id='list'  cellspacing='0' >
  47.  
  48. <%
  49.     for (int topic = 0; topic < data.getLinksCount(); topic++) 
  50.     {
  51. %>
  52.  
  53. <tr class='list' id='r<%=topic%>'>
  54.     <td align='<%=isRTL?"right":"left"%>' class='label' nowrap>
  55.         <a id='a<%=topic%>' 
  56.            href='<%=data.getTopicHref(topic)%>' 
  57.            onmouseover="showStatus(event);return true;"
  58.            onmouseout="clearStatus();return true;"
  59.            onclick='parent.parent.parent.setContentToolbarTitle(this.title)'
  60.            title="<%=data.getTopicTocLabel(topic)%>">
  61.            <img src="<%=prefs.getImagesDirectory()%>/topic.gif" alt=""><%=data.getTopicLabel(topic)%></a>
  62.     </td>
  63. </tr>
  64.  
  65. <%
  66.     }
  67. %>
  68.  
  69. </table>
  70.  
  71. <%
  72.  
  73. }
  74.  
  75. %>
  76.  
  77. <script language="JavaScript">
  78.     selectTopicById('<%=data.getSelectedTopicId()%>');
  79. </script>
  80.  
  81. </body>
  82. </html>
  83.