"; $h2=$h2.form_select("period",3600,"1h"); $h2=$h2.form_select("period",2*3600,"2h"); $h2=$h2.form_select("period",4*3600,"4h"); $h2=$h2.form_select("period",8*3600,"8h"); $h2=$h2.form_select("period",12*3600,"12h"); $h2=$h2.form_select("period",24*3600,"24h"); $h2=$h2.form_select("period",7*24*3600,"week"); $h2=$h2.form_select("period",31*24*3600,"month"); $h2=$h2.form_select("period",365*24*3600,"year"); $h2=$h2.""; $h2=$h2.""; $h2=$h2.""; $h2=$h2." ".S_MOVE." "; $h2=$h2.""; $h2=$h2.""; $h2=$h2." "; $h2=$h2.""; $h2=$h2." "; $h2=$h2.""; $h2=$h2.""; if(isset($_REQUEST["graphid"])&&($_REQUEST["graphid"]!=0)) { $h2=$h2.""; } if(isset($_REQUEST["screenid"])&&($_REQUEST["screenid"]!=0)) { $h2=$h2.""; } if(isset($_REQUEST["itemid"])&&($_REQUEST["itemid"]!=0)) { $h2=$h2.""; } if(isset($_REQUEST["action"])) { $h2=$h2.""; } if(isset($_REQUEST["from"])) { $h2=$h2.""; } if(isset($_REQUEST["fullscreen"])) { $h2=$h2.""; } show_header2($h1,$h2,"
"); return; 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 "