spacing
This commit is contained in:
parent
795c5bb7d7
commit
8872b8be63
|
@ -80,15 +80,14 @@ xhtmlHeaders(__FILE__, translate('Zones'));
|
||||||
<?php echo getStreamHTML($monitor, $options); ?>
|
<?php echo getStreamHTML($monitor, $options); ?>
|
||||||
<svg class="zones" viewBox="0 0 <?php echo $monitor->ViewWidth().' '.$monitor->ViewHeight() ?>">
|
<svg class="zones" viewBox="0 0 <?php echo $monitor->ViewWidth().' '.$monitor->ViewHeight() ?>">
|
||||||
<?php
|
<?php
|
||||||
foreach( array_reverse($zones) as $zone ) {
|
foreach (array_reverse($zones) as $zone) {
|
||||||
?>
|
?>
|
||||||
<polygon points="<?php echo $zone['AreaCoords'] ?>"
|
<polygon points="<?php echo $zone['AreaCoords'] ?>"
|
||||||
class="zmlink <?php echo $zone['Type']?>"
|
class="zmlink <?php echo $zone['Type']?>"
|
||||||
data-on-click-true="streamCmdQuit"
|
|
||||||
data-url="?view=zone&mid=<?php echo $mid ?>&zid=<?php echo $zone['Id'] ?>"
|
data-url="?view=zone&mid=<?php echo $mid ?>&zid=<?php echo $zone['Id'] ?>"
|
||||||
/>
|
/>
|
||||||
<?php
|
<?php
|
||||||
} // end foreach zone
|
} // end foreach zone
|
||||||
?>
|
?>
|
||||||
Sorry, your browser does not support inline SVG
|
Sorry, your browser does not support inline SVG
|
||||||
</svg>
|
</svg>
|
||||||
|
@ -96,37 +95,37 @@ xhtmlHeaders(__FILE__, translate('Zones'));
|
||||||
<?php echo translate('State') ?>: <span id="stateValue<?php echo $monitor->Id() ?>"></span> - <span id="fpsValue<?php echo $monitor->Id() ?>"></span> fps
|
<?php echo translate('State') ?>: <span id="stateValue<?php echo $monitor->Id() ?>"></span> - <span id="fpsValue<?php echo $monitor->Id() ?>"></span> fps
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="zones">
|
<div class="zones">
|
||||||
<table id="zonesTable" class="major">
|
<table id="zonesTable" class="major">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="colName"><?php echo translate('Name') ?></th>
|
<th class="colName"><?php echo translate('Name') ?></th>
|
||||||
<th class="colType"><?php echo translate('Type') ?></th>
|
<th class="colType"><?php echo translate('Type') ?></th>
|
||||||
<th class="colUnits"><?php echo translate('AreaUnits') ?></th>
|
<th class="colUnits"><?php echo translate('AreaUnits') ?></th>
|
||||||
<th class="colMark"><?php echo translate('Mark') ?></th>
|
<th class="colMark"><?php echo translate('Mark') ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach( $zones as $zone ) {
|
foreach( $zones as $zone ) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="colName"><?php echo makeLink('?view=zone&mid='.$mid.'&zid='.$zone['Id'], validHtmlStr($zone['Name']), true, 'data-on-click-true="streamCmdQuit"'); ?></td>
|
<td class="colName"><?php echo makeLink('?view=zone&mid='.$mid.'&zid='.$zone['Id'], validHtmlStr($zone['Name']), true, 'data-on-click-true="streamCmdQuit"'); ?></td>
|
||||||
<td class="colType"><?php echo validHtmlStr($zone['Type']) ?></td>
|
<td class="colType"><?php echo validHtmlStr($zone['Type']) ?></td>
|
||||||
<td class="colUnits"><?php echo $zone['Area'] ?> / <?php echo sprintf('%.2f', ($zone['Area']*100)/($monitor->ViewWidth()*$monitor->ViewHeight()) ) ?></td>
|
<td class="colUnits"><?php echo $zone['Area'] ?> / <?php echo sprintf('%.2f', ($zone['Area']*100)/($monitor->ViewWidth()*$monitor->ViewHeight()) ) ?></td>
|
||||||
<td class="colMark"><input type="checkbox" name="markZids[]" value="<?php echo $zone['Id'] ?>" data-on-click-this="configureDeleteButton"<?php if ( !canEdit('Monitors') ) { ?> disabled="disabled"<?php } ?>/></td>
|
<td class="colMark"><input type="checkbox" name="markZids[]" value="<?php echo $zone['Id'] ?>" data-on-click-this="configureDeleteButton"<?php if ( !canEdit('Monitors') ) { ?> disabled="disabled"<?php } ?>/></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="contentButtons">
|
<div id="contentButtons">
|
||||||
<?php echo makeButton('?view=zone&mid='.$mid.'&zid=0', 'AddNewZone', canEdit('Monitors')); ?>
|
<?php echo makeButton('?view=zone&mid='.$mid.'&zid=0', 'AddNewZone', canEdit('Monitors')); ?>
|
||||||
<button type="submit" name="deleteBtn" value="Delete" disabled="disabled"><?php echo translate('Delete') ?></button>
|
<button type="submit" name="deleteBtn" value="Delete" disabled="disabled"><?php echo translate('Delete') ?></button>
|
||||||
</div>
|
</div>
|
||||||
</div><!--zones-->
|
</div><!--zones-->
|
||||||
<br class="clear"/>
|
<br class="clear"/>
|
||||||
</div><!--Monitor-->
|
</div><!--Monitor-->
|
||||||
<?php
|
<?php
|
||||||
} # end foreach monitor
|
} # end foreach monitor
|
||||||
|
|
Loading…
Reference in New Issue