"; echo "Show previous 100] "; echo "["; echo "Show next 100]"; } else { echo "["; echo "Show next 100]"; } show_table_header_end(); echo "
"; show_table_header("PROBLEMS"); ?> "; echo ""; echo "Registered at"; echo "Severity"; echo "Category"; echo "Description"; echo "Status"; echo "History"; echo ""; $col=0; $zzz=0; while($row=DBfetch($result)) { $zzz++; if(isset($start)&&($zzz<$start)) { continue; } // if(!check_right_on_trigger("R",$row["triggerid"])) // { // continue; // } if($col++%2==0) { echo ""; } else { echo ""; } if($col>100) break; echo "
".date("Y.M.d H:i:s",$row["clock"])."
"; if($row["priority"]==0) echo "
Not classified
"; elseif($row["priority"]==1) echo "
Information
"; elseif($row["priority"]==2) echo "
Warning
"; elseif($row["priority"]==3) echo "
Average
"; elseif($row["priority"]==4) echo "
High
"; elseif($row["priority"]==5) echo "
Disaster !!!
"; else echo "
".$row["priority"]."
"; if(isset($row["categoryid"])) { echo "
".$row["categoryid"]."
"; } else { echo "
-
"; } echo "
".$row["description"]."
"; if($row["status"]==0) { echo "
Active
"; } else { echo "
Closed
"; } echo ""; $sql="select commentid,problemid,clock,status_before,status_after,comment from problems_comments where problemid=".$row["problemid"]." order by clock"; $result2=DBselect($sql); while($row2=DBfetch($result2)) { echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if(isset($row2["userid"])) { $user=get_user_by_userid($row2["userid"]); echo ""; } else { echo ""; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Registered at:".date("Y.M.d H:i:s",$row2["clock"])."
Commented by:".$user["name"]." ".$user["surname"]."Zabbix
".$row2["comment"]."
".$row2["comment"]."
"; echo "
"; } echo "[Add comment]"; echo " [Change problem]"; } echo ""; ?> "; insert_problem_form($HTTP_GET_VARS["problemid"]); ?>