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/site@35 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -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'));
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user