mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-01-30 09:01:08 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user