1
|
<%@ 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="common-settings.jsp"%>
|
28
|
<%@ include file="configure-check.jsp"%>
|
29
|
|
30
|
<html>
|
31
|
<head>
|
32
|
<title>TPC Report Search Section</title>
|
33
|
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/simple-calendar-widgit.js"></script>
|
34
|
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script>
|
35
|
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script>
|
36
|
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflow.js"></script>
|
37
|
|
38
|
</head>
|
39
|
<body onload="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
|
40
|
<div class=content-section>
|
41
|
<div class="content-subsection search-section" id="search-section">
|
42
|
<form name="tpcSearch" id="tpcSearch">
|
43
|
<input name="query" id="query" type="hidden" />
|
44
|
<input name="qformat" value="tpc-run-result" type="hidden" />
|
45
|
<input name="action" value="squery" type="hidden" />
|
46
|
<input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow-run" type="hidden">
|
47
|
<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden">
|
48
|
<%
|
49
|
if (request.getParameter("workflowid") != null) {
|
50
|
%> <input name="workflow-id" id="sf-workflow-id1000" value="<%= request.getParameter("workflowid") %>" type="hidden">
|
51
|
<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="equals" type="hidden">
|
52
|
<%
|
53
|
}
|
54
|
%>
|
55
|
<div class="search-section-text">Search</div>
|
56
|
<div class="form-base-row" id="form-base-row">
|
57
|
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div>
|
58
|
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector">
|
59
|
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option>
|
60
|
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option>
|
61
|
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option>
|
62
|
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option>
|
63
|
<option values="date-executed" onclick="addSearchDropdownBefore('tpcSearch','Date Executed','date-executed','be|af','form-base-row')">Date Executed</option>
|
64
|
<option values="workflow-run-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow Run ID</option>
|
65
|
<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option>
|
66
|
<option values="status" onclick="addSearchDropdownBefore('tpcSearch','Status','Status','is|in','form-base-row')">Status</option>
|
67
|
</select>
|
68
|
|
69
|
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');getResultsSection('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
|
70
|
</div>
|
71
|
</form>
|
72
|
</div>
|
73
|
|
74
|
<div class="content-subsection" id="workflow-search-results">
|
75
|
</div>
|
76
|
|
77
|
</div>
|
78
|
</body>
|
79
|
</html>
|