mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	some prettier icons on device overviews
git-svn-id: http://www.observium.org/svn/observer/trunk@1148 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -5,7 +5,7 @@ if(mysql_result(mysql_query("SELECT count(fan_id) from fanspeed WHERE device_id
 | 
			
		||||
  $total = mysql_result(mysql_query("SELECT count(fan_id) from fanspeed WHERE device_id = '" . $device['device_id'] . "'"),0);
 | 
			
		||||
  $rows = round($total / 2,0);
 | 
			
		||||
  echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/fans.png'> Fanspeeds</p>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/fanspeeds.png'> Fanspeeds</p>");
 | 
			
		||||
  $i = '1';
 | 
			
		||||
  $fans = mysql_query("SELECT * FROM fanspeed WHERE device_id = '" . $device['device_id'] . "'");
 | 
			
		||||
  echo("<table width=100% valign=top>");
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
if(mysql_result(mysql_query("SELECT count(*) from mempools WHERE device_id = '" . $device['device_id'] . "'"),0)) {
 | 
			
		||||
  echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/overview/mempools.png'> Memory Pools</p>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/memory.png'> Memory Pools</p>");
 | 
			
		||||
  echo("<table width=100% cellspacing=0 cellpadding=5>");
 | 
			
		||||
  $mempool_rows = '1';
 | 
			
		||||
  $mempools = mysql_query("SELECT * FROM `mempools` WHERE device_id = '" . $device['device_id'] . "'");
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
if(mysql_result(mysql_query("SELECT count(*) from processors WHERE device_id = '" . $device['device_id'] . "'"),0)) {
 | 
			
		||||
  $processor_rows = 0;
 | 
			
		||||
  echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/overview/processors.png'> Processors</p>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/processors.png'> Processors</p>");
 | 
			
		||||
  echo("<table width=100% cellspacing=0 cellpadding=5>");
 | 
			
		||||
  $i = '1';
 | 
			
		||||
  $procs = mysql_query("SELECT * FROM `processors` WHERE device_id = '" . $device['device_id'] . "' ORDER BY processor_descr ASC");
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@ unset($temp_seperator);
 | 
			
		||||
if($total = mysql_result(mysql_query("SELECT count(temp_id) from temperature WHERE device_id = '" . $device['device_id'] . "'"),0)) {
 | 
			
		||||
  $rows = round($total / 2,0);
 | 
			
		||||
  echo("<div style='background-color: #eeeeee; margin: 5px; padding: 5px;'>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/temperature.png'> Temperatures</p>");
 | 
			
		||||
  echo("<p style='padding: 0px 5px 5px;' class=sectionhead><img align='absmiddle' src='".$config['base_url']."/images/icons/temperatures.png'> Temperatures</p>");
 | 
			
		||||
  $i = '1';
 | 
			
		||||
  $temps = mysql_query("SELECT * FROM temperature WHERE device_id = '" . $device['device_id'] . "' ORDER BY temp_index");
 | 
			
		||||
  echo('<table width="100%" valign="top">');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user