From cbb3323a0ad2ae65d0134e01b807faf8df99a2d2 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 11 Aug 2002 16:16:22 +0000 Subject: - added housekeeping procedure for table sessions (Alexei) - changed width=\"X%\" to width=X% in *.php (Alexei) - Status of a trigger will blink if it was changes during last 60 seconds (Alexei) - Zabbix daemons to update triggers.lastchange when triggers.values is changed (Alexei) - added misc/init.d/debian/zabbix-[suckerd|trapperd] (Alexei) - removed misc/init.d/debian/zabbix-server (Alexei) - send_email() will timeout after 10 seconds (Alexei) - DBadd_alarm() renamed to add_alarm() (Alexei) - support for SCO OpenServer (Alexei). Thanks to Alexender Kirhenstein. - ./configure will correctly define socklen_t (Alexei) -
changed to
(Alexei) - reason of problem in screen IT Services (Alexei) - added frontends.php/helpdesk.php (Alexei) - added tables: problems, problems_comments,categories (Alexei) - added "...#form" to button Change in form Configuration of Users (Alexei) - "Just for information" changed to "Information" (Alexei) - fixed ./configure to correctly find zlib (Alexei) - housekeeping to delete no more than HousekeepingFrequency*3600 records from table history and history_str at once (MySQL only) (Alexei) git-svn-id: svn://svn.zabbix.com/trunk@450 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/helpdesk.php | 150 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 frontends/php/helpdesk.php (limited to 'frontends/php/helpdesk.php') diff --git a/frontends/php/helpdesk.php b/frontends/php/helpdesk.php new file mode 100644 index 00000000..f068eae9 --- /dev/null +++ b/frontends/php/helpdesk.php @@ -0,0 +1,150 @@ + + + + +"; + 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 "Priority"; + 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($problemid); +?> + + -- cgit