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

Last change on this file since 114 was 114, checked in by bastiaans, 19 years ago

web/addons/toga/libtoga.php:

  • Functions added to support overview

web/addons/toga/image.php:

web/addons/toga/overview.php:

  • Added pie chart
  • Added job overview
File size: 548 bytes
RevLine 
[110]1<?php
2include_once "./libtoga.php";
3
[112]4$httpvars = new HTTPVariables( $HTTP_GET_VARS );
[110]5$view = $httpvars->getHttpVar( "view" );
[111]6$clustername = $httpvars->getClusterName();
[110]7
8function drawSmallClusterImage() {
9
[114]10        $ic = new ClusterImage( $clustername, null );
[110]11        $ic->draw();
12}
13
14function drawBigClusterImage() {
15
[114]16        $ic = new ClusterImage( $clustername, null );
17        $ic->draw();
[110]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.