source: trunk/web/addons/toga/templates/overview.tpl @ 140

Last change on this file since 140 was 140, checked in by bastiaans, 18 years ago

web/addons/toga/templates/header.tpl:

  • Use block to include link to archive search

web/addons/toga/templates/overview.tpl:

  • Cleanup
  • Javascript moved to seperate .js file

web/addons/toga/templates/search.tpl:

  • Added search results and future showhosts block section

web/addons/toga/index.php:

  • Use block instead of include for archive search link

web/addons/toga/search.php:

  • Setup of working search style

web/addons/toga/libtoga.php:

  • searchDbase() will return a list of jobids matching the criteria
File size: 3.4 KB
Line 
1<BR><BR>
2
3<CENTER>
4<TABLE>
5<TR>
6  <TD ALIGN="CENTER">
7    <IMG SRC="{clusterimage}"><BR>
8
9<TABLE ALIGN=CENTER>
10<TR>
11<TD><FONT SIZE="-1" class=footer>Last updated:</FONT></TD><TD><FONT SIZE="-1" class=footer>{report_time}</TD>
12</TR><TR>
13<TD><FONT SIZE="-1" class=footer>Available:</FONT></TD><TD><FONT SIZE="-1" class=footer>{avail_nodes} nodes / {avail_cpus} cpu's</FONT></TD>
14</TR><TR>
15<TD><FONT SIZE="-1" class=footer>Usage:</FONT></TD><TD><FONT SIZE="-1" class=footer>{used_jobs} jobs - {used_nodes} nodes / {used_cpus} cpu's</FONT></TD>
16</TR><TR>
17<TD><FONT SIZE="-1" class=footer>View:</FONT></TD><TD><FONT SIZE="-1" class=footer>{view_jobs} jobs - {view_nodes} nodes / {view_cpus} cpu's</FONT></TD>
18</TR>
19</TABLE>
20</FONT>
21
22  </TD>
23  <TD ALIGN="CENTER">
24    <IMG SRC="{pie}">
25  </TD>
26</TR>
27</TABLE>
28
29<BR>
30
31<SCRIPT TYPE="text/javascript" SRC="libtoga.js"></SCRIPT>
32
33<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
34<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{sortorder}">
35<INPUT TYPE="HIDDEN" NAME="c" VALUE="{clustername}">
36<INPUT TYPE="HIDDEN" NAME="queue" VALUE="{f_queue}">
37<INPUT TYPE="HIDDEN" NAME="state" VALUE="{f_state}">
38<INPUT TYPE="HIDDEN" NAME="user" VALUE="{f_user}">
39<INPUT TYPE="HIDDEN" NAME="id" VALUE="{f_id}">
40<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{f_order}">
41
42<TABLE WIDTH="90%" CELLPADDING="8" CELLSPACING="3" BORDER=0>
43<TR CLASS="toga">
44<TH><B><A HREF="#" onClick="setSort( 'id' )">Id</A></B></TH>
45<TH><B><A HREF="#" onClick="setSort( 'state' )">State</A></B></TH>
46<TH><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TH>
47<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
48<TH><B><A HREF="#" onClick="setSort( 'name' )">Name</A></B></TH>
49<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )">Req. CPU time</A></B></TH>
50<TH><B><A HREF="#" onClick="setSort( 'req_mem' )">Req. Memory</A></B></TH>
51<TH><B><A HREF="#" onClick="setSort( 'nodes' )">Nodes</A>/<A HREF="#" onClick="setSort( 'cpus' )">Cpus</A></B></TH>
52<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
53<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
54</TR>
55
56<!-- START BLOCK : node -->
57  <TR CLASS="{nodeclass}">
58    <TD><A HREF="#" onClick="setFilter( 'id', '{id}' )">{id}</A></TD>
59    <TD><A HREF="#" onClick="setFilter( 'state', '{state}' )">{state}</A></TD>
60    <TD><A HREF="#" onClick="setFilter( 'user', '{user}' )">{user}</A></TD>
61    <TD><A HREF="#" onClick="setFilter( 'queue', '{queue}' )">{queue}</A></TD>
62    <TD>{name}</TD>
63    <TD>{req_cpu}</TD>
64    <TD>{req_memory}</TD>
65    <TD>{nodes}/{cpus}</TD>
66    <TD>{started}</TD>
67    <TD>{runningtime}</TD>
68  </TR>
69<!-- END BLOCK : node -->
70</TABLE>
71</CENTER>
72
73<!-- START BLOCK : showhosts -->
74<TABLE BORDER="0" WIDTH="100%">
75<TR>
76  <TD CLASS=title COLSPAN="2">
77  <FONT SIZE="-1">
78  Show Hosts:
79  yes<INPUT type=radio name="sh" value="1" OnClick="toga_form.submit();" {checked1}>
80  no<INPUT type=radio name="sh" value="0" OnClick="toga_form.submit();" {checked0}>
81  </FONT>
82  |
83  job <strong>{id}</strong> metric <strong>{metric}</strong>
84  |
85   <FONT SIZE="-1">
86   Columns&nbsp;&nbsp;{cols_menu}
87   </FONT>
88  </TD>
89</TR>
90   
91</TABLE>
92
93<CENTER>
94<TABLE>
95<TR>
96<!-- START BLOCK : sorted_list -->
97{metric_image}{br}
98<!-- END BLOCK : sorted_list -->
99</TR>
100</TABLE>
101
102<p>
103(Nodes colored by 1-minute load) | <A HREF="../../node_legend.html" ALT="Node Image egend">Legend</A>
104
105</CENTER>
106
107<!-- END BLOCK : showhosts -->
Note: See TracBrowser for help on using the repository browser.