print "</p>"; print "</div>"; print "<div id=\"dialogFalsePositiveByFilter\" title=\"Mark All Events of Current Filter as False Positive \" class=\"dialog_falsePositiveByFilter\">"; print "<p>"; print "Do you really want to mark ALL (" . $_SESSION['eventCount'] . ") events as false positive using Current Filter below?<br /><br />"; print $showFilter; print "<br />"; print "<div id=\"FPprogressbar\"></div>"; print "<div id=\"FPshowdata\"></div>"; print "<div id=\"FPshowmsg\"></div>"; print "<br />"; print "</p>"; print "</div>"; } elseif ($_SESSION['login'] and !$hideFilter and $pagId == 'management' and $sensorToDelete) { $sensorName = getsensorname($sensorToDelete); $sensorInfo = getSensorInfo($sensorToDelete); print "<div id=\"dialogDeleteSensor\" title=\"Delete Sensor\" class=\"dialog_deleteByFilter\">\n"; print "<p>\n"; print "Do you really want to delete sensor<b> " . $sensorName['name'] . " </b> and ALL its " . number_format($sensorInfo['sensorEvents']) . " events?<br /><br />\n"; print "<br />"; print "<div id=\"progressbarDeleteSensor\"></div>\n"; print "<div id=\"showdataDeleteSensor\"></div>\n"; print "<div id=\"showdelmsgDeleteSensor\"></div>\n"; print "<br />"; print "</p>"; print "</div>"; } ?> <?php if ($DEBUG) {
if (count($sensors[0]) == 0) { print "<br>Please, add a new sensor."; } else { print "<table id=\"ManagementTable\">"; print "<tr>"; print "<th width=\"350\" align=\"left\">Sensor Details</th>"; if ($_SESSION['getSensorInfo'] == true) { print "<th width=\"450\" align=\"left\">Info/Stats (<a href=\"?sensorInfo=0\">disable load of this sensor info</a>)</th>"; } else { print "<th width=\"450\" align=\"left\">Info/Stats (<a href=\"?sensorInfo=1\">enable load of this sensor info</a>)</th>"; } print "<th width=\"200\" align=\"left\"></th>"; print "</tr>"; foreach ($sensors[0] as $sensor) { if ($_SESSION['getSensorInfo'] == true) { $sensorInfo = getSensorInfo($sensor['sensor_id']); } print "<tr>"; print "<td width=\"350\" align=\"left\">"; print "<table id=\"sensorInfo\">"; print "<tr>"; print "<td><span id=\"header_cap\">Name:</span></td><td> " . $sensor['name'] . " (id: " . $sensor['sensor_id'] . ")</td>"; print "</tr><tr>"; if ($sensor['IP'] == "") { print "<td><span id=\"header_cap\">IP: </span></td><td> Any </td>"; } else { print "<td><span id=\"header_cap\">IP: </span></td><td>" . $sensor['IP'] . " </td>"; } print "</tr><tr>"; print "<td><span id=\"header_cap\">Description: </span></td><td> " . $sensor['description'] . " </td>"; print "</tr><tr>";