array(T_ZBX_INT, O_OPT, P_SYS, DB_ID,NULL), "hostid"=> array(T_ZBX_INT, O_OPT, P_SYS, DB_ID,NULL), "graphid"=> array(T_ZBX_INT, O_OPT, P_SYS|P_NZERO, DB_ID,NULL), "dec"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL), "inc"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL), "from"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL), "period"=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535*65535),NULL), "stime"=> array(T_ZBX_STR, O_OPT, P_SYS, NULL,NULL), "action"=> array(T_ZBX_STR, O_OPT, P_SYS, IN("'go'"),NULL), "reset"=> array(T_ZBX_STR, O_OPT, P_SYS, IN("'reset'"),NULL), "fullscreen"=> array(T_ZBX_INT, O_OPT, P_SYS, IN("1"), NULL) ); check_fields($fields); ?> ".$graph."", "".$graph.""); } else { $h1=S_SELECT_GRAPH_TO_DISPLAY; } $h1=S_GRAPHS_BIG.nbsp(" / ").$h1; $h2=S_GROUP." "; $h2=$h2.""; $h2=$h2." ".S_HOST." "; $h2=$h2.""; if(isset($_REQUEST["fullscreen"])) { $h2=""; } if(isset($_REQUEST["graphid"])&&($_REQUEST["graphid"]==0)) { unset($_REQUEST["graphid"]); } $h2=$h2." ".S_GRAPH." "; $h2=$h2.""; show_header2($h1,$h2,"
"); ?> "; echo "| ";
echo " ";
echo "".S_PERIOD.": ";
$hour=3600;
$a=array(S_1H=>3600,S_2H=>2*3600,S_4H=>4*3600,S_8H=>8*3600,S_12H=>12*3600,
S_24H=>24*3600,S_WEEK_SMALL=>7*24*3600,S_MONTH_SMALL=>31*24*3600,S_YEAR_SMALL=>365*24*3600);
foreach($a as $label=>$sec)
{
echo "[";
if($_REQUEST["period"]>$sec)
{
$tmp=$_REQUEST["period"]-$sec;
echo("-");
}
else
{
echo "-";
}
echo("");
echo($label."");
$tmp=$_REQUEST["period"]+$sec;
echo("+");
echo "] ";
}
echo(" ");
echo " | ";
echo ""; echo "".nbsp(S_KEEP_PERIOD).": "; if($_REQUEST["keep"] == 1) { echo("[".S_ON_C."]"); } else { echo("[".S_OFF_C."]"); } echo " | "; echo "
| ";
if(isset($_REQUEST["stime"]))
{
echo " " ;
echo "".S_MOVE.": " ;
$day=24;
// $a already defined
$a=array("1h"=>1,"2h"=>2,"4h"=>4,"8h"=>8,"12h"=>12,
"24h"=>24,"week"=>7*24,"month"=>31*24,"year"=>365*24);
foreach($a as $label=>$hours)
{
echo "[";
$stime=$_REQUEST["stime"];
$tmp=mktime(substr($stime,8,2),substr($stime,10,2),0,substr($stime,4,2),substr($stime,6,2),substr($stime,0,4));
$tmp=$tmp-3600*$hours;
$tmp=date("YmdHi",$tmp);
echo("-");
echo($label);
$stime=$_REQUEST["stime"];
$tmp=mktime(substr($stime,8,2),substr($stime,10,2),0,substr($stime,4,2),substr($stime,6,2),substr($stime,0,4));
$tmp=$tmp+3600*$hours;
$tmp=date("YmdHi",$tmp);
echo("+");
echo "] ";
}
echo(" ");
}
else
{
echo "";
echo "".S_MOVE.": ";
$day=24;
// $a already defined
$a=array("1h"=>1,"2h"=>2,"4h"=>4,"8h"=>8,"12h"=>12,
"24h"=>24,"week"=>7*24,"month"=>31*24,"year"=>365*24);
foreach($a as $label=>$hours)
{
echo "[";
$tmp=$_REQUEST["from"]+$hours;
echo("-");
echo($label);
if($_REQUEST["from"]>=$hours)
{
$tmp=$_REQUEST["from"]-$hours;
echo("+");
}
else
{
echo "+";
}
echo "] ";
}
echo(" ");
}
echo " | ";
echo "";
// echo(" ");
echo "";
// echo(" ");
echo " | ";
echo "