spacing
parent
dbf760d8af
commit
e64de07560
|
@ -160,15 +160,13 @@ if ( $show_storage_areas ) $left_columns += 1;
|
||||||
xhtmlHeaders( __FILE__, translate('Console') );
|
xhtmlHeaders( __FILE__, translate('Console') );
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
||||||
<form name="monitorForm" method="get" action="<?php echo $_SERVER['PHP_SELF'] ?>">
|
<form name="monitorForm" method="get" action="<?php echo $_SERVER['PHP_SELF'] ?>">
|
||||||
<input type="hidden" name="view" value="<?php echo $view ?>"/>
|
<input type="hidden" name="view" value="<?php echo $view ?>"/>
|
||||||
<input type="hidden" name="action" value=""/>
|
<input type="hidden" name="action" value=""/>
|
||||||
|
|
||||||
<?php echo $navbar ?>
|
<?php echo $navbar ?>
|
||||||
<div class="filterBar"><?php echo $filterbar ?></div>
|
<div class="filterBar"><?php echo $filterbar ?></div>
|
||||||
<div class="statusBreakdown">
|
<div class="statusBreakdown">
|
||||||
<?php
|
<?php
|
||||||
$html = '';
|
$html = '';
|
||||||
foreach ( array_keys($status_counts) as $status ) {
|
foreach ( array_keys($status_counts) as $status ) {
|
||||||
|
@ -177,26 +175,26 @@ xhtmlHeaders( __FILE__, translate('Console') );
|
||||||
}
|
}
|
||||||
echo $html;
|
echo $html;
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<button type="button" name="addBtn" onclick="addMonitor(this);"
|
<button type="button" name="addBtn" onclick="addMonitor(this);"
|
||||||
<?php echo (canEdit('Monitors') && !$user['MonitorIds']) ? '' : ' disabled="disabled"' ?>
|
<?php echo (canEdit('Monitors') && !$user['MonitorIds']) ? '' : ' disabled="disabled"' ?>
|
||||||
>
|
>
|
||||||
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> <?php echo translate('AddNewMonitor') ?>
|
<span class="glyphicon glyphicon-plus-sign" aria-hidden="true"></span> <?php echo translate('AddNewMonitor') ?>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" name="cloneBtn" onclick="cloneMonitor(this);"
|
<button type="button" name="cloneBtn" onclick="cloneMonitor(this);"
|
||||||
<?php echo (canEdit('Monitors') && !$user['MonitorIds']) ? '' : ' disabled="disabled"' ?>
|
<?php echo (canEdit('Monitors') && !$user['MonitorIds']) ? '' : ' disabled="disabled"' ?>
|
||||||
style="display:none;">
|
style="display:none;">
|
||||||
<span class="glyphicon glyphicon-copy"></span> <?php echo translate('CloneMonitor') ?>
|
<span class="glyphicon glyphicon-copy"></span> <?php echo translate('CloneMonitor') ?>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" name="editBtn" onclick="editMonitor(this);" disabled="disabled">
|
<button type="button" name="editBtn" onclick="editMonitor(this);" disabled="disabled">
|
||||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> <?php echo translate('Edit') ?>
|
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> <?php echo translate('Edit') ?>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" name="deleteBtn" onclick="deleteMonitor(this);" disabled="disabled">
|
<button type="button" name="deleteBtn" onclick="deleteMonitor(this);" disabled="disabled">
|
||||||
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <?php echo translate('Delete') ?>
|
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span> <?php echo translate('Delete') ?>
|
||||||
</button>
|
</button>
|
||||||
<button type="button" name="selectBtn" onclick="selectMonitor(this);" disabled="disabled"><?php echo translate('Select')?></button>
|
<button type="button" name="selectBtn" onclick="selectMonitor(this);" disabled="disabled"><?php echo translate('Select')?></button>
|
||||||
<?php
|
<?php
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
|
@ -215,13 +213,13 @@ ob_start();
|
||||||
<?php if ( $show_storage_areas ) { ?>
|
<?php if ( $show_storage_areas ) { ?>
|
||||||
<th class="colStorage"><?php echo translate('Storage') ?></th>
|
<th class="colStorage"><?php echo translate('Storage') ?></th>
|
||||||
<?php }
|
<?php }
|
||||||
foreach ( array_keys( $eventCounts ) as $j ) {
|
foreach ( array_keys($eventCounts) as $j ) {
|
||||||
echo '<th class="colEvents">'. $j .'</th>';
|
echo '<th class="colEvents">'. $j .'</th>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<th class="colZones"><a href="<?php echo $_SERVER['PHP_SELF'] ?>?view=zones_overview"><?php echo translate('Zones') ?></a></th>
|
<th class="colZones"><a href="<?php echo $_SERVER['PHP_SELF'] ?>?view=zones_overview"><?php echo translate('Zones') ?></a></th>
|
||||||
<?php if ( canEdit('Monitors') ) { ?>
|
<?php if ( canEdit('Monitors') ) { ?>
|
||||||
<th class="colMark"><input type="checkbox" name="toggleCheck" value="1" onclick="toggleCheckbox(this, 'markMids[]');setButtonStates(this);"<?php if ( !canEdit( 'Monitors' ) ) { ?> disabled="disabled"<?php } ?>/> <?php echo translate('All') ?></th>
|
<th class="colMark"><input type="checkbox" name="toggleCheck" value="1" onclick="toggleCheckbox(this, 'markMids[]');setButtonStates(this);"/> <?php echo translate('All') ?></th>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -258,10 +256,10 @@ for( $monitor_i = 0; $monitor_i < count($displayMonitors); $monitor_i += 1 ) {
|
||||||
$fclass = 'infoText';
|
$fclass = 'infoText';
|
||||||
if ( !$monitor['Enabled'] )
|
if ( !$monitor['Enabled'] )
|
||||||
$fclass .= ' disabledText';
|
$fclass .= ' disabledText';
|
||||||
$scale = max( reScale( SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE );
|
$scale = max(reScale(SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE);
|
||||||
$stream_available = canView('Stream') and $monitor['Type']=='WebSite' or ($monitor['CaptureFPS'] && $monitor['Function'] != 'None');
|
$stream_available = canView('Stream') and $monitor['Type']=='WebSite' or ($monitor['CaptureFPS'] && $monitor['Function'] != 'None');
|
||||||
$dot_class=$source_class;
|
$dot_class=$source_class;
|
||||||
if ( $fclass != 'infoText' ) $dot_class=$fclass;
|
if ( $fclass != 'infoText' ) $dot_class=$fclass;
|
||||||
|
|
||||||
if ( ZM_WEB_ID_ON_CONSOLE ) {
|
if ( ZM_WEB_ID_ON_CONSOLE ) {
|
||||||
?>
|
?>
|
||||||
|
@ -337,7 +335,7 @@ if ( $fclass != 'infoText' ) $dot_class=$fclass;
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( array_keys( $eventCounts ) as $i ) {
|
foreach ( array_keys($eventCounts) as $i ) {
|
||||||
?>
|
?>
|
||||||
<td class="colEvents"><a <?php echo (canView('Events') ? 'href="?view='.ZM_WEB_EVENTS_VIEW.'&page=1'.$monitor['eventCounts'][$i]['filter']['query'].'">' : '') .
|
<td class="colEvents"><a <?php echo (canView('Events') ? 'href="?view='.ZM_WEB_EVENTS_VIEW.'&page=1'.$monitor['eventCounts'][$i]['filter']['query'].'">' : '') .
|
||||||
$monitor[$i.'Events'] . '<br/></a><div class="small text-nowrap text-muted">' . human_filesize($monitor[$i.'EventDiskSpace']) ?></div></td>
|
$monitor[$i.'Events'] . '<br/></a><div class="small text-nowrap text-muted">' . human_filesize($monitor[$i.'EventDiskSpace']) ?></div></td>
|
||||||
|
|
Loading…
Reference in New Issue