No permissions !"); show_footer(); exit; } ?> "; ?> "; echo ""; echo ""; if(isset($HTTP_GET_VARS["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=".$HTTP_GET_VARS["sysmapid"]." and h.hostid=sh.hostid"); for($i=0;$i"; } $map=$map."\n"; echo $map; echo ""; } echo ""; echo ""; echo ""; show_table_header("DISPLAYED HOSTS"); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $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=".$HTTP_GET_VARS["sysmapid"]." and h.hostid=sh.hostid order by h.host"); $col=0; for($i=0;$i"; $col=0; } else { echo ""; $col=1; } $host=DBget_field($result,$i,0); $shostid_=DBget_field($result,$i,1); $sysmapid_=DBget_field($result,$i,2); $hostid_=DBget_field($result,$i,3); $label_=DBget_field($result,$i,4); $x_=DBget_field($result,$i,5); $y_=DBget_field($result,$i,6); $icon_=DBget_field($result,$i,7); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
HostLabelXYIconActions
$host$label_$x_$y_$icon_Change - Delete
"; ?> "; echo "Host 1"; echo "Host 2"; echo "Link status indicator"; echo "Actions"; echo ""; $result=DBselect("select linkid,shostid1,shostid2,triggerid from sysmaps_links where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by linkid"); $col=0; for($i=0;$i"; $col=0; } else { echo ""; $col=1; } $linkid=DBget_field($result,$i,0); $shostid1=DBget_field($result,$i,1); $shostid2=DBget_field($result,$i,2); $triggerid=DBget_field($result,$i,3); $result1=DBselect("select label from sysmaps_hosts where shostid=$shostid1"); $label1=DBget_field($result1,0,0); $result1=DBselect("select label from sysmaps_hosts where shostid=$shostid2"); $label2=DBget_field($result1,0,0); if(isset($triggerid)) { // $trigger=get_trigger_by_triggerid($triggerid); // $description=$trigger["description"]; // if( strstr($description,"%s")) // { $description=expand_trigger_description($triggerid); // } } else { $description="-"; } echo "$label1"; echo "$label2"; echo "$description"; echo "Delete"; echo ""; } echo ""; ?> "; echo ""; if(isset($HTTP_GET_VARS["shostid"])) { $result=DBselect("select hostid,label,x,y,icon from sysmaps_hosts where shostid=".$HTTP_GET_VARS["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); } else { $label=""; $x=0; $y=0; } show_table2_header_begin(); echo "New host to display"; show_table2_v_delimiter(); echo "
"; if(isset($HTTP_GET_VARS["shostid"])) { echo ""; } if(isset($HTTP_GET_VARS["sysmapid"])) { echo ""; } echo "Host"; show_table2_h_delimiter(); $result=DBselect("select hostid,host from hosts order by host"); echo ""; show_table2_v_delimiter(); echo "Icon"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Label"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo nbsp("Coordinate X"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo nbsp("Coordinate Y"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($HTTP_GET_VARS["shostid"])) { echo ""; } show_table2_header_end(); ?> "; $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by label"); if(DBnum_rows($result)>1) { show_table2_header_begin(); echo "New connector"; show_table2_v_delimiter(); echo ""; echo nbsp("Host 1"); show_table2_h_delimiter(); // $result=DBselect("select shostid,label from sysmaps_hosts where sysmapid=".$HTTP_GET_VARS["sysmapid"]." order by label"); echo ""; show_table2_v_delimiter(); // echo ""; echo nbsp("Host 2"); show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo nbsp("Link status indicator"); show_table2_h_delimiter(); $result=DBselect("select triggerid,description from triggers order by description"); echo ""; show_table2_v_delimiter(); echo "Type (OFF)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Color (OFF)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Type (ON)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Color (ON)"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; show_table2_header_end(); } ?>