menu.jspf revision b3ead6812ab6558fee305853599021bd6901d90a
248N/A<%--
248N/ACDDL HEADER START
248N/A
248N/AThe contents of this file are subject to the terms of the
248N/ACommon Development and Distribution License (the "License").
248N/AYou may not use this file except in compliance with the License.
248N/A
248N/ASee LICENSE.txt included in this distribution for the specific
248N/Alanguage governing permissions and limitations under the License.
248N/A
248N/AWhen distributing Covered Code, include this CDDL HEADER in each
248N/Afile and include the License file at LICENSE.txt.
248N/AIf applicable, add the following below this CDDL HEADER, with the
248N/Afields enclosed by brackets "[]" replaced with your own identifying
248N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
248N/A
248N/ACDDL HEADER END
248N/A
248N/ACopyright 2007 Sun Microsystems, Inc. All rights reserved.
248N/AUse is subject to license terms.
248N/A
248N/A--%><%@ page import="org.opensolaris.opengrok.configuration.Project,
3996N/Aorg.opensolaris.opengrok.web.Util,java.util.Iterator"%>
248N/A<table cellpadding="0" cellspacing="0" border="0" width="100%">
248N/A <tr>
814N/A <td valign="top"><br /> &nbsp;</td>
814N/A <td align="left" valign="middle">
2238N/A <br/><form action="search" name="sbox">
814N/A <table cellpadding="2" border="0" cellspacing="0">
248N/A <tr><td align="right"> Full&nbsp;Search </td><td><input class="q" name="q" size="45" style="width: 300px" value="<%=Util.formQuoteEscape(q)%>"/></td>
248N/A <% if (hasProjects) { %>
248N/A <td rowspan="5" style="border-left:gray;border-left-width:thin;border-left-color:gray">
248N/A <!--<td align="right" valign="top"> -->
248N/A <table border="0">
248N/A <tbody>
248N/A <tr>
844N/A <td nowrap>in project: &nbsp; <input type="checkbox" id="ALL" name="ALL" onchange="javascript:selectAllProjects();" /> all</td>
844N/A </tr>
248N/A <tr><td>
1273N/A <select class="q" id="project" name="project" multiple="multiple" size="<%=Math.min(6, env.getProjects().size())%>" onchange="javascript:alltoggle();" style="width: 300px">
248N/A <%
3661N/A for (Project p : env.getProjects()) {
3661N/A //TODO below "selected" has no effect if one refreshes the page with F5
3996N/A %><option value="<%=Util.formQuoteEscape(p.getPath())%>"<%
3996N/A if (project != null) {
3996N/A String projectPath = p.getPath();
248N/A for (Iterator it = project.iterator(); it.hasNext();) {
248N/A if (it.next().equals(projectPath)) {
248N/A %> selected<%
248N/A }
248N/A }
248N/A }
690N/A %>><%=Util.formQuoteEscape(p.getDescription())%></option>
248N/A <%
248N/A }
690N/A %></select><br/><span style="font-size:xx-small" >(use Shift or Ctrl + Click to select more)</span></td>
248N/A </tr>
248N/A </tbody>
248N/A </table></td><%
248N/A }%>
248N/A </tr>
248N/A <tr><td align="right"> Definition </td><td><input class="q" name="defs" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(defs)%>"/></td></tr>
248N/A <tr><td align="right"> Symbol </td><td><input class="q" name="refs" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(refs)%>"/></td></tr>
248N/A <tr><td align="right"> File&nbsp;Path </td><td><input class="q" name="path" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(path)%>"/></td></tr>
248N/A <tr><td align="right"> History </td><td><input class="q" name="hist" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(hist)%>"/></td></tr>
248N/A <tr><td></td><td colspan="0" align="center"> &nbsp; <input class="submit" type="submit" value="Search"/> |
248N/A <input class="submit" onClick="document.sbox.q.value='';document.sbox.defs.value='';document.sbox.refs.value='';document.sbox.path.value='';document.sbox.hist.value='';" type="button" value=" Clear "/>
248N/A | <a href="help.jsp">Help</a></td></tr>
248N/A </table>
248N/A </form>
248N/A </td>
248N/A <td valign="top" align="right"></td></tr>
248N/A</table>
2490N/A