mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Moving device sub-pages
git-svn-id: http://www.observium.org/svn/observer/trunk@51 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		
							
								
								
									
										24
									
								
								html/pages/device/dev-srv.inc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								html/pages/device/dev-srv.inc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,24 @@
 | 
			
		||||
<?
 | 
			
		||||
 | 
			
		||||
$hostname = gethostbyid($_GET[id]);
 | 
			
		||||
 | 
			
		||||
if(mysql_result(mysql_query("select count(service_id) from services WHERE service_host = '$_GET[id]'"), 0) > '0') {
 | 
			
		||||
 | 
			
		||||
   echo("<div style='margin: 5px;'><table cellpadding=7 border=0 cellspacing=0 width=100%>");
 | 
			
		||||
   $i = "1";
 | 
			
		||||
   $service_query = mysql_query("select * from services WHERE service_host = '$_GET[id]' ORDER BY service_type");
 | 
			
		||||
   while($service = mysql_fetch_array($service_query)) {
 | 
			
		||||
 | 
			
		||||
	include("includes/print-service.inc");
 | 
			
		||||
   }
 | 
			
		||||
   echo("</table></div>");
 | 
			
		||||
 | 
			
		||||
} else {
 | 
			
		||||
 | 
			
		||||
   echo("No Services");
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user