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

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

toga/libtoga.php:

  • Code cleanup
  • Http vars fix

toga/image.php:

  • Http vars fix
File size: 490 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
[111]10        $ic = new ClusterImage( $clustername );
[110]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.