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

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

toga/styles.css, toga/overview.php, toga/templates/overview.tpl:

  • Cosmetic HTML changes
File size: 2.2 KB
Line 
1<BR><BR>
2
3<CENTER>
4<TABLE>
5<TR>
6  <TD>
7    <IMG SRC="{clusterimage}"><BR>
8    reported: {heartbeat}
9  </TD>
10  <TD>
11    <IMG SRC="{pie}">
12  </TD>
13</TR>
14</TABLE>
15
16<BR><BR>
17
18<SCRIPT TYPE="text/javascript">
19        function setSort( sortbyval ) {
20
21                if( sortbyval != document.toga_form.sortby.value ) {
22
23                        document.toga_form.sortby.value = sortbyval;
24                        document.toga_form.sortorder.value = "asc";
25
26                } else {
27
28                        if( document.toga_form.sortorder.value == "desc" )
29                                document.toga_form.sortorder.value = "asc";
30                        else if( document.toga_form.sortorder.value == "asc" )
31                                document.toga_form.sortorder.value = "desc";
32                }
33
34                document.forms['toga_form'].submit();
35        }
36</SCRIPT>
37
38<FORM NAME="toga_form" ACTION="./" METHOD="GET">
39
40<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
41<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{sortorder}">
42<INPUT TYPE="HIDDEN" NAME="c" VALUE="{clustername}">
43<INPUT TYPE="HIDDEN" NAME="jobid" VALUE="{jobid}">
44
45</FORM>
46
47<TABLE WIDTH="90%" CELLPADDING="8" CELLSPACING="3" BORDER=0>
48<TR CLASS="toga">
49<TH><B><A HREF="#" onClick="setSort( 'id' )">Id</A></B></TH>
50<TH><B><A HREF="#" onClick="setSort( 'state' )">State</A></B></TH>
51<TH><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TH>
52<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
53<TH><B><A HREF="#" onClick="setSort( 'name' )">Name</A></B></TH>
54<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )">Requested CPU time</A></B></TH>
55<TH><B><A HREF="#" onClick="setSort( 'req_mem' )">Requested Memory</A></B></TH>
56<TH><B>Current <A HREF="#" onClick="setSort( 'nodes' )">Nodes</A>/<A HREF="#" onClick="setSort( 'cpus' )">Cpus</A></B></TH>
57<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
58<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
59</TR>
60
61<!-- START BLOCK : node -->
62  <TR CLASS="{nodeclass}">
63    <TD><A HREF="">{id}</A></TD>
64    <TD><A HREF="">{state}</A></TD>
65    <TD><A HREF="{togasorted}&user={user}">{user}</A></TD>
66    <TD><A HREF="{togasorted}&queue={queue}">{queue}</A></TD>
67    <TD>{name}</TD>
68    <TD>{req_cpu}</TD>
69    <TD>{req_memory}</TD>
70    <TD>{nodes}/{cpus}</TD>
71    <TD>{started}</TD>
72    <TD>{runningtime}</TD>
73  </TR>
74<!-- END BLOCK : node -->
75</TABLE>
76</CENTER>
Note: See TracBrowser for help on using the repository browser.