No permissions !");
show_footer();
exit;
}
?>
";
?>
";
echo "
";
echo "";
if(isset($_GET["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=".$_GET["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($_GET["shostid"]))
{
$result=DBselect("select hostid,label,x,y,icon,url,icon_on from sysmaps_hosts where shostid=".$_GET["shostid"]);
$hostid=DBget_field($result,0,0);
$label=DBget_field($result,0,1);
$x=DBget_field($result,0,2);
$y=DBget_field($result,0,3);
$icon=DBget_field($result,0,4);
$url=DBget_field($result,0,5);
$icon_on=DBget_field($result,0,6);
}
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 "