r2676 - buildCellFilter(): replaced by getCellFilter()
[racktables] / popup.php
index 15ce356193384bf224fda56253def9ddafd3155c..be8a29ebebc0b20d01611ea7af3c95168b8cb38a 100644 (file)
--- a/popup.php
+++ b/popup.php
                        echo '<input type=hidden id=ip>';
                        echo '<select size=' . getConfigVar ('MAXSELSIZE') . ' id=addresses>';
                        renderAllIPv4Allocations();
+                       $addresses = getAllIPv4Allocations();
+                       usort ($addresses, 'sortObjectAddressesAndNames');
+                       foreach ($addresses as $address)
+                               echo "<option value='${address['ip']}' onclick='getElementById(\"ip\").value=\"${address['ip']}\";'>" .
+                                       "${address['object_name']} ${address['name']} ${address['ip']}</option>\n";
                        echo '</select><br><br>';
                        echo "<input type=submit value='Proceed' onclick='".
                        "if (getElementById(\"ip\")!=\"\") {".