} ?> <?php $db = new ossim_db(); $conn = $db->connect(); if ($show_anom != "1") { $count = Host_services::get_list_count($conn); if ($num == "all") { $sup = $count; $inf = 0; } $Host_services_list = Host_services::get_list($conn, $inf, $sup); } else { $Host_services_list = Host_services::get_anom_list($conn, "", "all"); $count = count($Host_services_list); $sup = $count; $inf = 0; } ?> <?php if ($show_anom != "1") { ?> <form method="GET" action="services.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_services_list = Host_services::get_anom_list($conn)) { foreach ($anom_services_list as $anom_services) { ?> <tr <?php if ($ex_serv == $anom_services["ip"] && $ex_servs == $anom_services["sensor"] && $ex_servp == $anom_services["port"]) { echo "bgcolor=\"#DFDFDF\""; } ?> > <td colspan="1"> <?php if ($ex_serv == $anom_services["ip"] && $ex_servs == $anom_services["sensor"] && $ex_servp == $anom_services["port"]) { ?> <a href="<?php echo $_SERVER["SCRIPT_NAME"];