foreach ($sensors as $s_ip => $s_name) { if ($s_name != $s_ip) { $sensors_str .= '{ txt:"' . $s_ip . ' [' . $s_name . ']", id: "' . $s_ip . '" },'; } else { $sensors_str .= '{ txt:"' . $s_ip . '", id: "' . $s_ip . '" },'; } } foreach ($hosts as $h_ip => $h_name) { if ($h_name != $h_ip) { $hosts_str .= '{ txt:"' . $h_ip . ' [' . $h_name . ']", id: "' . $h_ip . '" },'; } else { $hosts_str .= '{ txt:"' . $h_ip . '", id: "' . $h_ip . '" },'; } } $db_groups = AlarmGroups::get_dbgroups($conn); list($alarm_group, $count) = AlarmGroups::get_grouped_alarms($conn, $group_type, $show_options, $hide_closed, $date_from, $date_to, $src_ip, $dst_ip, $sensor_query, $query, $directive_id, $num_events, $num_events_op, $tag, "LIMIT {$inf},{$sup}"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> <?php echo _("Control Panel"); ?> </title> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <!-- <link rel="StyleSheet" href="dtree.css" type="text/css" />--> <link rel="stylesheet" href="../style/style.css"/> <link rel="stylesheet" href="../style/jquery-ui-1.7.custom.css"/> <link rel="stylesheet" type="text/css" href="../style/greybox.css"/> <link rel="stylesheet" type="text/css" href="../style/datepicker.css"/> <link rel="stylesheet" type="text/css" href="../style/jquery.autocomplete.css">