} ?> <?php $db = new ossim_db(); $conn = $db->connect(); if ($show_anom != "1") { $count = Host_mac::get_list_count($conn); if ($num == "all") { $sup = $count; $inf = 0; } $host_mac_list = Host_mac::get_list($conn, $inf, $sup); } else { $host_mac_list = Host_mac::get_anom_list($conn, "", "all"); $count = count($host_mac_list); $sup = $count; $inf = 0; } ?> <?php if ($show_anom != "1") { ?> <form method="GET" action="mac.php"> <?php echo gettext("Show"); ?> <input type="hidden" name="inf" value="<?php echo $inf;
?> <th> <?php echo gettext("Ack"); ?> </th> <th> <?php echo gettext("Ignore"); ?> </th> <th></th> <?php } ?> </tr> <?php if ($anom_mac_list = Host_mac::get_anom_list($conn)) { foreach ($anom_mac_list as $anom_mac) { ?> <tr <?php if ($ex_mac == $anom_mac["ip"] && $ex_macs == $anom_mac["sensor"]) { echo "bgcolor=\"#DFDFDF\""; } ?> > <td colspan="1"> <?php if ($ex_mac == $anom_mac["ip"] && $ex_macs == $anom_mac["sensor"]) { ?> <a href="<?php echo $_SERVER["SCRIPT_NAME"];