Ignore:
Timestamp:
03/27/13 18:47:17 (9 years ago)
Author:
ramonb
Message:

graph.php,
overview.php:

  • display range in title
  • removed RRDs column count: now done via css

templates/overview.tpl:

  • removed RRDs column count: now done via css

index.php:

  • dont show range selector if no show hosts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.4/web/addons/job_monarch/overview.php

    r757 r758  
    894894        {
    895895            $rjqj_end = time();
    896             $rjqj_graphargs .= "&period_start=$rjqj_start&period_stop=$rjqj_end";
     896            $rjqj_title = rawurlencode( makeTime( ($rjqj_end - $rjqj_start) ) );
     897            $rjqj_graphargs .= "&period_start=$rjqj_start&period_stop=$rjqj_end&t=$rjqj_title";
    897898        }
    898899        else
     
    983984    {
    984985        $tpl_data->assign( "showhosts", "yes" );
    985 
    986         # Present a width list
    987         $cols_menu     = "<SELECT NAME=\"hc\" OnChange=\"toga_form.submit();\">\n";
    988 
    989         $hostcols     = ($hc) ? $hc : 4;
    990 
    991         foreach( range( 1, 25 ) as $cols )
    992         {
    993             $cols_menu    .= "<OPTION VALUE=$cols ";
    994 
    995             if ($cols == $hostcols)
    996             {
    997                 $cols_menu    .= "SELECTED";
    998             }
    999             $cols_menu    .= ">$cols\n";
    1000         }
    1001         $cols_menu     .= "</SELECT>\n";
    1002 
    1003         $tpl_data->assign( "metric","$metricname $units" );
    1004         $tpl_data->assign( "id", $filter['id'] );
    1005 
    1006         # Host columns menu defined in header.php
    1007         $tpl_data->assign( "cols_menu", $cols_menu );
    1008986
    1009987        $showhosts     = isset($sh) ? $sh : $default_showhosts;
Note: See TracChangeset for help on using the changeset viewer.