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:
Tom Laermans
2010-01-26 17:12:34 +00:00
parent ca3d83fad6
commit c41573fbee
+12 -6
View File
@@ -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>