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-16 00:47:42 +08:00
|
|
|
|
2014-11-16 03:45:18 +08:00
|
|
|
<nav class="navbar navbar-default" role="navigation" ng-controller="HeaderController">
|
2014-11-01 23:39:11 +08:00
|
|
|
<div class="container-fluid">
|
2014-11-16 00:49:44 +08:00
|
|
|
<a href="?view=console"><span class="navbar-brand">ZoneMinder</span></a>
|
2014-11-02 20:41:40 +08:00
|
|
|
|
2014-11-16 08:35:10 +08:00
|
|
|
<button type="button" class="btn btn-md navbar-btn pull-right" ng-class="isRunning ? 'btn-success' : 'btn-danger'" data-toggle="modal" data-target="#myModal">
|
2014-11-01 23:39:11 +08:00
|
|
|
<span class="glyphicon glyphicon-off"></span>
|
2014-11-16 00:47:42 +08:00
|
|
|
</button>
|
|
|
|
|
2014-11-01 23:39:11 +08:00
|
|
|
<ul class="nav navbar-nav pull-right">
|
2014-12-30 01:13:13 +08:00
|
|
|
<li><a href="?view=events"><?= $SLANG['Events']; ?></a></li>
|
2014-11-11 22:19:15 +08:00
|
|
|
<li><a href="?view=timeline"><?= $SLANG['Timeline']; ?></a></li>
|
2014-11-02 08:47:32 +08:00
|
|
|
<li><a href="?view=options"><?= $SLANG['Options'] ?></a></li>
|
2014-11-01 23:39:11 +08:00
|
|
|
<?php if ( logToDatabase() > Logger::NOLOG ) { ?>
|
2014-11-02 22:54:08 +08:00
|
|
|
<li><a href="?view=log"><span class="<?= logState(); ?>"><?= $SLANG['Log'] ?></span></a></li>
|
2014-11-16 00:51:39 +08:00
|
|
|
<?php } if ( ZM_OPT_X10 && canView( 'Devices' ) ) { ?>
|
2014-11-02 08:47:32 +08:00
|
|
|
<li><a href="?view=devices"><?= $SLANG['Devices'] ?></a></li>
|
2014-11-01 23:39:11 +08:00
|
|
|
<?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>
|
2014-11-26 00:31:40 +08:00
|
|
|
<li><a href="?view=host">Host</a></li>
|
2014-11-02 00:01:30 +08:00
|
|
|
<?php ?>
|
2014-11-01 23:39:11 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2014-11-16 00:47:42 +08:00
|
|
|
<?php include("state.php"); ?>
|