mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix up dropdowns on interfaces page as well
git-svn-id: http://www.observium.org/svn/observer/trunk@731 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -36,9 +36,12 @@
|
||||
<?php
|
||||
$query = mysql_query("SELECT `ifSpeed` FROM `interfaces` GROUP BY `ifSpeed` ORDER BY `ifSpeed`");
|
||||
while($data = mysql_fetch_array($query)) {
|
||||
echo("<option value='".$data['ifSpeed']."'");
|
||||
if($data['ifSpeed'] == $_POST['ifSpeed']) { echo("selected"); }
|
||||
echo(">".humanspeed($data['ifSpeed'])."</option>");
|
||||
if ($data['ifSpeed'])
|
||||
{
|
||||
echo("<option value='".$data['ifSpeed']."'");
|
||||
if($data['ifSpeed'] == $_POST['ifSpeed']) { echo("selected"); }
|
||||
echo(">".humanspeed($data['ifSpeed'])."</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
@@ -49,9 +52,12 @@
|
||||
<?php
|
||||
$query = mysql_query("SELECT `ifType` FROM `interfaces` GROUP BY `ifType` ORDER BY `ifType`");
|
||||
while($data = mysql_fetch_array($query)) {
|
||||
echo("<option value='".$data['ifType']."'");
|
||||
if($data['ifType'] == $_POST['ifType']) { echo("selected"); }
|
||||
echo(">".$data['ifType']."</option>");
|
||||
if ($data['ifType'])
|
||||
{
|
||||
echo("<option value='".$data['ifType']."'");
|
||||
if($data['ifType'] == $_POST['ifType']) { echo("selected"); }
|
||||
echo(">".$data['ifType']."</option>");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user