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

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

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

  • Added closing </FORM>

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

  • Skeleton template for base page

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

  • Added javascript and FORM to be able to sort joblist

web/addons/toga/index.php:

  • Changed to be basis for all
  • Will present a job/queue or overview based on arguments

web/addons/toga/overview.php:

  • Changed for new index skeleton
  • Will sort joblist now

web/addons/toga/libtoga.php, web/addons/toga/image.php:

  • Some fixes/cleanup for index skeleton
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 = "desc";
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="80%" CELLPADDING="8" CELLSPACING="0" BORDER=1>
48<TR>
49<TD><B><A HREF="#" onClick="setSort( 'id' )">Id</A></B></TD>
50<TD><B><A HREF="#" onClick="setSort( 'state' )">State</A></B></TD>
51<TD><B><A HREF="#" onClick="setSort( 'user' )">User</A></B></TD>
52<TD><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TD>
53<TD><B><A HREF="#" onClick="setSort( 'name' )">Name</A></B></TD>
54<TD><B><A HREF="#" onClick="setSort( 'req_cpu' )">Requested CPU time</A></B></TD>
55<TD><B><A HREF="#" onClick="setSort( 'req_mem' )">Requested Memory</A></B></TD>
56<TD><B>Current <A HREF="#" onClick="setSort( 'nodes' )">Nodes</A>/<A HREF="#" onClick="setSort( 'cpus' )">Cpus</A></B></TD>
57<TD><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TD>
58<TD><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TD>
59</TR>
60
61<!-- START BLOCK : node -->
62  <TR>
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.