Fixed zone image map for percentage zones.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@562 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-06-12 14:24:05 +00:00
parent eceae4bda0
commit e5870060d0
1 changed files with 1 additions and 1 deletions

View File

@ -2011,7 +2011,7 @@ function configureButton(form,name)
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'] ?> );">
<area shape="rect" coords="<?= sprintf( "%d,%d,%d,%d", ($zone[LoX]*$monitor[Width])/100, ($zone[LoY]*$monitor[Height])/100, ($zone[HiX]*$monitor[Width])/100, ($zone[HiY]*$monitor[Height])/100 ) ?>" href="javascript: newWindow( '<?= $PHP_SELF ?>?view=zone&mid=<?= $mid ?>&zid=<?= $zone[Id] ?>', 'zmZone', <?= $jws['zone']['w'] ?>, <?= $jws['zone']['h'] ?> );">
<?php
}
else