No permissions !");
show_footer();
exit;
}
?>
";
?>
";
echo "
";
echo "";
if(isset($_REQUEST["sysmapid"]))
{
$map="\n";
echo $map;
echo " ";
}
echo " | ";
echo "
";
echo "";
show_table_header("DISPLAYED HOSTS");
table_begin();
table_header(array(S_HOST,S_LABEL,S_X,S_Y,S_ICON,S_ACTIONS));
$result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,sh.icon from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_REQUEST["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid order by h.host");
$col=0;
while($row=DBfetch($result))
{
table_row(array(
$row["host"],
$row["label"],
$row["x"],
$row["y"],
nbsp($row["icon"]),
"Change - Delete"
),$col++);
}
table_end();
?>
Delete"
),$col++);
}
table_end();
?>
";
if(isset($_REQUEST["shostid"]))
{
$shost=get_sysmaps_hosts_by_shostid($_REQUEST["shostid"]);
$hostid=$shost["hostid"];
$label=$shost["label"];
$x=$shost["x"];
$y=$shost["y"];
$icon=$shost["icon"];
$url=$shost["url"];
$icon_on=$shost["icon_on"];
}
else
{
$label="";
$x=0;
$y=0;
$icon="";
$url="";
$icon_on="";
}
show_form_begin("sysmap.host");
echo "New host to display";
$col=0;
show_table2_v_delimiter($col++);
echo "