1 |
4966
|
daigle
|
<%@ page language="java" %>
|
2 |
5005
|
daigle
|
<%@ page import="java.util.TimeZone" %>
|
3 |
4966
|
daigle
|
<%
|
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 |
4971
|
daigle
|
<input name='workflowid' value='<%=request.getParameter("workflowid")%>' type='hidden' />
|
75 |
4966
|
daigle
|
<%
|
76 |
|
|
}
|
77 |
|
|
if (request.getParameter("karid") != null) {
|
78 |
|
|
%>
|
79 |
4971
|
daigle
|
<input name='karid' value='<%=request.getParameter("karid")%>' type='hidden' />
|
80 |
4966
|
daigle
|
<%
|
81 |
|
|
}
|
82 |
|
|
if (request.getParameter("workflowname") != null) {
|
83 |
|
|
%>
|
84 |
4971
|
daigle
|
<input name='workflowname' value='<%=request.getParameter("workflowname")%>' type='hidden' />
|
85 |
4966
|
daigle
|
<%
|
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 |
5005
|
daigle
|
<div class="field-suffix"><%= TimeZone.getDefault().getDisplayName(true, TimeZone.SHORT) %> (mm/dd/yyyy hh:mm:ss)</div>
|
92 |
4966
|
daigle
|
</div>
|
93 |
|
|
<div class="form-input-row">
|
94 |
5012
|
daigle
|
<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 |
4966
|
daigle
|
<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>
|