source: trunk/web/addons/job_monarch/templates/search.tpl @ 299

Last change on this file since 299 was 299, checked in by bastiaans, 14 years ago

web/addons/job_monarch/conf.php:

  • added COLUMN_NODES option to display job node hostnames column

web/addons/job_monarch/search.php,
web/addons/job_monarch/overview.php:

  • added handling of COLUMN_NODES

web/addons/job_monarch/templates/search.tpl,
web/addons/job_monarch/templates/overview.tpl:

  • added COLUMN_NODES to html
File size: 8.7 KB
Line 
1<CENTER>
2
3<SCRIPT LANGUAGE="javascript">
4function setSort( sortbyval ) {
5
6        if( sortbyval != document.archive_search_form.sortby.value ) {
7
8                document.archive_search_form.sortby.value = sortbyval;
9                document.archive_search_form.sortorder.value = "asc";
10
11        } else {
12
13                if( document.archive_search_form.sortorder.value == "desc" )
14                        document.archive_search_form.sortorder.value = "asc";
15                else if( document.archive_search_form.sortorder.value == "asc" )
16                        document.archive_search_form.sortorder.value = "desc";
17        }
18
19        document.forms['archive_search_form'].submit();
20}
21
22function setFilter( filtername, filterval ) {
23
24        var myfilterorder = document.archive_search_form.elements['filterorder'].value;
25
26        if( document.archive_search_form.elements[filtername] ) {
27                document.archive_search_form.elements[filtername].value = filterval;
28                if( myfilterorder != '')
29                        myfilterorder = myfilterorder + "," + filtername;
30                else
31                        myfilterorder = filtername;
32
33        }
34        document.archive_search_form.elements['filterorder'].value = myfilterorder;
35
36        //setTimeout( "document.forms['archive_search_form'].submit();", 1000 );
37
38        document.forms['archive_search_form'].submit();
39}
40</SCRIPT>
41<SCRIPT LANGUAGE="javascript">
42
43        function setSearchTimestamps() {
44
45                document.archive_search_form.start_from_time.value = document.archive_search_form.start_from_pick.value;
46                document.archive_search_form.start_to_time.value = document.archive_search_form.start_to_pick.value;
47                document.archive_search_form.end_from_time.value = document.archive_search_form.end_from_pick.value;
48                document.archive_search_form.end_to_time.value = document.archive_search_form.end_to_pick.value;
49        }
50
51</SCRIPT>
52
53<!-- <FORM NAME="archive_search_form" ACTION="./"> -->
54
55<!-- <INPUT TYPE="hidden" NAME="view" VALUE="search"> -->
56
57<BR><BR>
58
59<TABLE WIDTH="100%">
60
61<TR>
62  <TD CLASS=title COLSPAN="2">
63  <B>Search job archive</B>
64  </TD>
65</TR>
66
67</TABLE>
68
69<BR><BR>
70
71<TABLE WIDTH="90%">
72
73<TR>
74  <TD></TD>
75  <TD></TD>
76  <TD></TD>
77  <TD></TD>
78  <TD></TD>
79  <TD></TD>
80</TR>
81
82<TR>
83
84  <TD>
85  Id:
86  </TD>
87  <TD>
88  <INPUT TYPE="TEXT" NAME="id" VALUE="{id_value}">
89  </TD>
90
91</TR>
92
93<TR>
94
95  <TD>
96  User:
97  </TD>
98  <TD>
99  <INPUT TYPE="TEXT" NAME="user" VALUE="{user_value}">
100  </TD>
101
102  <TD>
103  Queue:
104  </TD>
105  <TD>
106  <INPUT TYPE="TEXT" NAME="queue" VALUE="{queue_value}">
107  </TD>
108
109  <TD>
110  Name:
111  </TD>
112  <TD>
113  <INPUT TYPE="TEXT" NAME="name" VALUE="{name_value}">
114  </TD>
115
116</TR>
117
118<TR>
119
120  <TD></TD>
121  <TD>
122  Job <B>start</B>
123  </TD>
124
125  <TD>
126  From:
127  </TD>
128  <TD>
129  <INPUT TYPE="HIDDEN" NAME="start_from_time" VALUE="{start_from_value}">
130  <INPUT TYPE="TEXT" NAME="start_from_pick" VALUE="{start_from_value}" DISABLED="TRUE">
131  <A HREF="javascript:show_calendar('document.archive_search_form.start_from_pick', document.archive_search_form.start_from_pick.value );">
132  <IMG SRC="cal.gif" width="16" height="16" border="0" title="Click to select a date/time" alt="Click to select a date/time"></a>
133  <a href="#" onClick="document.archive_search_form.start_from_pick.value=''" alt="Click here to clear field" title="Click here to clear field"><IMG SRC="redcross.jpg" BORDER=0></A>
134  </TD>
135 
136  <TD>
137  To:
138  </TD>
139  <TD>
140  <INPUT TYPE="HIDDEN" NAME="start_to_time" VALUE="{start_to_value}">
141  <INPUT TYPE="TEXT" NAME="start_to_pick" VALUE="{start_to_value}" DISABLED="TRUE">
142  <a href="javascript:show_calendar('document.archive_search_form.start_to_pick', document.archive_search_form.start_to_pick.value );">
143  <img src="cal.gif" width="16" height="16" border="0" title="Click to select a date/time" alt="Click to select a date/time"></a>
144  <a href="#" onClick="document.archive_search_form.start_to_pick.value=''" alt="Click here to clear field" title="Click here to clear field">
145  <IMG SRC="redcross.jpg" BORDER=0></A>
146  </TD>
147 
148</TR>
149
150<TR>
151
152  <TD></TD>
153  <TD>
154  Job <B>finish</B>
155  </TD>
156
157  <TD>
158  From:
159  </TD>
160  <TD>
161  <INPUT TYPE="HIDDEN" NAME="end_from_time" VALUE="{end_from_value}">
162  <INPUT TYPE="TEXT" NAME="end_from_pick" VALUE="{end_from_value}" DISABLED="TRUE">
163  <A HREF="javascript:show_calendar('document.archive_search_form.end_from_pick', document.archive_search_form.end_from_pick.value );">
164  <IMG SRC="cal.gif" width="16" height="16" border="0" title="Click to select a date/time" alt="Click to select a date/time"></a>
165  <a href="#" onClick="document.archive_search_form.end_from_pick.value=''" alt="Click here to clear field" title="Click here to clear field">
166  <IMG SRC="redcross.jpg" BORDER=0></A>
167  </TD>
168 
169  <TD>
170  To:
171  </TD>
172  <TD>
173  <INPUT TYPE="HIDDEN" NAME="end_to_time" VALUE="{end_to_value}">
174  <INPUT TYPE="TEXT" NAME="end_to_pick" VALUE="{end_to_value}" DISABLED="TRUE">
175  <a href="javascript:show_calendar('document.archive_search_form.end_to_pick', document.archive_search_form.end_to_pick.value );">
176  <img src="cal.gif" width="16" height="16" border="0" title="Click to select a date/time" alt="Click to select a date/time"></a>
177  <a href="#" onClick="document.archive_search_form.end_to_pick.value=''" alt="Click here to clear field" title="Click here to clear field">
178  <IMG SRC="redcross.jpg" BORDER=0></A>
179  </TD>
180 
181</TR>
182
183<TR>
184
185  <TD></TD>
186  <TD></TD>
187  <TD></TD>
188  <TD></TD>
189  <TD></TD>
190  <TD>
191  <INPUT TYPE="submit" VALUE="Search archive" onClick="setSearchTimestamps();">
192  </TD>
193
194</TR>
195
196</TABLE>
197{form_error_msg}<BR><BR>
198<!-- START BLOCK : search_results -->
199
200<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
201<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{sortorder}">
202<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{f_order}">
203
204<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="2" BORDER=0>
205<TR CLASS="monarch">
206<TH><B><A HREF="#" onClick="setSort( 'id' )" ALT="Jobid" TITLE="Jobid">Id</A></B></TH>
207<TH><B><A HREF="#" onClick="setSort( 'state' )" ALT="State" TITLE="State">S</A></B></TH>
208<TH><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TH>
209<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
210<TH><B><A HREF="#" onClick="setSort( 'name' )" ALT="Jobname" TITLE="Jobname">Name</A></B></TH>
211<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )" ALT="Requested CPU Time (walltime)" TITLE="Requested CPU Time (walltime)">Req. CPU time</A></B></TH>
212<!-- START BLOCK : column_header_req_mem -->
213<TH><B><A HREF="#" onClick="setSort( 'req_mem' )" ALT="Requested Memory" TITLE="Requested Memory">Req. Memory</A></B></TH>
214<!-- END BLOCK : column_header_req_mem -->
215<TH><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">N</A>/<A HREF="#" onClick="setSort( 'cpus' )" ALT="Processors" TITLE="Processors">P</A></B></TH>
216<!-- START BLOCK : column_header_nodes -->
217<TH><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">Nodes</A></B></TH>
218<!-- END BLOCK : column_header_nodes -->
219<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
220<TH><B><A HREF="#" onClick="setSort( 'finished' )">Finished</A></B></TH>
221<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
222</TR>
223
224<!-- START BLOCK : node -->
225  <TR CLASS="{nodeclass}">
226    <TD><A HREF="#" onClick="setFilter( 'id', '{id}' )">{id}</A></TD>
227    <TD><A HREF="#" onClick="setFilter( 'state', '{state}' )">{state}</A></TD>
228    <TD><A HREF="#" onClick="setFilter( 'user', '{user}' )">{user}</A></TD>
229    <TD><A HREF="#" onClick="setFilter( 'queue', '{queue}' )">{queue}</A></TD>
230    <TD ALT="{fulljobname}" TITLE="{fulljobname}">
231<!-- START BLOCK : jobname_hint_start -->
232    <FONT CLASS="jobname_hint">
233<!-- END BLOCK : jobname_hint_start -->
234    {name}
235<!-- START BLOCK : jobname_hint_end -->
236    </FONT>
237<!-- END BLOCK : jobname_hint_end -->
238    </TD>
239    <TD>{req_cpu}</TD>
240<!-- START BLOCK : column_req_mem -->
241    <TD>{req_memory}</TD>
242<!-- END BLOCK : column_req_mem -->
243    <TD>{nodes}/{cpus}</TD>
244<!-- START BLOCK : column_nodes -->
245    <TD>{nodes_hostnames}</TD>
246<!-- END BLOCK : column_nodes -->
247    <TD>{started}</TD>
248    <TD>{finished}</TD>
249    <TD>{runningtime}</TD>
250  </TR>
251<!-- END BLOCK : node -->
252</TABLE>
253</CENTER>
254
255<!-- START BLOCK : showhosts -->
256<TABLE BORDER="0" WIDTH="100%">
257<TR>
258  <TD CLASS=title COLSPAN="2">
259  <FONT SIZE="-1">
260  Show Hosts:
261  yes<INPUT type=radio name="sh" value="1" OnClick="archive_search_form.submit();" {checked1}>
262  no<INPUT type=radio name="sh" value="0" OnClick="archive_search_form.submit();" {checked0}>
263  </FONT>
264  |
265  job <strong>{id}</strong> metric <strong>{metric}</strong>
266  |
267   <FONT SIZE="-1">
268   Columns&nbsp;&nbsp;{cols_menu}
269   </FONT><BR>
270  </TD>
271</TR>
272
273</TABLE>
274
275<CENTER>
276<TABLE>
277<TR>
278<!-- START BLOCK : sorted_list -->
279{metric_image}{br}
280<!-- END BLOCK : sorted_list -->
281</TR>
282</TABLE>
283
284</CENTER>
285
286<!-- END BLOCK : showhosts -->
287<!-- END BLOCK : search_results -->
288</CENTER>
Note: See TracBrowser for help on using the repository browser.