No permissions !"); show_footer(); exit; } ?> "; ?> "; echo "Id"; echo "Name"; echo "Width"; echo "Height"; echo "Actions"; echo ""; $result=DBselect("select s.sysmapid,s.name,s.width,s.height from sysmaps s order by s.name"); $col=0; while($row=DBfetch($result)) { if(!check_right("Network map","U",$row["sysmapid"])) { continue; } if($col==1) { echo ""; $col=0; } else { echo ""; $col=1; } echo "".$row["sysmapid"].""; echo "".$row["name"].""; echo "".$row["width"].""; echo "".$row["height"].""; echo "Change"; echo ""; } if(DBnum_rows($result)==0) { echo ""; echo "-No maps defined-"; echo ""; } echo ""; ?> "; if(isset($_GET["sysmapid"])) { $result=DBselect("select s.sysmapid,s.name,s.width,s.height from sysmaps s where sysmapid=".$_GET["sysmapid"]); $name=DBget_field($result,0,1); $width=DBget_field($result,0,2); $height=DBget_field($result,0,3); } else { $name=""; $width=800; $height=600; } echo "
"; show_table2_header_begin(); echo "New system map"; show_table2_v_delimiter(); echo "
"; if(isset($_GET["sysmapid"])) { echo ""; } echo "Name"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Width"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter(); echo "Height"; show_table2_h_delimiter(); echo ""; show_table2_v_delimiter2(); echo ""; if(isset($_GET["sysmapid"])) { echo ""; echo ""; } show_table2_header_end(); ?>