<!DOCTYPE html>
<html lang="de"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
	<meta name="author" content="">
	<link rel="icon" href="http://getbootstrap.com/favicon.ico">

	<title>atOffice</title>

	<!-- Bootstrap core CSS -->
	<link href="styles/bootstrap.min.css" rel="stylesheet">

	<!-- Custom styles for this template -->
	<link href="styles/dashboard.css" rel="stylesheet">
	<link href="styles/bootstrap-editable.css" rel="stylesheet">
	<link href="styles/font-awesome.min.css" rel="stylesheet">
	<link href="styles/jquery.fancybox.css" rel="stylesheet">
	<link href="styles/jquery.datetimepicker.css" rel="stylesheet">
	<link href="styles/style.css" rel="stylesheet">

	<!--<script src="./Dashboard Template for Bootstrap_files/ie-emulation-modes-warning.js"></script><style type="text/css"></style>-->

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
	<![endif]-->
</head>

<body data-user-id="<?php echo $this->_['userID']; ?>">

	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container-fluid">
		<div class="navbar-header">
		<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
		<a class="navbar-brand" href="?">atOffice</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
		<ul class="nav navbar-nav navbar-right">
			<li><a href="">Dashboard</a></li>
			<li><a href="?action=settings">Einstellungen</a></li>
			<li><a href="">Profil</a></li>
			<li><a href="">Hilfe</a></li>
			<li><a href="?action=logout">Logout</a></li>
		</ul>
		<form class="navbar-form navbar-right">
			<input type="text" class="form-control" placeholder="Search...">
		</form>
		</div>
	</div>
	</nav>

	<div class="container-fluid">
	<div class="row">
		<div class="col-sm-3 col-md-2 sidebar">
		<ul class="nav nav-sidebar">
			<li class="active"><a href="?">Übersicht <span class="sr-only">(current)</span></a></li>
		</ul>
		<ul class="nav nav-sidebar">
			<li class="navbar-label-header<?php if(isset($this->_['request']['action']) && ($this->_['request']['action'] == 'manage-labels' || $this->_['request']['action'] == 'manage-label')) { echo ' active'; } ?>"><a href="?action=manage-labels">Labels</a></li>
			<?php
			foreach($this->_['labels'] as $label) {
				if(isset($this->_['request']['action']) && $this->_['request']['action'] == 'label' && $_REQUEST['labelId'] == $label->getId()) {
					echo '<li class="active"><a href="?action=label&labelId=' . $label->getId() . '">' . $label->getName() . '</a></li>';
				} else {
					echo '<li><a href="?action=label&labelId=' . $label->getId() . '">' . $label->getName() . '</a></li>';
				}
			}

			?>
		</ul>
		<!--<ul class="nav nav-sidebar">
			<li><a href="">Nav item again</a></li>
			<li><a href="">One more nav</a></li>
			<li><a href="">Another nav item</a></li>
		</ul>-->
		</div>
