2014-11-02 08:40:26 +08:00
|
|
|
<?php
|
|
|
|
$running = daemonCheck();
|
|
|
|
$status = $running?$SLANG['Running']:$SLANG['Stopped'];
|
|
|
|
if ($status == 'Running') {
|
|
|
|
$statusClass = 'success';
|
|
|
|
} else {
|
|
|
|
$statusClass = 'danger';
|
|
|
|
}
|
|
|
|
?>
|
2014-11-01 23:39:11 +08:00
|
|
|
<nav class="navbar navbar-default" role="navigation">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<a href="?view=state" class="btn btn-<?= $statusClass ?> btn-md navbar-btn pull-right" onclick="createPopup( '?view=state', 'zmState', 'state' ); return( false );">
|
|
|
|
<span class="glyphicon glyphicon-off"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="nav navbar-nav pull-right">
|
2014-11-02 00:04:15 +08:00
|
|
|
<li><a href="?view=console"><?= $SLANG['Console']; ?></a></li>
|
2014-11-01 23:39:11 +08:00
|
|
|
<li>
|
|
|
|
<?= makePopupLink( '?view=options', 'zmOptions', 'options', $SLANG['Options'] ) ?>
|
|
|
|
</li>
|
|
|
|
<?php if ( logToDatabase() > Logger::NOLOG ) { ?>
|
|
|
|
<li>
|
|
|
|
<?= makePopupLink( '?view=log', 'zmLog', 'log', '<span class="'.logState().'">'.$SLANG['Log'].'</span>' ) ?>
|
|
|
|
</li>
|
|
|
|
<?php } ?>
|
|
|
|
<li>
|
|
|
|
<?= makePopupLink( '?view=groups', 'zmGroups', 'groups', sprintf( $CLANG['MonitorCount'], count($displayMonitors), zmVlang( $VLANG['Monitor'], count($displayMonitors) ) ).($group?' ('.$group['Name'].')':''), canView( 'System' ) ); ?>
|
|
|
|
</li>
|
|
|
|
<?php if ( ZM_OPT_X10 && canView( 'Devices' ) ) { ?>
|
|
|
|
<li><?= makePopupLink( '?view=devices', 'zmDevices', 'devices', $SLANG['Devices'] ) ?></li>
|
|
|
|
<?php } ?>
|
2014-11-02 00:01:30 +08:00
|
|
|
<?php if ($running) ?>
|
|
|
|
<li><a href="?view=cycle&group=<?= $cycleGroup ?>"><?= $SLANG['Cycle'] ?></a></li>
|
|
|
|
<li><a href="?view=montage&group=<?= $cycleGroup ?>"><?= $SLANG['Montage'] ?></a></li>
|
|
|
|
<?php ?>
|
2014-11-01 23:39:11 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|