Fix lista IP aggiuna macchina in firewall

This commit is contained in:
Claudio Maffioletti
2017-07-26 14:46:24 +02:00
parent ffc18e596a
commit 7ad4ca5014
4 changed files with 7 additions and 81 deletions

View File

@@ -25,8 +25,8 @@ $query = " SELECT
WHERE
id NOT IN (SELECT id_proxy_pool FROM firewall_macchine)
ORDER BY
-nome DESC,
INET_ATON(ip) ASC
INET_ATON(ip) ASC,
-nome DESC
";
$res = mysql_query( $query, $DB_ID );
@@ -41,7 +41,7 @@ $tabella = new html (0,"90%",array(3,3,2,15,2,15,2,15,0));
<select name="id">
<option value="" selected="selected">---</option>
<?php while ($dato = mysql_fetch_array ( $res )) { ?>
<option value="<?php print $dato['id'] ?>"><?php print $dato['nome']." - ".$dato['ip'] ?></option>
<option value="<?php print $dato['id'] ?>"><?php print $dato['ip']." - ".$dato['nome'] ?></option>
<?php } ?>
</select>
</td>