source: trunk/web/addons/toga/image.php @ 111

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

toga/conf.php:

  • How nodes will be marked with a job is now configurable

toga/image.php:

  • Really use clustername for image

toga/libtoga.php:

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