-- zabbix-1.4.6.tar.gz --
./zabbix-1.4.6/frontends/php/report4.php
yearly/monthly/dayly summary has only one column for "period",
but weekly summary has two columns for "from" and "to".
original source code:
summary value displays into incollect position
patched code
summary value displays into collect position
./zabbix-1.4.6/frontends/php/report4.php
Code:
@@ -116,7 +116,7 @@
case "yearly":
$from = $MIN_YEAR;
$to = date("Y");
- array_unshift($header, new CCol(S_YEAR,"center"));
+ array_unshift($header, new CCol(S_YEAR,"center"),new CCol("","center"));
function get_time($y) { return mktime(0,0,0,1,1,$y); }
function format_time($t){ return date("Y", $t); }
function format_time2($t){ return null; };
@@ -124,7 +124,7 @@
case "monthly":
$from = 1;
$to = 12;
- array_unshift($header, new CCol(S_MONTH,"center"));
+ array_unshift($header, new CCol(S_MONTH,"center"),new CCol("","center"));
function get_time($m) { global $year; return mktime(0,0,0,$m,1,$year); }
function format_time($t){ return date("M Y",$t); }
function format_time2($t){ return null; };
@@ -132,7 +132,7 @@
case "dayly":
$from = 1;
$to = 365;
- array_unshift($header, new CCol(S_DAY,"center"));
+ array_unshift($header, new CCol(S_DAY,"center"),new CCol("","center"));
function get_time($d) { global $year; return mktime(0,0,0,1,$d,$year); }
function format_time($t){ return date("d M Y",$t); }
function format_time2($t){ return null; };
but weekly summary has two columns for "from" and "to".
original source code:
summary value displays into incollect position
patched code
summary value displays into collect position