rename monitor object from Monitor to monitor. Remove points in zone list.

This commit is contained in:
Isaac Connor 2016-04-08 13:37:29 -04:00
parent 8735f1ac73
commit 56a91ed4b2
1 changed files with 2 additions and 8 deletions

View File

@ -47,18 +47,12 @@ xhtmlHeaders(__FILE__, translate('Zones') );
</div>
<div id="content">
<?php echo getStreamHTML( $monitor ); ?>
<svg width="<?php echo $Monitor->Width ?>" height="<?php echo $Monitor->Height ?>" style="margin-top: -<?php echo $Monitor->Height ?>px;background: none;">
<svg class="zones" width="<?php echo $monitor->Width ?>" height="<?php echo $monitor->Height ?>" style="margin-top: -<?php echo $monitor->Height ?>px;background: none;">
<?php
foreach( array_reverse($zones) as $zone ) {
?>
<polygon points="<?php echo $zone['AreaCoords'] ?>" class="<?php echo $zone['Type']?>" />
<polygon points="<?php echo $zone['AreaCoords'] ?>" class="<?php echo $zone['Type']?>" 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
foreach ( explode(' ', $zone['Coords'] ) as $point ) {
$xy = explode(',', $point );
?>
<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
?>
Sorry, your browser does not support inline SVG