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

Last change on this file since 135 was 135, checked in by bastiaans, 17 years ago

toga/templates/overview.tpl:

  • Now readable job/node/cpu counting info

toga/overview.php:

  • Now correctly counts for with new queued job cpu/node numbers

toga/libtoga.php:

  • Changed node parsing from XML for new queued job cpu/node numbers
  • Misc RRD generation testing changes
File size: 4.7 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="ts_picker.js"></SCRIPT>
32<SCRIPT TYPE="text/javascript">
33        function setSort( sortbyval ) {
34
35                if( sortbyval != document.toga_form.sortby.value ) {
36
37                        document.toga_form.sortby.value = sortbyval;
38                        document.toga_form.sortorder.value = "asc";
39
40                } else {
41
42                        if( document.toga_form.sortorder.value == "desc" )
43                                document.toga_form.sortorder.value = "asc";
44                        else if( document.toga_form.sortorder.value == "asc" )
45                                document.toga_form.sortorder.value = "desc";
46                }
47
48                document.forms['toga_form'].submit();
49        }
50
51        function setFilter( filtername, filterval ) {
52
53                //document.toga_form.id.value = '';
54                //document.toga_form.queue.value = '';
55                //document.toga_form.state.value = '';
56                //document.toga_form.user.value = '';
57
58                if( document.toga_form.elements[filtername] ) {
59                        document.toga_form.elements[filtername].value = filterval;
60                }
61
62                document.forms['toga_form'].submit();
63        }
64</SCRIPT>
65
66<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
67<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{sortorder}">
68<INPUT TYPE="HIDDEN" NAME="c" VALUE="{clustername}">
69<INPUT TYPE="HIDDEN" NAME="queue" VALUE="{f_queue}">
70<INPUT TYPE="HIDDEN" NAME="state" VALUE="{f_state}">
71<INPUT TYPE="HIDDEN" NAME="user" VALUE="{f_user}">
72<INPUT TYPE="HIDDEN" NAME="id" VALUE="{f_id}">
73
74<TABLE WIDTH="90%" CELLPADDING="8" CELLSPACING="3" BORDER=0>
75<TR CLASS="toga">
76<TH><B><A HREF="#" onClick="setSort( 'id' )">Id</A></B></TH>
77<TH><B><A HREF="#" onClick="setSort( 'state' )">State</A></B></TH>
78<TH><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TH>
79<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
80<TH><B><A HREF="#" onClick="setSort( 'name' )">Name</A></B></TH>
81<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )">Req. CPU time</A></B></TH>
82<TH><B><A HREF="#" onClick="setSort( 'req_mem' )">Req. Memory</A></B></TH>
83<TH><B><A HREF="#" onClick="setSort( 'nodes' )">Nodes</A>/<A HREF="#" onClick="setSort( 'cpus' )">Cpus</A></B></TH>
84<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
85<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
86</TR>
87
88<!-- START BLOCK : node -->
89  <TR CLASS="{nodeclass}">
90    <TD><A HREF="#" onClick="setFilter( 'id', '{id}' )">{id}</A></TD>
91    <TD><A HREF="#" onClick="setFilter( 'state', '{state}' )">{state}</A></TD>
92    <TD><A HREF="#" onClick="setFilter( 'user', '{user}' )">{user}</A></TD>
93    <TD><A HREF="#" onClick="setFilter( 'queue', '{queue}' )">{queue}</A></TD>
94    <TD>{name}</TD>
95    <TD>{req_cpu}</TD>
96    <TD>{req_memory}</TD>
97    <TD>{nodes}/{cpus}</TD>
98    <TD>{started}</TD>
99    <TD>{runningtime}</TD>
100  </TR>
101<!-- END BLOCK : node -->
102</TABLE>
103</CENTER>
104
105<!-- START BLOCK : showhosts -->
106<TABLE BORDER="0" WIDTH="100%">
107<TR>
108  <TD CLASS=title COLSPAN="2">
109  <FONT SIZE="-1">
110  Show Hosts:
111  yes<INPUT type=radio name="sh" value="1" OnClick="toga_form.submit();" {checked1}>
112  no<INPUT type=radio name="sh" value="0" OnClick="toga_form.submit();" {checked0}>
113  </FONT>
114  |
115  job <strong>{id}</strong> metric <strong>{metric}</strong>
116  |
117   <FONT SIZE="-1">
118   Columns&nbsp;&nbsp;{cols_menu}
119   </FONT><!-- <BR>
120   <FONT SIZE="-1">
121    Set graph timeperiod from <INPUT TYPE="text" NAME="start" VALUE="{start}" SIZE=12 ALT="Start time"><a href="javascript:show_calendar('document.toga_form.start', document.toga_form.start.value);"><img src="cal.gif" width="16" height="16" border="0"></a> to <INPUT TYPE="text" NAME="stop" VALUE="{stop}" SIZE=12 ALT="Stop time"><a href="javascript:show_calendar('document.toga_form.stop', document.toga_form.stop.value);"><img src="cal.gif" width="16" height="16" border="0"></a><INPUT TYPE="submit" VALUE="Refresh graphs">
122   </FONT> -->
123  </TD>
124</TR>
125   
126</TABLE>
127
128<CENTER>
129<TABLE>
130<TR>
131<!-- START BLOCK : sorted_list -->
132{metric_image}{br}
133<!-- END BLOCK : sorted_list -->
134</TR>
135</TABLE>
136
137<p>
138(Nodes colored by 1-minute load) | <A HREF="../../node_legend.html" ALT="Node Image egend">Legend</A>
139
140</CENTER>
141
142<!-- END BLOCK : showhosts -->
Note: See TracBrowser for help on using the repository browser.