Fixed the map titles on IE.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@843 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-09-14 17:03:56 +00:00
parent 3e3dff31a8
commit 3ede96dad9

View File

@@ -6,19 +6,7 @@
{// for indentation purposes {// for indentation purposes
// Go through each unit, adding a clickable region for the unit // Go through each unit, adding a clickable region for the unit
foreach ($info['units'] AS $unit){ foreach ($info['units'] AS $unit){
echo(' <area shape="rect"' . $title = ('Unit #' .
' coords="' .
$unit['left'] . ',' .
$unit['top'] . ',' .
$unit['right'] . ',' .
$unit['bottom'] .
'" href="' .
$html->url(array('controller' => 'units',
'action' => 'view',
$unit['id'])) .
'" alt="Unit #' .
$unit['name'] .
'" title="Unit #' .
$unit['name'] . $unit['name'] .
(empty($unit['data']['CurrentLease']['id']) (empty($unit['data']['CurrentLease']['id'])
? '' ? ''
@@ -29,7 +17,20 @@
$unit['data']['Customer']['name'] . $unit['data']['Customer']['name'] .
'; Paid Through ' . '; Paid Through ' .
$unit['data']['CurrentLease']['paid_through_date']) $unit['data']['CurrentLease']['paid_through_date'])
) . ));
echo(' <area shape="rect"' .
' coords="' .
$unit['left'] . ',' .
$unit['top'] . ',' .
$unit['right'] . ',' .
$unit['bottom'] .
'" href="' .
$html->url(array('controller' => 'units',
'action' => 'view',
$unit['id'])) .
'" alt="' . $title .
'" title="' . $title .
'">' . "\n"); '">' . "\n");
} }
}// for indentation purposes }// for indentation purposes