header.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. require_once('common.php');
  3. ?>
  4. <!doctype html>
  5. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
  6. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
  7. <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
  8. <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
  9. <head>
  10. <meta charset="utf-8">
  11. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  12. <title></title>
  13. <meta name="description" content="">
  14. <meta name="author" content="">
  15. <meta name="viewport" content="width=device-width">
  16. <link rel="stylesheet" href="css/style.css">
  17. <script src="js/libs/modernizr-2.5.3-respond-1.1.0.min.js"></script>
  18. </head>
  19. <body>
  20. <div id="header-container">
  21. <header class="wrapper clearfix">
  22. <h1 class="logo" id="title"><a href="./index.php">L<i>eed</i></a></h1>
  23. <div class="loginBloc">
  24. <?php if(!$myUser){ ?>
  25. <form action="action.php?action=login" method="POST">
  26. <input type="text" class="miniInput" name="login" placeholder="Identifiant"/> <input type="password" class="miniInput" name="password" placeholder="Mot de passe"/> <button>GO!!</button>
  27. </form>
  28. <?php }else{ ?>
  29. <span>Identifi&eacute; avec <span><?php echo $myUser->getLogin(); ?></span></span><button onclick="window.location='action.php?action=logout'">D&eacute;connexion</button>
  30. <?php } ?>
  31. </div>
  32. <nav>
  33. <ul>
  34. <li><a href="index.php">Accueil</a></li>
  35. <li><a href="addFeed.php">+ Flux</a></li>
  36. <li><a href="http://blog.idleman.fr">A propos</a></li>
  37. </ul>
  38. </nav>
  39. </header>
  40. </div>
  41. <div id="main-container">