From dbcfd0cec931d37f5640a9c07163076c1ce2343d Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sat, 9 Apr 2011 12:35:24 +0000 Subject: [PATCH] omnomnom icons begone (also remove plurals from menu to gain more space) git-svn-id: http://www.observium.org/svn/observer/trunk@2038 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/css/styles.css | 8 +++ .../icons/{fanspeeds.png => fanspeed.png} | Bin .../icons/{frequencies.png => frequency.png} | Bin .../greyscale/{fanspeeds.png => fanspeed.png} | Bin .../{frequencies.png => frequency.png} | Bin .../{processors.png => processor.png} | Bin .../{temperatures.png => temperature.png} | Bin .../greyscale/{voltages.png => voltage.png} | Bin .../icons/{processors.png => processor.png} | Bin .../{temperatures.png => temperature.png} | Bin .../icons/{voltages.png => voltage.png} | Bin html/pages/health.inc.php | 46 +++++++++--------- html/pages/health/current.inc.php | 14 +++--- .../{fanspeeds.inc.php => fanspeed.inc.php} | 0 ...{frequencies.inc.php => frequency.inc.php} | 0 .../{processors.inc.php => processor.inc.php} | 0 ...mperatures.inc.php => temperature.inc.php} | 0 .../{voltages.inc.php => voltage.inc.php} | 0 18 files changed, 38 insertions(+), 30 deletions(-) rename html/images/icons/{fanspeeds.png => fanspeed.png} (100%) rename html/images/icons/{frequencies.png => frequency.png} (100%) rename html/images/icons/greyscale/{fanspeeds.png => fanspeed.png} (100%) rename html/images/icons/greyscale/{frequencies.png => frequency.png} (100%) rename html/images/icons/greyscale/{processors.png => processor.png} (100%) rename html/images/icons/greyscale/{temperatures.png => temperature.png} (100%) rename html/images/icons/greyscale/{voltages.png => voltage.png} (100%) rename html/images/icons/{processors.png => processor.png} (100%) rename html/images/icons/{temperatures.png => temperature.png} (100%) rename html/images/icons/{voltages.png => voltage.png} (100%) rename html/pages/health/{fanspeeds.inc.php => fanspeed.inc.php} (100%) rename html/pages/health/{frequencies.inc.php => frequency.inc.php} (100%) rename html/pages/health/{processors.inc.php => processor.inc.php} (100%) rename html/pages/health/{temperatures.inc.php => temperature.inc.php} (100%) rename html/pages/health/{voltages.inc.php => voltage.inc.php} (100%) diff --git a/html/css/styles.css b/html/css/styles.css index 1ce5892501..4f5edbecc8 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -1,3 +1,11 @@ +.pagemenu-selected { + font-weight: bold; + background-color: #cecece; + -moz-border-radius: 15px; + border-radius: 15px; + padding: 2px 8px 3px 8px; +} + .submit { background-image:url('/images/submitbg.png'); background-position:0 100%; diff --git a/html/images/icons/fanspeeds.png b/html/images/icons/fanspeed.png similarity index 100% rename from html/images/icons/fanspeeds.png rename to html/images/icons/fanspeed.png diff --git a/html/images/icons/frequencies.png b/html/images/icons/frequency.png similarity index 100% rename from html/images/icons/frequencies.png rename to html/images/icons/frequency.png diff --git a/html/images/icons/greyscale/fanspeeds.png b/html/images/icons/greyscale/fanspeed.png similarity index 100% rename from html/images/icons/greyscale/fanspeeds.png rename to html/images/icons/greyscale/fanspeed.png diff --git a/html/images/icons/greyscale/frequencies.png b/html/images/icons/greyscale/frequency.png similarity index 100% rename from html/images/icons/greyscale/frequencies.png rename to html/images/icons/greyscale/frequency.png diff --git a/html/images/icons/greyscale/processors.png b/html/images/icons/greyscale/processor.png similarity index 100% rename from html/images/icons/greyscale/processors.png rename to html/images/icons/greyscale/processor.png diff --git a/html/images/icons/greyscale/temperatures.png b/html/images/icons/greyscale/temperature.png similarity index 100% rename from html/images/icons/greyscale/temperatures.png rename to html/images/icons/greyscale/temperature.png diff --git a/html/images/icons/greyscale/voltages.png b/html/images/icons/greyscale/voltage.png similarity index 100% rename from html/images/icons/greyscale/voltages.png rename to html/images/icons/greyscale/voltage.png diff --git a/html/images/icons/processors.png b/html/images/icons/processor.png similarity index 100% rename from html/images/icons/processors.png rename to html/images/icons/processor.png diff --git a/html/images/icons/temperatures.png b/html/images/icons/temperature.png similarity index 100% rename from html/images/icons/temperatures.png rename to html/images/icons/temperature.png diff --git a/html/images/icons/voltages.png b/html/images/icons/voltage.png similarity index 100% rename from html/images/icons/voltages.png rename to html/images/icons/voltage.png diff --git a/html/pages/health.inc.php b/html/pages/health.inc.php index 2f9cd6fa01..3868a46cb5 100644 --- a/html/pages/health.inc.php +++ b/html/pages/health.inc.php @@ -1,6 +1,6 @@ "); - echo(''); + echo(""); + #'style='font-weight: bold; background-color: #ffffff; -moz-border-radius: 15px; border-radius: 15px; padding: 2px 8px;'>"); +# echo(''); } else { - echo(''); +# echo(''); } - echo(' ' . $texttype ."\n"); - if ($_GET['opta'] == $type) { echo(""); } + echo('' . $texttype .""); + + if ($_GET['opta'] == $type) { echo(""); } + $sep = ' | '; } @@ -32,32 +35,29 @@ echo('
'); if ($_GET['optb'] == "graphs") { - echo(''); - echo(''); -} else { - echo(''); + echo(''); } echo(' Graphs'); if ($_GET['optb'] == "graphs") { - echo(''); + echo(''); } echo(' | '); if ($_GET['optb'] == "nographs") { - echo(''); - echo(''); -} else { - echo(''); + echo(''); } echo(' No Graphs'); -if ($_GET['optb'] == "nographs") { echo(''); } +if ($_GET['optb'] == "nographs") +{ + echo(''); +} echo('
'); @@ -65,20 +65,20 @@ print_optionbar_end(); switch ($_GET['opta']) { - case 'processors': + case 'processor': case 'memory': case 'storage': - case 'temperatures': + case 'temperature': case 'humidity': - case 'voltages': - case 'fanspeeds': - case 'frequencies': + case 'voltage': + case 'fanspeed': + case 'frequency': case 'current': include('pages/health/'.$_GET['opta'].'.inc.php'); break; default: - include('pages/health/temperatures.inc.php'); + include('pages/health/temperature.inc.php'); break; } -?> \ No newline at end of file +?> diff --git a/html/pages/health/current.inc.php b/html/pages/health/current.inc.php index 58cb9777bc..92f6faa9e3 100644 --- a/html/pages/health/current.inc.php +++ b/html/pages/health/current.inc.php @@ -31,18 +31,18 @@ while ($sensor = mysql_fetch_assoc($query)) { if (is_integer($row/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; } - $weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=500&height=150"; + $weekly_sensor = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=500&height=150"; $sensor_popup = "', LEFT);\" onmouseout=\"return nd();\"> " . $sensor['sensor_descr'] . ""; if ($sensor['sensor_current'] >= $sensor['sensor_limit']) { $alert = 'alert'; } else { $alert = ""; } - $sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=300&height=100"; - $sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=300&height=100"; - $sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=300&height=100"; - $sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100"; + $sensor_day = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=300&height=100"; + $sensor_week = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$week&to=$now&width=300&height=100"; + $sensor_month = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$month&to=$now&width=300&height=100"; + $sensor_year = "graph.php?id=" . $sensor['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100"; - $sensor_minigraph = "".$sensor['hostname']." - ".$sensor['sensor_descr']; $sensor_minigraph .= "
', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >"; @@ -90,4 +90,4 @@ while ($sensor = mysql_fetch_assoc($query)) echo(""); -?> \ No newline at end of file +?> diff --git a/html/pages/health/fanspeeds.inc.php b/html/pages/health/fanspeed.inc.php similarity index 100% rename from html/pages/health/fanspeeds.inc.php rename to html/pages/health/fanspeed.inc.php diff --git a/html/pages/health/frequencies.inc.php b/html/pages/health/frequency.inc.php similarity index 100% rename from html/pages/health/frequencies.inc.php rename to html/pages/health/frequency.inc.php diff --git a/html/pages/health/processors.inc.php b/html/pages/health/processor.inc.php similarity index 100% rename from html/pages/health/processors.inc.php rename to html/pages/health/processor.inc.php diff --git a/html/pages/health/temperatures.inc.php b/html/pages/health/temperature.inc.php similarity index 100% rename from html/pages/health/temperatures.inc.php rename to html/pages/health/temperature.inc.php diff --git a/html/pages/health/voltages.inc.php b/html/pages/health/voltage.inc.php similarity index 100% rename from html/pages/health/voltages.inc.php rename to html/pages/health/voltage.inc.php