mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	git-svn-id: http://www.observium.org/svn/observer/trunk@407 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			34 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
|   $daily_traffic   = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=215&height=100";
 | |
|   $daily_traffic  .= $args;
 | |
|   $daily_url       = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$day&to=$now&width=400&height=150";
 | |
|   $daily_url      .= $args;
 | |
| 
 | |
|   $weekly_traffic  = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=215&height=100";
 | |
|   $weekly_traffic .= $args;
 | |
|   $weekly_url      = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$week&to=$now&width=400&height=150";
 | |
|   $weekly_url     .= $args;
 | |
| 
 | |
|   $monthly_traffic = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=215&height=100";
 | |
|   $monthly_traffic .= $args;
 | |
|   $monthly_url     = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$month&to=$now&width=400&height=150";
 | |
|   $monthly_url    .= $args;
 | |
| 
 | |
|   $yearly_traffic  = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=215&height=100";
 | |
|   $yearly_traffic .= $args;
 | |
|   $yearly_url      = "graph.php?host=" . $device['device_id'] . "&type=$graph_type&from=$year&to=$now&width=400&height=150";
 | |
|   $yearly_url     .= $args; 
 | |
| 
 | |
|   echo("<a onmouseover=\"return overlib('<img src=\'$daily_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
 | |
|         <img src='$daily_traffic' border=0></a> ");
 | |
|   echo("<a onmouseover=\"return overlib('<img src=\'$weekly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
 | |
|         <img src='$weekly_traffic' border=0></a> ");
 | |
|   echo("<a onmouseover=\"return overlib('<img src=\'$monthly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
 | |
|         <img src='$monthly_traffic' border=0></a> ");
 | |
|   echo("<a onmouseover=\"return overlib('<img src=\'$yearly_url\'>', LEFT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\">
 | |
|         <img src='$yearly_traffic' border=0></a>");
 | |
| 
 | |
| ?>
 | |
| 
 |