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 / basic / searchView.jsp < prev    next >
Encoding:
Text File  |  2005-09-29  |  2.3 KB  |  105 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.     SearchData data = new SearchData(application, request, response);
  14.     WebappPreferences prefs = data.getPrefs();
  15.     LayoutData ldata = new LayoutData(application,request, response);
  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. <%
  25. if (data.isProgressRequest()) {
  26. %>
  27.  <meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=<%="searchView.jsp?"+request.getQueryString()%>">
  28. <%
  29. }
  30. %>
  31.  
  32. <title><%=ServletResources.getString("SearchResults", request)%></title>
  33. <base target="ContentViewFrame">
  34. </head>
  35.  
  36. <body dir="<%=direction%>" bgcolor="<%=prefs.getBasicViewBackground()%>">
  37. <%
  38. if (data.isProgressRequest()) {
  39. %>
  40. <table border="0" cellpadding="0" cellspacing="0">
  41.     <tr>
  42.         <td>
  43.             <%=ServletResources.getString("Indexing", request)%>
  44.         </td>
  45.     </tr>
  46.     <tr>
  47.         <td>
  48.             <%=data.getIndexedPercentage()%>% <%=ServletResources.getString("complete", request)%>
  49.         </td>
  50.     </tr>
  51.     <tr>
  52.         <td>
  53.             <br>
  54.             <%=ServletResources.getString("IndexingPleaseWait", request)%>
  55.         </td>
  56.     </tr>
  57. </table>
  58. </body>
  59. </html>
  60.  
  61. <%
  62.     return;
  63. } else {
  64. %>
  65.     <%@ include file="advanced.inc"%>
  66. <%
  67.      if (data.isSearchRequest()) {
  68.         if (data.getResultsCount() == 0){
  69.             out.write(ServletResources.getString("Nothing_found", request));
  70.         } else {    
  71. %>
  72.  
  73. <table border="0" cellpadding="0" cellspacing="0">
  74. <%
  75.             //boolean disabledSearchResults = false;
  76.             for (int topic = 0; topic < data.getResultsCount(); topic++){
  77.             //    if(!data.isEnabled(topic)){
  78.             //        continue;
  79.             //    }
  80. %>
  81. <tr>
  82.     <td align='<%=isRTL?"left":"right"%>'><%=data.getTopicScore(topic)%></td>
  83.     <td align='<%=isRTL?"right":"left"%>' nowrap>
  84.          
  85.         <a <%=("a"+topic).equals(data.getSelectedTopicId())?" name=\"selectedItem\" ":""%>
  86.             href='<%=data.getTopicHref(topic)%>' 
  87.             title="<%=data.getTopicTocLabel(topic)%>">
  88.             <%=data.getTopicLabel(topic)%>
  89.         </a>
  90.     </td>
  91. </tr>
  92. <%
  93.             }
  94. %>    
  95. </table>
  96. <%
  97.            }
  98.     }
  99. }
  100.  
  101. %>
  102. </body>
  103. </html>
  104.  
  105.