Fixed the underlying hotlink map to match the coordinates of the actual image. Also fixed a few issues with requested_width propogation, although there may still be some bugs.

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@35 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-05-29 04:37:24 +00:00
parent 684f02ebc5
commit db03c73b59
2 changed files with 59 additions and 58 deletions

View File

@@ -1,15 +1,16 @@
<?php /* -*- mode:PHP -*- */ ?>
<DIV class="map">
<MAP name="mapzones"><?php
<MAP name="mapzones">
<?php
{// for indentation purposes
// Go through each unit, adding a clickable region for the unit
foreach ($info['units'] AS $unit){
echo(' <area shape="rect"' .
' coords="' .
$unit['left'] . ',' .
$unit['right'] . ',' .
$unit['top'] . ',' .
$unit['right'] . ',' .
$unit['bottom'] .
'" href="' .
$html->url(array('controller' => 'units',
@@ -26,7 +27,8 @@
<?php
echo $html->image(array('controller' => 'maps',
'action' => 'map',
$info['map_id']),
$info['map_id'],
$info['width']),
array('alt' => 'Site Map',
'class' => 'map',
'usemap' => '#mapzones'));
@@ -38,7 +40,8 @@
<?php
echo $html->image(array('controller' => 'maps',
'action' => 'legend',
$info['map_id']),
$info['map_id'],
$info['width']),
array('alt' => 'Site Map Legend',
'class' => 'map'));
?>