Last change
on this file since 114 was
114,
checked in by bastiaans, 18 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
|
Line | |
---|
1 | <?php |
---|
2 | include_once "./libtoga.php"; |
---|
3 | |
---|
4 | $httpvars = new HTTPVariables( $HTTP_GET_VARS ); |
---|
5 | $view = $httpvars->getHttpVar( "view" ); |
---|
6 | $clustername = $httpvars->getClusterName(); |
---|
7 | |
---|
8 | function drawSmallClusterImage() { |
---|
9 | |
---|
10 | $ic = new ClusterImage( $clustername, null ); |
---|
11 | $ic->draw(); |
---|
12 | } |
---|
13 | |
---|
14 | function drawBigClusterImage() { |
---|
15 | |
---|
16 | $ic = new ClusterImage( $clustername, null ); |
---|
17 | $ic->draw(); |
---|
18 | } |
---|
19 | |
---|
20 | switch( $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.