Fix background color

Fixed class definitions
This commit is contained in:
f0o
2015-10-02 01:43:05 +00:00
parent 6c803a5522
commit 13d0047891

View File

@@ -222,7 +222,7 @@ function generate_device_link($device, $text=null, $vars=array(), $start=0, $end
$url = generate_device_url($device, $vars);
// beginning of overlib box contains large hostname followed by hardware & OS details
$contents = '<div style="background-color: #FFFFFF;"><span class=list-large>'.$device['hostname'].'</span>';
$contents = '<div><span class="list-large">'.$device['hostname'].'</span>';
if ($device['hardware']) {
$contents .= ' - '.$device['hardware'];
}
@@ -248,8 +248,8 @@ function generate_device_link($device, $text=null, $vars=array(), $start=0, $end
foreach ($graphs as $entry) {
$graph = $entry['graph'];
$graphhead = $entry['text'];
$contents .= '<div class=overlib-box style="background-color: #FFFFFF;">';
$contents .= '<span class=overlib-title>'.$graphhead.'</span><br />';
$contents .= '<div class="overlib-box">';
$contents .= '<span class="overlib-title">'.$graphhead.'</span><br />';
$contents .= generate_minigraph_image($device, $start, $end, $graph);
$contents .= generate_minigraph_image($device, $config['time']['week'], $end, $graph);
$contents .= '</div>';
@@ -279,6 +279,7 @@ function generate_device_link($device, $text=null, $vars=array(), $start=0, $end
function overlib_link($url, $text, $contents, $class) {
global $config;
$contents = "<div style=\'background-color: #FFFFFF;\'>".$contents.'</div>';
$contents = str_replace('"', "\'", $contents);
$output = '<a class="'.$class.'" href="'.$url.'"';
if ($config['web_mouseover'] === false) {