<?php 
View::is("global");
global $config;
?>
<style type="text/css">
	.navbara .collapse > ul > li > a,.navbara .collapse > ul > li > a span{
		color: #fff !important;
	}
	*:disabled{
		display:none
	}
	.btn-primary > .glyphicon{
		color: #fff !important;
	}
	.navbar-brand{
		color: #fff !important;
	}
	.navbar-inverse {
        /*background-image: linear-gradient(to bottom,<?= $config["bgmenu"] ?> 0,<?= $config["bgmenu"] ?>91 100%);*/
	    /*background-repeat: repeat-x;*/
	    background: <?= $config["bgmenu"] ?>;
	    border-color: <?= $config["bgmenu"] ?>;
	}
	.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover{
	    /*background-color: #0808087a;*/
	    background-color: #ffffff80;
	}
	.has-feedback .form-control {
		padding-right: 8px;
	}
	body{
		overflow-y: scroll;
	}
</style>
<nav class="navbar navbar-inverse navbara" style="border-radius: 0;" >
	<div class="container">
	<div>
	  <div class="navbar-header">
	    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
	      <span class="sr-only"></span>
	      <span class="icon-bar"></span>
	      <span class="icon-bar"></span>
	      <span class="icon-bar"></span>
	    </button>
	    <a class="navbar-brand" href="<?= $config["defaulturl"] ?>">
	    	<img style="height: 42px;margin-top: -11px;max-width: 192px;" src="<?= $config["logo"] ?>">
	    </a>
	  </div>
	  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
			<?= MenuManager::getHtml($config["menu"]) ?>
	  </div>
	</div>
	</div>
</nav>
<div class="container" style="flex:1;display: flex;flex-direction: column;">
	<div style="flex:1;display: flex;flex-direction: column;"> 
		<? section("content",function(){
			?>
		<div style="display: flex;flex:1;align-items: center;justify-content: center;flex-direction: column;text-align: center;">
			<h2>Page introuvable</h2>
			<p>Cette page est intouvable ou vous avez pas le droit d'accès</p>
		</div>
			<?php
		}) ?>
	</div>
	<div style="width: 100%;padding-bottom: 32px;">
		<hr>
		<div style="display: flex;align-items: center;">
			<img style="height: 30px;margin-right: 15px;" src="<?= $config["logoprint"] ?>">
			<span> <b><?= $config["titre"] ?></b> v1.0  Copyright &copy; <?= date("Y") ?></span>
			<span style="margin-left: 15px;" datesys="<?= time() ?>000"></span>
			<span style="flex: 1"></span>
			<span>Propulsé par : <a href="//www.mosaiqueweb.com/"><img style="height: 18px;margin-top: -5px;" src="/public/logo/mosaiqueweb.png"></a> </span>
		</div>
	</div>
</div>
<notification widget="notification"></notification>
<?php view::set("js-lib") ?>
<!-- <script src="//cdn.ckeditor.com/4.10.1/standard/ckeditor.js"></script> -->
<script src="//cdn.ckeditor.com/4.12.1/basic/ckeditor.js"></script>
<? section("js-lib") ?>
<?php view::set("js") ?>
<? section("js") ?>
<script>
	app.directive('datesys', [function () {
		return {
			restrict: 'A',
			link: function ($scope, iElement, iAttrs) {
				setInterval(function(){
					var t = new Date();
					t.setSeconds(t.getSeconds());
					$(iElement).html(t.toLocaleDateString()+" "+t.toLocaleTimeString());
				},1000);
			}
		};
	}]);
</script>
