diff --git a/html/images/os/apc.png b/html/images/os/apc.png new file mode 100644 index 000000000..7bf9f73f1 Binary files /dev/null and b/html/images/os/apc.png differ diff --git a/html/pages/device/overview/frequencies.inc.php b/html/pages/device/overview/frequencies.inc.php new file mode 100644 index 000000000..ea6c66527 --- /dev/null +++ b/html/pages/device/overview/frequencies.inc.php @@ -0,0 +1,45 @@ +"); + echo("

Frequencies

"); + $i = '1'; + $freqs = mysql_query("SELECT * FROM frequency WHERE device_id = '" . $device['device_id'] . "'"); + echo(""); + echo(""); + echo("
"); + echo(""); + while($freq = mysql_fetch_array($freqs)) { + if(is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } + + $graph_colour = str_replace("#", "", $row_colour); + + $freq_day = "graph.php?id=" . $freq['freq_id'] . "&type=frequency&from=$day&to=$now&width=300&height=100"; + $freq_week = "graph.php?id=" . $freq['freq_id'] . "&type=frequency&from=$week&to=$now&width=300&height=100"; + $freq_month = "graph.php?id=" . $freq['freq_id'] . "&type=frequency&from=$month&to=$now&width=300&height=100"; + $freq_year = "graph.php?id=" . $freq['freq_id'] . "&type=frequency&from=$year&to=$now&width=300&height=100"; + $freq_minigraph = ""; + + $freq_link = ""; + + $freq_link_c = $freq_link . " $freq['freq_limit'] ? "style='color: red'" : '') . '>' . $freq['freq_current'] . "Hz"; + $freq_link_b = $freq_link . $freq_minigraph . ""; + $freq_link_a = $freq_link . $freq['freq_descr'] . ""; + + $freq['freq_descr'] = truncate($freq['freq_descr'], 25, ''); + echo(""); + if($i == $rows) { echo("
$freq_link_a$freq_link_b$freq_link_c
"); } + $i++; + } + echo("
"); + echo("
"); + echo(""); +} + + +?> diff --git a/includes/polling/device-apc.inc.php b/includes/polling/device-apc.inc.php new file mode 100755 index 000000000..e84b32080 --- /dev/null +++ b/includes/polling/device-apc.inc.php @@ -0,0 +1,9 @@ +