Revision 5074
Added by daigle about 15 years ago
lib/style/common/searchWorkflowSection.jsp | ||
---|---|---|
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%>/ajax-utils.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflow.js"></script> |
|
38 |
</head> |
|
39 |
<body onload="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=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-result" type="hidden" /> |
|
45 |
<!-- input name="qformat" value="xml" type="hidden" / --> |
|
46 |
<input name="action" value="squery" type="hidden" /> |
|
47 |
<div class="search-section-text">Search</div> |
|
48 |
<div class="form-base-row" id="form-base-row"> |
|
49 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
50 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
51 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
52 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
53 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
54 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
55 |
<option values="date-created" onclick="addSearchDropdownBefore('tpcSearch','Date Created','date-created','be|af','form-base-row')">Date Created</option> |
|
56 |
<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
57 |
</select> |
|
58 |
|
|
59 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
60 |
</div> |
|
61 |
</form> |
|
62 |
</div> |
|
63 |
|
|
64 |
<div class="content-subsection" id="workflow-search-results"> |
|
65 |
</div> |
|
66 |
|
|
67 |
</div> |
|
68 |
</body> |
|
69 |
</html> |
|
70 | 0 |
lib/style/common/scheduleWorkflowRunSection.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
2 |
<%@ page import="java.util.TimeZone" %> |
|
3 |
<% |
|
4 |
/* |
|
5 |
* '$RCSfile$' |
|
6 |
* Copyright: 2009 Regents of the University of California and the |
|
7 |
* National Center for Ecological Analysis and Synthesis |
|
8 |
* |
|
9 |
* '$Author: daigle $' |
|
10 |
* '$Date: 2008-07-06 21:25:34 -0700 (Sun, 06 Jul 2008) $' |
|
11 |
* '$Revision: 4080 $' |
|
12 |
* |
|
13 |
* This program is free software; you can redistribute it and/or modify |
|
14 |
* it under the terms of the GNU General Public License as published by |
|
15 |
* the Free Software Foundation; either version 2 of the License, or |
|
16 |
* (at your option) any later version. |
|
17 |
* |
|
18 |
* This program is distributed in the hope that it will be useful, |
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
* GNU General Public License for more details. |
|
22 |
* |
|
23 |
* You should have received a copy of the GNU General Public License |
|
24 |
* along with this program; if not, write to the Free Software |
|
25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
26 |
*/ |
|
27 |
%> |
|
28 |
<%@ include file="common-settings.jsp"%> |
|
29 |
<%@ include file="configure-check.jsp"%> |
|
30 |
|
|
31 |
<html> |
|
32 |
<head> |
|
33 |
<title>TPC Report Search Section</title> |
|
34 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/simple-calendar-widgit.js"></script> |
|
35 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script> |
|
36 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
|
38 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/scheduleWorkflow.js"></script> |
|
39 |
|
|
40 |
</head> |
|
41 |
<body onload="getWorkflowRunSection('<%=SERVLET_URL%>','<%=request.getParameter("workflowid")%>','<%=request.getParameter("workflowname")%>','workflow-run-content')"> |
|
42 |
<div class=content-section> |
|
43 |
<div class="content-subsection" id="workflow-summary-section"> |
|
44 |
<div class="result-header-emphasis">Workflow Summary</div> |
|
45 |
<div class="form-input-row" id="form-base-row"> |
|
46 |
<div class="summary-field" id='workflow-name-label' >Name: </div> |
|
47 |
<% |
|
48 |
if (request.getParameter("workflowname") != null) { |
|
49 |
%> |
|
50 |
<div class="summary-value" id='workflow-name-value' ><%=request.getParameter("workflowname")%></div> |
|
51 |
<% |
|
52 |
} |
|
53 |
%> |
|
54 |
<br> |
|
55 |
<div class="summary-field" id='workflow-lsid-label' >LSID: </div> |
|
56 |
<% |
|
57 |
if (request.getParameter("workflowid") != null) { |
|
58 |
%> |
|
59 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div> |
|
60 |
<% |
|
61 |
} |
|
62 |
%> |
|
63 |
</div> |
|
64 |
</div> |
|
65 |
<div class="content-subsection" id="schedule-section"> |
|
66 |
<div class="result-header-emphasis">Schedule Workflow </div> |
|
67 |
<form action="<%=SERVLET_URL%>" name="workflowScheduler" id="workflowScheduler"> |
|
68 |
<input name="qformat" value="sanparks" type="hidden" /> |
|
69 |
<input name="action" value="scheduleWorkflow" type="hidden" /> |
|
70 |
<input name="forwardto" value="scheduleWorkflowRun.jsp" type="hidden" /> |
|
71 |
<% |
|
72 |
if (request.getParameter("workflowid") != null) { |
|
73 |
%> |
|
74 |
<input name='workflowid' value='<%=request.getParameter("workflowid")%>' type='hidden' /> |
|
75 |
<% |
|
76 |
} |
|
77 |
if (request.getParameter("karid") != null) { |
|
78 |
%> |
|
79 |
<input name='karid' value='<%=request.getParameter("karid")%>' type='hidden' /> |
|
80 |
<% |
|
81 |
} |
|
82 |
if (request.getParameter("workflowname") != null) { |
|
83 |
%> |
|
84 |
<input name='workflowname' value='<%=request.getParameter("workflowname")%>' type='hidden' /> |
|
85 |
<% |
|
86 |
} |
|
87 |
%> |
|
88 |
<div class="form-input-row"> |
|
89 |
<div class="field-label" id='start-time-label' >Start Time: </div> |
|
90 |
<input class="date-input" name='starttime' id='starttime' /> |
|
91 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss)</div> |
|
92 |
</div> |
|
93 |
<div class="form-input-row"> |
|
94 |
<div class="field-label" id='start-time-label' >End Time: </div> |
|
95 |
<input class="date-input" name='endtime' id='endtime' /> |
|
96 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss) (optional)</div> |
|
97 |
</div> |
|
98 |
<div class="form-input-row"> |
|
99 |
<div class="field-label" id='interval-label' >Interval: </div> |
|
100 |
<input class="int-input" name='intervalvalue' id='intervalvalue' /> |
|
101 |
<select class="dropdown-input" name='intervalunit'> |
|
102 |
<option name="seconds" value="s">seconds</option> |
|
103 |
<option name="minutes" value="m">minutes</option> |
|
104 |
<option name="hours" value="h">hours</option> |
|
105 |
<option name="days" value="d">days</option> |
|
106 |
</select> |
|
107 |
</div> |
|
108 |
<br> <br> |
|
109 |
<input class="submit-button" value="Schedule" type="submit"> |
|
110 |
</form> |
|
111 |
</div> |
|
112 |
<div class="content-subsection" id="workflow-run-section"> |
|
113 |
<div class="result-header-emphasis">Workflow Run Schedule</div> |
|
114 |
<div class="workflow-run-content" id="workflow-run-content"></div> |
|
115 |
</div> |
|
116 |
</div> |
|
117 |
</body> |
|
118 |
</html> |
lib/style/common/searchWorkflowRunSection.jsp | ||
---|---|---|
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%>/ajax-utils.js"></script> |
|
37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflowRun.js"></script> |
|
38 |
|
|
39 |
</head> |
|
40 |
<body onload="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
41 |
<div class=content-section> |
|
42 |
<div class="content-subsection search-section" id="search-section"> |
|
43 |
<form name="tpcSearch" id="tpcSearch"> |
|
44 |
<input name="query" id="query" type="hidden" /> |
|
45 |
<input name="qformat" value="tpc-run-result" type="hidden" /> |
|
46 |
<input name="action" value="squery" type="hidden" /> |
|
47 |
<!-- input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow-run" type="hidden"> |
|
48 |
<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden" --> |
|
49 |
<% |
|
50 |
if (request.getParameter("workflowid") != null) { |
|
51 |
%> <input name="workflow-lsid" id="sf-workflow-id1000" value="<%= request.getParameter("workflowid") %>" type="hidden"> |
|
52 |
<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="starts-with" type="hidden"> |
|
53 |
<% |
|
54 |
} |
|
55 |
%> |
|
56 |
<div class="search-section-text">Search</div> |
|
57 |
<div class="form-base-row" id="form-base-row"> |
|
58 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
59 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
60 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
61 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
62 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
63 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
64 |
<option values="date-executed" onclick="addSearchDropdownBefore('tpcSearch','Date Executed','date-executed','be|af','form-base-row')">Date Executed</option> |
|
65 |
<option values="workflow-run-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow Run ID</option> |
|
66 |
<option values="workflow-lsid" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
67 |
<option values="status" onclick="addSearchDropdownBefore('tpcSearch','Status','Status','is|in','form-base-row')">Status</option> |
|
68 |
</select> |
|
69 |
|
|
70 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
71 |
</div> |
|
72 |
</form> |
|
73 |
</div> |
|
74 |
|
|
75 |
<div class="content-subsection" id="workflow-search-results"> |
|
76 |
</div> |
|
77 |
|
|
78 |
</div> |
|
79 |
</body> |
|
80 |
</html> |
|
81 | 0 |
lib/style/skins/sanparks/searchWorkflowRun.jsp | ||
---|---|---|
36 | 36 |
<link rel="stylesheet" type="text/css" href="<%=STYLE_SKINS_URL%>/sanparks/footer2.css"/> |
37 | 37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script> |
38 | 38 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script> |
39 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script> |
|
39 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"> |
|
40 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script> |
|
41 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script> |
|
42 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
|
43 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflowRun.js"></script></script> |
|
40 | 44 |
</head> |
41 |
<body class="main-section"> |
|
45 |
<body class="main-section" onload="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
|
|
42 | 46 |
<jsp:include page="header2.jsp"/> |
43 | 47 |
|
44 | 48 |
<!-- Main content --> |
45 | 49 |
<jsp:include page="left-nav2.jsp"/> |
46 |
<jsp:include page="../../common/searchWorkflowRunSection.jsp" /> |
|
47 | 50 |
|
51 |
<div class=content-section> |
|
52 |
<div class="content-subsection search-section" id="search-section"> |
|
53 |
<form name="tpcSearch" id="tpcSearch"> |
|
54 |
<input name="query" id="query" type="hidden" /> |
|
55 |
<input name="qformat" value="tpc-run-result" type="hidden" /> |
|
56 |
<input name="action" value="squery" type="hidden" /> |
|
57 |
<!-- input name="keyword" id="sf-metadata-type1000" value="urn:lsid:localhost:onto:3:1#tpc-workflow-run" type="hidden"> |
|
58 |
<input name="metadata-type-searchmode" id="sm-metadata-type1000" value="equals" type="hidden" --> |
|
59 |
<% |
|
60 |
if (request.getParameter("workflowid") != null) { |
|
61 |
%> <input name="workflow-lsid" id="sf-workflow-id1000" value="<%= request.getParameter("workflowid") %>" type="hidden"> |
|
62 |
<input name="metadata-type-searchmode" id="sm-workflow-id1000" value="starts-with" type="hidden"> |
|
63 |
<% |
|
64 |
} |
|
65 |
%> |
|
66 |
<div class="search-section-text">Search</div> |
|
67 |
<div class="form-base-row" id="form-base-row"> |
|
68 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
69 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
70 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
71 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
72 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
73 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
74 |
<option values="date-executed" onclick="addSearchDropdownBefore('tpcSearch','Date Executed','date-executed','be|af','form-base-row')">Date Executed</option> |
|
75 |
<option values="workflow-run-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow Run ID</option> |
|
76 |
<option values="workflow-lsid" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
77 |
<option values="status" onclick="addSearchDropdownBefore('tpcSearch','Status','Status','is|in','form-base-row')">Status</option> |
|
78 |
</select> |
|
79 |
|
|
80 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
81 |
</div> |
|
82 |
</form> |
|
83 |
</div> |
|
84 |
|
|
85 |
<div class="content-subsection" id="workflow-search-results"></div> |
|
86 |
</div> |
|
87 |
|
|
48 | 88 |
<!-- Footer Content --> |
49 | 89 |
<jsp:include page="footer2.jsp" /> |
50 | 90 |
</body> |
lib/style/skins/sanparks/searchWorkflow.jsp | ||
---|---|---|
37 | 37 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script> |
38 | 38 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script> |
39 | 39 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script> |
40 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script> |
|
41 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script> |
|
42 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
|
43 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/searchWorkflow.js"></script> |
|
40 | 44 |
</head> |
41 |
<body class="main-section"> |
|
45 |
<body class="main-section" onload="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')">
|
|
42 | 46 |
<jsp:include page="header2.jsp"/> |
43 | 47 |
|
44 | 48 |
<!-- Main content --> |
45 | 49 |
<jsp:include page="left-nav2.jsp"/> |
46 |
<jsp:include page="../../common/searchWorkflowSection.jsp" /> |
|
50 |
|
|
51 |
<div class=content-section> |
|
52 |
<div class="content-subsection search-section" id="search-section"> |
|
53 |
<form name="tpcSearch" id="tpcSearch"> |
|
54 |
<input name="query" id="query" type="hidden" /> |
|
55 |
<input name="qformat" value="tpc-result" type="hidden" /> |
|
56 |
<!-- input name="qformat" value="xml" type="hidden" / --> |
|
57 |
<input name="action" value="squery" type="hidden" /> |
|
58 |
<div class="search-section-text">Search</div> |
|
59 |
<div class="form-base-row" id="form-base-row"> |
|
60 |
<div class="field-label dropdown-field-label" id='field-selector-section' >Add search term</div> |
|
61 |
<select class="dropdown-input" name="dd-field-selector" id="dd-field-selector"> |
|
62 |
<option value="name" onclick="addSearchDropdownBefore('tpcSearch','Name','name','co|eq|sw|ew','form-base-row')">Name</option> |
|
63 |
<option value="keyword" onclick="addSearchDropdownBefore('tpcSearch','Keyword','keyword','co|eq|sw|ew','form-base-row')">Keyword</option> |
|
64 |
<option values="creator" onclick="addSearchDropdownBefore('tpcSearch','Creator','creator','co|eq|sw|ew','form-base-row')">Creator</option> |
|
65 |
<option values="description" onclick="addSearchDropdownBefore('tpcSearch','Description','description','co|eq|sw|ew','form-base-row')">Description</option> |
|
66 |
<option values="date-created" onclick="addSearchDropdownBefore('tpcSearch','Date Created','date-created','be|af','form-base-row')">Date Created</option> |
|
67 |
<option values="workflow-id" onclick="addSearchDropdownBefore('tpcSearch','Workflow-id','workflow-id','co|eq|sw|ew','form-base-row')">Workflow ID</option> |
|
68 |
</select> |
|
69 |
|
|
70 |
<input class="submit-button" value="Search" type="button" onclick="setWorkflowQueryFormField('tpcSearch');submitFormIntoDiv('<%=SERVLET_URL%>','tpcSearch','workflow-search-results')"> |
|
71 |
</div> |
|
72 |
</form> |
|
73 |
</div> |
|
74 |
|
|
75 |
<div class="content-subsection" id="workflow-search-results"> |
|
76 |
</div> |
|
77 |
|
|
78 |
</div> |
|
47 | 79 |
|
48 | 80 |
<!-- Footer Content --> |
49 | 81 |
<jsp:include page="footer2.jsp" /> |
lib/style/skins/sanparks/scheduleWorkflowRun.jsp | ||
---|---|---|
1 |
<%@ page language="java" %> |
|
1 |
<%@ page language="java" %> |
|
2 |
<%@ page import="java.util.TimeZone" %> |
|
3 |
<%@ page import="edu.ucsb.nceas.metacat.AccessControlInterface" %> |
|
4 |
<%@ page import="edu.ucsb.nceas.metacat.PermissionController" %> |
|
5 |
<%@ page import="edu.ucsb.nceas.utilities.LSIDUtil" %> |
|
2 | 6 |
<% |
3 | 7 |
/* |
4 | 8 |
* '$RCSfile$' |
... | ... | |
23 | 27 |
* along with this program; if not, write to the Free Software |
24 | 28 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
25 | 29 |
*/ |
30 |
|
|
31 |
String karLsid = request.getParameter("karid"); |
|
32 |
String karId = LSIDUtil.getDocId(karLsid, false); |
|
33 |
PermissionController permissionController = new PermissionController(karId); |
|
34 |
boolean hasSchedulePermissions = |
|
35 |
permissionController.hasPermission(request.getSession().getId(), AccessControlInterface.READSTRING); |
|
36 |
|
|
26 | 37 |
%> |
27 | 38 |
<%@ include file="settings.jsp"%> |
28 | 39 |
|
... | ... | |
37 | 48 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_SKINS_URL%>/sanparks/sanparks.js"></script> |
38 | 49 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/style/skins/sanparks/searchWorkflowPathQuery.js"></script> |
39 | 50 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/branding.js"></script> |
51 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/widgets/form-fields-widget.js"></script> |
|
52 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/prototype-1.5.1.1/prototype.js"></script> |
|
53 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/ajax-utils.js"></script> |
|
54 |
<script language="JavaScript" type="text/JavaScript" src="<%=STYLE_COMMON_URL%>/scheduleWorkflow.js"></script> |
|
40 | 55 |
</head> |
41 |
<body class="main-section"> |
|
56 |
<body class="main-section" onload="getWorkflowRunSection('<%=SERVLET_URL%>','<%=request.getParameter("workflowid")%>','<%=request.getParameter("workflowname")%>','workflow-run-content')">
|
|
42 | 57 |
<jsp:include page="header2.jsp"/> |
43 | 58 |
|
44 | 59 |
<!-- Main content --> |
45 | 60 |
<jsp:include page="left-nav2.jsp"/> |
46 |
<jsp:include page="../../common/scheduleWorkflowRunSection.jsp" /> |
|
61 |
|
|
62 |
<div class=content-section> |
|
63 |
<div class="content-subsection" id="workflow-summary-section"> |
|
64 |
<% |
|
65 |
if (! hasSchedulePermissions) { |
|
66 |
%> |
|
67 |
<div class="warning-header">You have view permissions only for this workflow</div> |
|
68 |
<% |
|
69 |
} |
|
70 |
%> |
|
71 |
<div class="result-header-emphasis">Workflow Summary</div> |
|
72 |
<div class="form-input-row" id="form-base-row"> |
|
73 |
<div class="summary-field" id='workflow-name-label' >Name: </div> |
|
74 |
<% |
|
75 |
if (request.getParameter("workflowname") != null) { |
|
76 |
%> |
|
77 |
<div class="summary-value" id='workflow-name-value' ><%=request.getParameter("workflowname")%></div> |
|
78 |
<% |
|
79 |
} |
|
80 |
%> |
|
81 |
<br> |
|
82 |
<div class="summary-field" id='workflow-lsid-label' >LSID: </div> |
|
83 |
<% |
|
84 |
if (request.getParameter("workflowid") != null) { |
|
85 |
%> |
|
86 |
<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div> |
|
87 |
<% |
|
88 |
} |
|
89 |
%> |
|
90 |
</div> |
|
91 |
</div> |
|
92 |
<div class="content-subsection" id="schedule-section"> |
|
93 |
<div class="result-header-emphasis">Schedule Workflow </div> |
|
94 |
<form action="<%=SERVLET_URL%>" name="workflowScheduler" id="workflowScheduler"> |
|
95 |
<input name="qformat" value="sanparks" type="hidden" /> |
|
96 |
<input name="action" value="scheduleWorkflow" type="hidden" /> |
|
97 |
<input name="forwardto" value="scheduleWorkflowRun.jsp" type="hidden" /> |
|
98 |
<% |
|
99 |
if (request.getParameter("workflowid") != null) { |
|
100 |
%> |
|
101 |
<input name='workflowid' value='<%=request.getParameter("workflowid")%>' type='hidden' /> |
|
102 |
<% |
|
103 |
} |
|
104 |
if (request.getParameter("karid") != null) { |
|
105 |
%> |
|
106 |
<input name='karid' value='<%=request.getParameter("karid")%>' type='hidden' /> |
|
107 |
<% |
|
108 |
} |
|
109 |
if (request.getParameter("workflowname") != null) { |
|
110 |
%> |
|
111 |
<input name='workflowname' value='<%=request.getParameter("workflowname")%>' type='hidden' /> |
|
112 |
<% |
|
113 |
} |
|
114 |
%> |
|
115 |
<div class="form-input-row"> |
|
116 |
<div class="field-label" id='start-time-label' >Start Time: </div> |
|
117 |
<input class="date-input" name='starttime' id='starttime' /> |
|
118 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss)</div> |
|
119 |
</div> |
|
120 |
<div class="form-input-row"> |
|
121 |
<div class="field-label" id='start-time-label' >End Time: </div> |
|
122 |
<input class="date-input" name='endtime' id='endtime' /> |
|
123 |
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss) (optional)</div> |
|
124 |
</div> |
|
125 |
<div class="form-input-row"> |
|
126 |
<div class="field-label" id='interval-label' >Interval: </div> |
|
127 |
<input class="int-input" name='intervalvalue' id='intervalvalue' /> |
|
128 |
<select class="dropdown-input" name='intervalunit'> |
|
129 |
<option name="seconds" value="s">seconds</option> |
|
130 |
<option name="minutes" value="m">minutes</option> |
|
131 |
<option name="hours" value="h">hours</option> |
|
132 |
<option name="days" value="d">days</option> |
|
133 |
</select> |
|
134 |
</div> |
|
135 |
<br> <br> |
|
136 |
<input class="submit-button" value="Schedule" type="submit" |
|
137 |
<% |
|
138 |
if (! hasSchedulePermissions) { |
|
139 |
%> |
|
140 |
disabled="disabled" |
|
141 |
<% |
|
142 |
} |
|
143 |
%> |
|
144 |
> |
|
145 |
</form> |
|
146 |
</div> |
|
147 |
<div class="content-subsection" id="workflow-run-section"> |
|
148 |
<div class="result-header-emphasis">Workflow Run Schedule</div> |
|
149 |
<div class="workflow-run-content" id="workflow-run-content"></div> |
|
150 |
</div> |
|
151 |
</div> |
|
47 | 152 |
|
48 | 153 |
<!-- Footer Content --> |
49 | 154 |
<jsp:include page="footer2.jsp" /> |
Also available in: Unified diff
move worflow page sections from common into the sanparks skin files