Project

General

Profile

1 4948 daigle
<%@ page    language="java" %>
2
<%
3
/*
4
*  '$RCSfile$'
5
*    Copyright: 2009 Regents of the University of California and the
6
*               National Center for Ecological Analysis and Synthesis
7
*
8
*   '$Author: daigle $'
9
*     '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $'
10
* '$Revision: 4080 $'
11
*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 2 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program; if not, write to the Free Software
24
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25
*/
26
%>
27
<%@ include file="settings.jsp"%>
28
29
<html>
30
    <head>
31
        <title>Sanparks TPC Report Search</title>
32
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks.css"/>
33
        <link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/sanparks-tpc.css"/>
34
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script>
35
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script>
36 5187 daigle
        <script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script>
37 5074 daigle
		<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script>
38
		<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script>
39
		<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script>
40 5082 daigle
		<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflowRun.js"></script>
41 4948 daigle
    </head>
42 5184 daigle
    <body class="main-section">
43
		<script type="text/javascript">
44
			window.onload=function() {
45
 				setWorkflowQueryFormField('tpcSearch');
46
 				submitFormIntoDiv('<%=SERVLET_URL%>', 'tpcSearch', 'workflow-search-results');
47
			}
48
		</script>
49 4948 daigle
50 5184 daigle
		<table class="page-section" cellpadding="0" cellspacing="0" border="0">
51 6735 tao
52 5184 daigle
			<tr>
53
				<td>
54
					<table class="center-content-section" cellpadding="0" cellspacing="0" border="0">
55
						<tr>
56 6735 tao
57 5184 daigle
							<td class="search-section">
58
								<table cellpadding="0" cellspacing="0" border="0">
59
     								<tr>
60
     									<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_nw.jpg" /></td>
61
     									<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_n.jpg" /></td>
62
     									<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_ne.jpg" /></td>
63
     								</tr>
64
     								<tr>
65 5187 daigle
     									<td class="search-box-w"><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_w.jpg" /></td>
66 5184 daigle
     									<td>
67
68
							        		<form name="tpcSearch" id="tpcSearch">
69
							        			<input name="query" id="query" type="hidden" />
70
												<input name="qformat" value="tpc-run-result" type="hidden" />
71
												<input name="action" value="squery" type="hidden" />
72
												<!-- input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow-run" type="hidden">
73
							           			<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden" -->
74 5074 daigle
<%
75 5311 daigle
												if (request.getParameter("workflowlsid") != null) {
76 5184 daigle
%>
77 5311 daigle
								         			<input name="workflow-lsid" id="sf-workflow-id1000" value="<%= request.getParameter("workflowlsid") %>" type="hidden">
78 5184 daigle
							           				<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="starts-with" type="hidden">
79 5074 daigle
<%
80 5184 daigle
												}
81
%>
82
												<div class="form-base-row" id="form-base-row">
83
													<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div>
84 5187 daigle
													<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector" onchange="addSearchDropdownBefore(this)">
85
														<option value="name">Name</option>
86
														<option value="keyword">Keyword</option>
87
														<option value="creator">Creator</option>
88
														<option value="description">Description</option>
89
														<option value="date-executed">Date Executed</option>
90 5311 daigle
														<option value="workflow-run-lsid">Workflow Run LSID</option>
91
														<option value="workflow-lsid">Workflow LSID</option>
92 5187 daigle
														<option value="status">Status</option>
93 5184 daigle
													</select>
94
95
							        				<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
96
							        			</div>
97
							        		</form>
98
										</td>
99
        								<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_e.jpg" /></td>
100
			        				</tr>
101
			        				<tr>
102
			     						<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_sw.jpg" /></td>
103
			     						<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_s.jpg" /></td>
104
			     						<td><img src="<%=STYLE_SKINS_URL%>/sanparks/images/search_box_se.jpg" /></td>
105
			     					</tr>
106
									<tr>
107
			     						<td></td>
108
			     						<td colspan="2">
109
											<div id="workflow-search-results"></div>
110
										</td>
111
			     					</tr>
112
     							</table>
113
			    			</td>
114
			    		</tr>
115
			     	</table>
116
			    </td>
117
			</tr>
118
		</table>
119 4948 daigle
    </body>
120
</html>