1 <%-- 2 CDDL HEADER START 3 4 The contents of this file are subject to the terms of the 5 Common Development and Distribution License (the "License"). 6 You may not use this file except in compliance with the License. 7 8 See LICENSE.txt included in this distribution for the specific 9 language governing permissions and limitations under the License. 10 11 When distributing Covered Code, include this CDDL HEADER in each 12 file and include the License file at LICENSE.txt. 13 If applicable, add the following below this CDDL HEADER, with the 14 fields enclosed by brackets "[]" replaced with your own identifying 15 information: Portions Copyright [yyyy] [name of copyright owner] 16 17 CDDL HEADER END 18 19 Copyright 2007 Sun Microsystems, Inc. All rights reserved. 20 Use is subject to license terms. 21 22 --%><%@ page import="org.opensolaris.opengrok.configuration.Project, 23 org.opensolaris.opengrok.web.Util"%> 24 <table cellpadding="0" cellspacing="0" border="0" width="100%"> 25 <tr> 26 <td valign="top"><br /> </td> 27 <td align="left" valign="middle"> 28 <br/><form action="search" name="sbox"> 29 <table cellpadding="2" border="0" cellspacing="0"> 30 <tr><td align="right"> Full Search </td><td><input class="q" name="q" size="45" style="width: 300px" value="<%=Util.formQuoteEscape(q)%>"/></td></tr> 31 <tr><td align="right"> Definition </td><td><input class="q" name="defs" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(defs)%>"/></td></tr> 32 <tr><td align="right"> Symbol </td><td><input class="q" name="refs" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(refs)%>"/></td></tr> 33 <tr><td align="right"> File Path </td><td><input class="q" name="path" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(path)%>"/></td></tr> 34 <tr><td align="right"> History </td><td><input class="q" name="hist" size="25" style="width: 300px" value="<%=Util.formQuoteEscape(hist)%>"/></td></tr> 35 <% if (hasProjects) { %> 36 <tr> 37 <td align="right" valign="top"> Project </td> 38 <td> 39 <select class="q" name="project" size="<%=Math.min(5, env.getProjects().size())%>" style="width: 300px"/> 40 <% 41 for (Project p : env.getProjects()) { 42 %><option value="<%=Util.formQuoteEscape(p.getPath())%>"<% 43 if (project != null) { 44 String projectPath = p.getPath(); 45 for (String proj : project.split(" ")) { 46 if (proj.equals(projectPath)) { 47 %> selected<% 48 break; 49 } 50 } 51 } 52 %>><%=Util.formQuoteEscape(p.getDescription())%></option> 53 <% 54 } 55 %></select></td></tr><% 56 }%> 57 <tr><td></td><td> <input class="submit" type="submit" value="Search"/> | 58 <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 "/> 59 | <a href="help.jsp">Help</a></td></tr> 60 </table> 61 </form> 62 </td> 63 <td valign="top" align="right"></td></tr> 64 </table> 65