Fixed image map problem with percentage zones.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@455 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2003-04-07 14:06:25 +00:00
parent 0cd4b31fda
commit 6a353fd26f
1 changed files with 9 additions and 0 deletions

View File

@ -1896,9 +1896,18 @@ function configureButton(form,name)
<?php
foreach( $zones as $zone )
{
if ( $zone[Units] == 'Percent' )
{
?>
<area shape="rect" coords="<?= sprintf( "%d,%d,%d,%d", $zone[LoX]*$monitor[Width], $zone[LoY]*$monitor[Height], $zone[HiX]*$monitor[Width], $zone[HiY]*$monitor[Height] ) ?>" href="javascript: newWindow( '<?= $PHP_SELF ?>?view=zone&mid=<?= $mid ?>&zid=<?= $zone[Id] ?>', 'zmZone', <?= $jws['zone']['w'] ?>, <?= $jws['zone']['h'] ?> );">
<?php
}
else
{
?>
<area shape="rect" coords="<?= "$zone[LoX],$zone[LoY],$zone[HiX],$zone[HiY]" ?>" href="javascript: newWindow( '<?= $PHP_SELF ?>?view=zone&mid=<?= $mid ?>&zid=<?= $zone[Id] ?>', 'zmZone', <?= $jws['zone']['w'] ?>, <?= $jws['zone']['h'] ?> );">
<?php
}
}
?>
<area shape="default" nohref>