";
-
- if ($row2["disable"] == 1){
+ if ($row2["disable"] == 1) {
$tdcolor = "datos3";
}
- echo "".get_db_sql("SELECT nombre FROM tagente_modulo WHERE id_agente_modulo =".$row2["id_agente_modulo"]);
+ echo " | ".get_db_sql ("SELECT nombre FROM tagente_modulo WHERE id_agente_modulo =".$row2["id_agente_modulo"]);
echo " | ".$row2["operation"];
- echo " | ".human_time_description($row2["time_threshold"]);
+ echo " | ".human_time_description ($row2["time_threshold"]);
- if ($row2["dis_min"]!=0){
- $mytempdata = fmod($row2["dis_min"], 1);
- if ($mytempdata == 0)
- $mymin = intval($row2["dis_min"]);
- else
- $mymin = $row2["dis_min"];
- $mymin = format_for_graph($mymin );
+ if ($row2["dis_min"]!=0) {
+ $mytempdata = fmod ($row2["dis_min"], 1);
+ if ($mytempdata == 0) {
+ $mymin = intval ($row2["dis_min"]);
+ } else {
+ $mymin = format_for_graph ($row2["dis_min"]);
+ }
} else {
$mymin = 0;
}
- if ($row2["dis_max"]!=0){
- $mytempdata = fmod($row2["dis_max"], 1);
- if ($mytempdata == 0)
- $mymax = intval($row2["dis_max"]);
- else
- $mymax = $row2["dis_max"];
- $mymax = format_for_graph($mymax );
+ if ($row2["dis_max"]!=0) {
+ $mytempdata = fmod ($row2["dis_max"], 1);
+ if ($mytempdata == 0) {
+ $mymax = intval ($row2["dis_max"]);
+ } else {
+ $mymax = format_for_graph ($row2["dis_max"]);
+ }
} else {
$mymax = 0;
}
- if (($mymin == 0) && ($mymax == 0)){
+ if (($mymin == 0) && ($mymax == 0)) {
$mymin = lang_string ("N/A");
$mymax = $mymin;
}
@@ -1832,19 +1829,19 @@ function show_alert_row_mini ($id_combined_alert) {
echo get_alert_times ($row2);
// Description
- echo " | ".substr($row2["descripcion"],0,20);
+ echo " | ".substr ($row2["descripcion"],0,20);
// Has recovery notify activated ?
- if ($row2["recovery_notify"] > 0)
+ if ($row2["recovery_notify"] > 0) {
$recovery_notify = lang_string ("Yes");
- else
+ } else {
$recovery_notify = lang_string ("No");
-
+ }
echo " | ".$recovery_notify;
// calculare firing conditions
if ($row2["alert_text"] != ""){
- $firing_cond = lang_string("text")."(".substr($row2["alert_text"],0,8).")";
+ $firing_cond = lang_string ("text")."(".substr ($row2["alert_text"],0,8).")";
} else {
$firing_cond = $row2["min_alerts"]." / ".$row2["max_alerts"];
}
@@ -1855,11 +1852,11 @@ function show_alert_row_mini ($id_combined_alert) {
echo " | ".$firing_days;
// Fired ?
- if ($row2["times_fired"]>0)
- echo " |  | ";
- else
- echo " | ";
-
+ if ($row2["times_fired"]>0) {
+ echo " | ";
+ } else {
+ echo " | ";
+ }
}
echo "