convert points to circles, because squares are not centered on the point.. but a circle is

pull/1406/head
Isaac Connor 2016-04-08 11:17:16 -04:00
parent 79552e5393
commit 45d58c3ad6
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@ if ( !canView( 'Monitors' ) )
}
$mid = validInt($_REQUEST['mid']);
$wd = getcwd();
$monitor = new Monitor( $mid );
$zones = array();
@ -57,7 +56,7 @@ xhtmlHeaders(__FILE__, translate('Zones') );
foreach ( explode(' ', $zone['Coords'] ) as $point ) {
$xy = explode(',', $point );
?>
<rect class="point" x="<?php $xy[0] ?>" y="<?php $xy[1] ?>" onclick="createPopup( '?view=zone&amp;mid=<?php echo $mid ?>&amp;zid=<?php echo $zone['Id'] ?>', 'zmZone', 'zone', <?php echo $monitor->Width ?>, <?php echo $monitor->Height ?> ); return( false );"/>
<circle class="point <?php echo $zone['Type'] ?>" cx="<?php echo $xy[0] ?>" cy="<?php echo $xy[1] ?>" onclick="createPopup( '?view=zone&amp;mid=<?php echo $mid ?>&amp;zid=<?php echo $zone['Id'] ?>', 'zmZone', 'zone', <?php echo $monitor->Width ?>, <?php echo $monitor->Height ?> ); return( false );"/>
<?php
} // end foreach point
} // end foreach zone