Tom Laermans 2dc8b807e9 syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2642 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-04 09:10:21 +00:00

36 lines
1.1 KiB
PHP

<?php
### FIXME - do this in a function and/or do it in graph-realtime.php
if(!isset($vars['interval'])) {
if ($device['os'] == "linux") {
$vars['interval'] = "15";
} else {
$vars['interval'] = "2";
}
}
print_optionbar_start();
echo("Polling Interval: ");
foreach (array(0.25, 1, 2, 5, 15, 60) as $interval)
{
echo($thinger);
if ($vars['interval'] == $interval) { echo("<span class='pagemenu-selected'>"); }
echo(generate_link($interval."s",$link_array,array('view'=>'realtime','interval'=>$interval)));
if ($vars['interval'] == $interval) { echo("</span>"); }
$thinger = " | ";
}
print_optionbar_end();
?>
<div align="center" style="margin: 30px;">
<object data="graph-realtime.php?type=bits&id=<?php echo($port['interface_id'] . "&interval=".$vars['interval']); ?>" type="image/svg+xml" width="1000" height="400">
<param name="src" value="graph.php?type=bits&id=<?php echo($port['interface_id'] . "&interval=".$vars['interval']); ?>" />
Your browser does not support the type SVG! You need to either use Firefox or download the Adobe SVG plugin.
</object>
</div>