Ignore:
Timestamp:
06/01/05 16:55:14 (18 years ago)
Author:
bastiaans
Message:

web/addons/toga/templates/overview.tpl:

  • Cosmetic HTML change

web/addons/toga/index.php:

  • Added Joblist filter tree text

web/addons/toga/overview.php:

  • Setup clusterimage filter

web/addons/toga/image.php:

  • Added filter handling

web/addons/toga/libtoga.php:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/toga/overview.php

    r120 r122  
    11<?php
    2 global $GANGLIA_PATH, $clustername, $tpl, $filter;
     2global $GANGLIA_PATH, $clustername, $tpl, $filter, $cluster, $get_metric_string, $cluster_url;
    33
    44$data_gatherer = new DataGatherer();
     
    66//$tpl->assign( "self", "./index.php" );
    77$tpl->assign( "clustername", $clustername );
    8 $tpl->assign( "clusterimage", "./image.php?c=".rawurlencode($clustername)."&view=big-clusterimage" );
    98
    109$data_gatherer->parseXML();
     
    1413$nodes = $data_gatherer->getNodes();
    1514
     15$filter_image_url = "";
     16
    1617foreach( $filter as $filtername => $filtervalue ) {
    1718        $tpl->assign( "f_".$filtername, $filtervalue );
    18 }
     19        $filter_image_url .= "&$filtername=$filtervalue";
     20}
     21
     22$tpl->assign( "clusterimage", "./image.php?c=".rawurlencode($clustername)."&view=big-clusterimage".$filter_image_url );
    1923
    2024$tpl->assign("heartbeat", makeDate( $heartbeat ) );
     
    2226$pie = drawPie();
    2327$tpl->assign("pie", $pie );
     28
     29//if( !array_key_exists( 'id', $filter ) ) {
     30
     31//      $graph_args = "c=$cluster_url&$get_metric_string&st=$cluster[LOCALTIME]";
     32//      $tpl->newBlock( "average_graphs" );
     33//      $tpl->assign( "graph_args", $graph_args );
     34//}
    2435
    2536function timeToEpoch( $time ) {
Note: See TracChangeset for help on using the changeset viewer.