No permissions !"); show_footer(); exit; } ?> "; if(isset($HTTP_GET_VARS["groupid"])) { // echo "all "; echo "all "; } else { echo "[all] "; } $result=DBselect("select groupid,name from groups order by name"); while($row=DBfetch($result)) { // if(!check_right("Host","R",$row["hostid"])) // { // continue; // } if( isset($HTTP_GET_VARS["groupid"]) && ($HTTP_GET_VARS["groupid"] == $row["groupid"]) ) { echo "["; } echo "".$row["name"].""; if(isset($HTTP_GET_VARS["groupid"]) && ($HTTP_GET_VARS["groupid"] == $row["groupid"]) ) { echo "]"; } echo " "; } ?> ["; } if(isset($HTTP_GET_VARS["groupid"])) { echo "".$row["host"].""; } else { echo "".$row["host"].""; } if(isset($HTTP_GET_VARS["hostid"]) && ($row["hostid"] == $HTTP_GET_VARS["hostid"])) { echo "]"; } echo " "; } show_table_header_end(); ?>
"; } echo "
"; show_table_header("".$row["host"].""); echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; } $lasthost=$row["host"]; if($col++%2 == 1) { echo ""; } else { echo ""; } // $description=stripslashes(htmlspecialchars($row["description"])); // if( strstr($description,"%s")) // { $description=expand_trigger_description($row["triggerid"]); // } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
IdDescriptionExpressionStatusActions
".$row["triggerid"]."$description".explode_exp($row["expression"],1).""; if($row["status"] == 1) { echo "Disabled"; } else if($row["status"] == 2) { echo "Unknown"; } else { echo "Enabled"; } $expression=rawurlencode($row["expression"]); echo ""; if(isset($HTTP_GET_VARS["hostid"])) { echo "Change "; } else { echo "Change "; } echo "-"; if(get_action_count_by_triggerid($row["triggerid"])>0) { echo "Actions"; } else { echo "Actions"; } echo "
"; show_table2_header_begin(); echo ""; echo ""; echo ""; show_table2_header_end(); echo "
"; } ?> 0) { echo ""; @insert_trigger_form($HTTP_GET_VARS["hostid"],$HTTP_GET_VARS["triggerid"]); } ?>