menu.jspf revision 73189ea86c6fb0af01e16eaa5b0da3f2bb775c41
3df49c2877757d41e8b00adf697735837b8f6c07David HerrmannCDDL HEADER START
3df49c2877757d41e8b00adf697735837b8f6c07David HerrmannThe contents of this file are subject to the terms of the
3df49c2877757d41e8b00adf697735837b8f6c07David HerrmannCommon Development and Distribution License (the "License").
See LICENSE.txt included in this distribution for the specific
file and include the License file at LICENSE.txt.
Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.
--%><%@page import="org.opensolaris.opengrok.web.SearchHelper"%>
<%@page import="java.util.Map"%>
/* ---------------------- menu.jspf start --------------------- */
// PageConfig cfg = PageConfig.get(request);
List<Project> projects = cfg.getEnv().getProjects();
QueryBuilder queryParams = cfg.getQueryBuilder();
if (projects.size() != 0) {
String name = p.getDescription();
pMap.put(name, esc);
jsProjects.append('\'');
for (String name : cfg.getRequestedProjects()) {
jsProjects.append(name).append("','");
if (jsProjects.length() > 1) {
<script type="text/javascript">/* <![CDATA[ */
%>';document.domReady.push(function() { domReadyMenu(); });
<td><label for="s1" title="The text token(s) or other fields to be found (lucene query, this is not full text!)">Full Search</label></td>
<td><label for="s2" title="Definition of function/variable/class">Definition</label></td>
<td><label for="s3" title="Usage of function/variable/class">Symbol</label></td>
<td><label for="s4" title="path or parts of it, no need to use dividers">File Path</label></td>
String selection = queryParams.getType();
if (d.getKey().equals(selection)) {
if (projects.size() != 0) {
String imgDir = cfg.getCssDir() + "/img/";
imgDir %>transparent_pixel.gif)
value="<%= cfg.getRequestedProjectsAsString()
alt="" src="<%= imgDir %>button2.png"/>
if (projects.size() != 0) {
SortedSet<String> pRequested = cfg.getRequestedProjects();
for (Entry<String,String> e : pMap.entrySet()) {
<option value="<%= e.getValue() %>"<%
%>><%= e.getValue() %></option><%
/* ---------------------- menu.jspf end --------------------- */