mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 16:04:35 +02:00
more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
<?php
|
||||
|
||||
$sql = "SELECT * FROM `ospf_instances` WHERE `device_id` = '".$device['device_id']."'";
|
||||
$query = mysql_query($sql);
|
||||
|
||||
$i_i = "0";
|
||||
|
||||
echo('<table width=100% border=0 cellpadding=5>');
|
||||
|
||||
#### Loop Instances
|
||||
|
||||
while ($instance = mysql_fetch_assoc($query))
|
||||
foreach (dbFetchRows("SELECT * FROM `ospf_instances` WHERE `device_id` = ?", array($device['device_id'])) as $instance)
|
||||
{
|
||||
if (!is_integer($i_i/2)) { $instance_bg = $list_colour_a; } else { $instance_bg = $list_colour_b; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user