source: trunk/web/addons/toga/image.php @ 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: 555 bytes
Line 
1<?php
2include_once "./libtoga.php";
3
4$httpvars = new HTTPVariables( $HTTP_GET_VARS, $_GET );
5$view = $httpvars->getHttpVar( "view" );
6$clustername = $httpvars->getClusterName();
7
8function drawSmallClusterImage() {
9
10        $ic = new ClusterImage( $clustername, null );
11        $ic->draw();
12}
13
14function drawBigClusterImage() {
15
16        $ic = new ClusterImage( $clustername, null );
17        $ic->draw();
18}
19
20switch( $view ) {
21
22        case "small-clusterimage":
23
24                drawSmallClusterImage();
25               
26                break;
27
28        case "big-clusterimage":
29
30                drawBigClusterImage();
31       
32                break;
33
34        default:
35
36                break;
37}
38
39?>
Note: See TracBrowser for help on using the repository browser.