34 lines
840 B
PHP
34 lines
840 B
PHP
<?php
|
|
/*
|
|
* TP PHP
|
|
* Vue menu
|
|
*
|
|
* Copyright 2016, Eric Dufour
|
|
* http://techfacile.fr
|
|
*
|
|
* Licensed under the MIT license:
|
|
* http://www.opensource.org/licenses/MIT
|
|
*
|
|
* menu: http://www.w3schools.com/bootstrap/bootstrap_ref_comp_navs.asp
|
|
*/
|
|
?>
|
|
<!-- Menu du site -->
|
|
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<ul class="nav navbar-nav">
|
|
<li <?php echo ($page=='accueil' ? 'class="active"':'')?>>
|
|
<a href="index.php">
|
|
<?= MENU_ACCUEIL ?>
|
|
</a>
|
|
</li>
|
|
<?php if (!isset($user) or !$user) { ?>
|
|
<li >
|
|
<a href="index.php?page=register">
|
|
<?= MENU_REGISTER ?>
|
|
</a>
|
|
</li>
|
|
<?php } ?>
|
|
</ul>
|
|
</div>
|
|
</nav>
|