rename monitor object from Monitor to monitor. Remove points in zone list.
This commit is contained in:
parent
8735f1ac73
commit
56a91ed4b2
|
@ -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&mid=<?php echo $mid ?>&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&mid=<?php echo $mid ?>&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
|
||||
|
|
Loading…
Reference in New Issue