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"); for($i=0;$i"; } 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"])) { $result=DBselect("select hostid,label,x,y,icon,url,icon_on from sysmaps_hosts where shostid=".$_REQUEST["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 "
"; 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,description 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(); } ?>