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 "