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

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

toga/libtoga.php:

  • Code cleanup
  • Http vars fix

toga/image.php:

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