diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
new file mode 100644
index 000000000..3840ea447
--- /dev/null
+++ b/html/includes/functions.inc.php
@@ -0,0 +1,55 @@
+', CAPTION, '" . $args['hostname'] . " - " . fixifName($args['label']) . "";
+ if($args['ifAlias']) { $link .= "
" . $args['ifAlias']; }
+ $link .= "' ";
+ $link .= $config['overlib_defaults'].");\" onmouseout=\"return nd();\" >".$args['content']."";
+ return $link;
+}
+
+function generate_port_thumbnail($args) {
+ if(!$args['bg']) { $args['bg'] = "FFFFF"; }
+ $args['content'] = "";
+ $output = generate_if_link($args);
+ echo $output;
+}
+
+function print_optionbar_start () {
+ echo("
+
| ".$pw_a['cpwVcID']." | ".generatedevicelink($pw_a)." | ".generateiflink($pw_a)." | -=> | + if($bg == "ffffff") { $bg = "e5e5e5"; } else { $bg="ffffff"; } + echo("||
| ".$pw_a['cpwVcID']." | ".generatedevicelink($pw_a)." | ".generateiflink($pw_a)." | + |
".generatedevicelink($pw_b)." | ".generateiflink($pw_b)." |
| ".$pw_a['ifAlias']." | ".$pw_b['ifAlias']." | ||||
| ".$pw_a['ifAlias']." | ".$pw_b['ifAlias']." | ||||
| "); + if(!$optb) { $optb = "mini"; } + if($pw_a) { + $pw_a['width'] = "150"; + $pw_a['height'] = "30"; + $pw_a['from'] = $day; + $pw_a['to'] = $now; + $pw_a['bg'] = $bg; + $types = array('bits','pkts','errors'); + foreach($types as $graph_type) { + $pw_a['graph_type'] = $graph_type; + generate_port_thumbnail($pw_a); + } + } + echo(" | "); + + if($pw_b) { + $pw_b['width'] = "150"; + $pw_b['height'] = "30"; + $pw_b['from'] = $day; + $pw_b['to'] = $now; + $pw_b['bg'] = $bg; + $types = array('bits','pkts','errors'); + foreach($types as $graph_type) { + $pw_b['graph_type'] = $graph_type; + generate_port_thumbnail($pw_b); + } + } + + echo(" | ||||