ibm-information-center/dist/eclipse/plugins/org.eclipse.help.webapp_3.0.1/basic/searchView.jsp

105 lines
2.4 KiB
Plaintext
Raw Normal View History

2024-04-02 14:02:31 +00:00
<%--
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
--%>
<%@ include file="header.jsp"%>
<%
SearchData data = new SearchData(application, request, response);
WebappPreferences prefs = data.getPrefs();
LayoutData ldata = new LayoutData(application,request, response);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<%
if (data.isProgressRequest()) {
%>
<meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=<%="searchView.jsp?"+request.getQueryString()%>">
<%
}
%>
<title><%=ServletResources.getString("SearchResults", request)%></title>
<base target="ContentViewFrame">
</head>
<body dir="<%=direction%>" bgcolor="<%=prefs.getBasicViewBackground()%>">
<%
if (data.isProgressRequest()) {
%>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=ServletResources.getString("Indexing", request)%>
</td>
</tr>
<tr>
<td>
<%=data.getIndexedPercentage()%>% <%=ServletResources.getString("complete", request)%>
</td>
</tr>
<tr>
<td>
<br>
<%=ServletResources.getString("IndexingPleaseWait", request)%>
</td>
</tr>
</table>
</body>
</html>
<%
return;
} else {
%>
<%@ include file="advanced.inc"%>
<%
if (data.isSearchRequest()) {
if (data.getResultsCount() == 0){
out.write(ServletResources.getString("Nothing_found", request));
} else {
%>
<table border="0" cellpadding="0" cellspacing="0">
<%
//boolean disabledSearchResults = false;
for (int topic = 0; topic < data.getResultsCount(); topic++){
// if(!data.isEnabled(topic)){
// continue;
// }
%>
<tr>
<td align='<%=isRTL?"left":"right"%>'><%=data.getTopicScore(topic)%></td>
<td align='<%=isRTL?"right":"left"%>' nowrap>
&nbsp;
<a <%=("a"+topic).equals(data.getSelectedTopicId())?" name=\"selectedItem\" ":""%>
href='<%=data.getTopicHref(topic)%>'
title="<%=data.getTopicTocLabel(topic)%>">
<%=data.getTopicLabel(topic)%>
</a>
</td>
</tr>
<%
}
%>
</table>
<%
}
}
}
%>
</body>
</html>