Project

General

Profile

metacat / lib / style / common / scheduleWorkflowRunSection.jsp @ 4966

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%>/scheduleWorkflow.js"></script>
38
        
39
    </head>
40
    <body onload="getWorkflowRunSection('<%=SERVLET_URL%>','<%=request.getParameter("workflowid")%>','<%=request.getParameter("workflowname")%>','workflow-run-content')">    
41
    	<div class=content-section>  
42
    	    <div class="content-subsection" id="workflow-summary-section"> 
43
				<div class="result-header-emphasis">Workflow Summary</div> 
44
    			<div class="form-input-row" id="form-base-row">
45
    				<div class="summary-field" id='workflow-name-label' >Name: </div>  
46
<%
47
					if (request.getParameter("workflowname") != null) {
48
%>
49
						<div class="summary-value" id='workflow-name-value' ><%=request.getParameter("workflowname")%></div>
50
<%
51
					}
52
%>	  
53
					<br>
54
					<div class="summary-field" id='workflow-lsid-label' >LSID: </div>  
55
<%
56
					if (request.getParameter("workflowid") != null) {
57
%>
58
						<div class="summary-value" id='workflow-lsid-value' ><%=request.getParameter("workflowid")%></div>
59
<%
60
					}
61
%>	  
62
				</div>
63
			</div>
64
			<div class="content-subsection" id="schedule-section">   
65
    			<div class="result-header-emphasis">Schedule Workflow </div> 
66
        		<form action="<%=SERVLET_URL%>" name="workflowScheduler" id="workflowScheduler">
67
					<input name="qformat" value="sanparks" type="hidden" />
68
					<input name="action" value="scheduleWorkflow" type="hidden" />  
69
					<input name="forwardto" value="scheduleWorkflowRun.jsp" type="hidden" /> 
70
<%
71
					if (request.getParameter("workflowid") != null) {
72
%>
73
						<input name='jobparam_workflowid' value='<%=request.getParameter("workflowid")%>' type='hidden' />
74
<%
75
					}
76
					if (request.getParameter("karid") != null) {
77
%>
78
						<input name='jobparam_karid' value='<%=request.getParameter("karid")%>' type='hidden' />
79
<%
80
					}
81
					if (request.getParameter("workflowname") != null) {
82
%>
83
						<input name='jobparam_workflowname' value='<%=request.getParameter("workflowname")%>' type='hidden' />
84
<%
85
					}
86
%>	  		 
87
					<div class="form-input-row">
88
						<div class="field-label" id='start-time-label' >Start Time: </div>  
89
						<input class="date-input" name='starttime' id='starttime' /> 
90
						<div class="field-suffix"> (mm/dd/yyyy hh:mm:ss z)</div>
91
					</div>
92
					<div class="form-input-row">
93
						<div class="field-label" id='interval-label' >Interval: </div>  
94
						<input class="int-input" name='intervalvalue' id='intervalvalue' /> 
95
						<select class="dropdown-input" name='intervalunit'>
96
							<option name="seconds" value="s">seconds</option>
97
							<option name="minutes" value="m">minutes</option>
98
							<option name="hours" value="h">hours</option>
99
							<option name="days" value="d">days</option>
100
						</select>
101
					</div>
102
					<br> <br>     		
103
        			<input class="submit-button" value="Schedule" type="submit"> 
104
        		</form>
105
			</div>		
106
			<div class="content-subsection" id="workflow-run-section"> 
107
				<div class="result-header-emphasis">Workflow Run Schedule</div> 
108
    			<div class="workflow-run-content" id="workflow-run-content"></div>
109
			</div>
110
        </div>
111
    </body>
112
</html>