"; $result=DBselect("select screenid,name,cols,rows from screens order by name"); while($row=DBfetch($result)) { if(!check_right("Screen","R",$row["screenid"])) { continue; } if( isset($HTTP_GET_VARS["screenid"]) && ($HTTP_GET_VARS["screenid"] == $row["screenid"]) ) { echo "["; } echo "".$row["name"].""; if(isset($HTTP_GET_VARS["screenid"]) && ($HTTP_GET_VARS["screenid"] == $row["screenid"]) ) { echo "]"; } echo " "; } if(DBnum_rows($result) == 0) { echo "No screens to display"; } echo ""; show_table_header_end(); echo "
"; } ?> ".$row["name"].""; } else { $map="".$row["name"].""; } show_table_header($map); echo ""; for($c=0;$c<$row["cols"];$c++) { echo ""; } echo "\n"; } echo "
\n"; $sql="select * from screens_items where screenid=$screenid and x=$c and y=$r"; $iresult=DBSelect($sql); if(DBnum_rows($iresult)>0) { $irow=DBfetch($iresult); $screenitemid=$irow["screenitemid"]; $resource=$irow["resource"]; $resourceid=$irow["resourceid"]; $width=$irow["width"]; $height=$irow["height"]; } if(DBnum_rows($iresult)>0) { if($resource == 0) { echo ""; } else if($resource == 1) { echo ""; } else if($resource == 2) { echo get_map_imagemap($resourceid); echo ""; } } else { echo " "; } echo "
"; } else { show_table_header("Select screen to display"); echo ""; echo ""; echo ""; echo ""; echo "
"; echo "..."; echo "
"; } ?>