No permissions !"); show_footer(); exit; } ?> "; ?> "; echo ""; echo ""; if(isset($_REQUEST["sysmapid"])) { $map="\n"; $result=DBselect("select h.host,sh.shostid,sh.sysmapid,sh.hostid,sh.label,sh.x,sh.y,h.status from sysmaps_hosts sh,hosts h where sh.sysmapid=".$_REQUEST["sysmapid"]." and h.status not in (".HOST_STATUS_DELETED.") and h.hostid=sh.hostid"); while($row=DBfetch($result)) { $host_=$row["host"]; $shostid_=$row["shostid"]; $sysmapid_=$row["sysmapid"]; $hostid_=$row["hostid"]; $label_=$row["label"]; $x_=$row["x"]; $y_=$row["y"]; $status_=$row["status"]; if(function_exists("imagecreatetruecolor")&&@imagecreatetruecolor(1,1)) { $map=$map."\n\"$host_\""; } else { $map=$map."\n\"$host_\""; } } $map=$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 "
"; if(isset($_REQUEST["shostid"])) { echo ""; } if(isset($_REQUEST["sysmapid"])) { echo ""; } echo "Host"; show_table2_h_delimiter(); $result=DBselect("select hostid,host from hosts where status not in (".HOST_STATUS_DELETED.") order by host"); echo ""; show_table2_v_delimiter($col++); echo "Icon (OFF)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo "Icon (ON)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo "Label"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp("Coordinate X"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp("Coordinate Y"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp("URL"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($_REQUEST["shostid"])) { echo ""; } show_table2_header_end(); ?> 1) { show_form_begin("sysmap.connector"); echo "New connector"; $col=0; show_table2_v_delimiter($col++); echo ""; echo nbsp("Host 1"); show_table2_h_delimiter(); // $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$_REQUEST["sysmapid"]." order by label"); echo ""; show_table2_v_delimiter($col++); // echo ""; echo nbsp("Host 2"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo nbsp("Link status indicator"); show_table2_h_delimiter(); $result=DBselect("select triggerid from triggers order by description"); echo ""; show_table2_v_delimiter($col++); echo "Type (OFF)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo "Color (OFF)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo "Type (ON)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter($col++); echo "Color (ON)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; show_table2_header_end(); } ?>