<header class="header-wrap">

	<div class="header-menu-wrap">
	
	<div id="headhaut" class="mod w100 "> 
		<div id="date" class="left  w33 aligncenter  automobile">!date! </div>
		<div id="download"class="left  w33 aligncenter notablet nomobile"><a class="btn btn-warning btn-sm" href="#" role="button">Télécharger la dernière version</a></div>
		
<form class="form-inline my-2 my-lg-0" action="search.php" method="get">

 <input class="form-control form-control-sm" type="text" name="query" placeholder="rechercher">
					</form>
	 </div>
	 
			<div id="decohead" class="row1 w100">
				<div id="subligne" class="row1  w100 ">
					<div id="logo" class="col w30  automobile alignmiddle"> <a href="index.php"><img src="themes/!theme!/images/logohead.png" ></a>
					</div>
					<div id="membre" class="col w30 alignmiddle automobile">
						       <?php
   global $cookie, $anonymous;
   global $NPDS_Prefix;
   $username = $cookie[1];
   if (autorisation(-1)) {
      echo "!nb_online! - <a href=\"user.php\">Se connecter</a>";
   } elseif (autorisation(1)) {
      echo "Bonjour $username&nbsp;-&nbsp;<a href=\"user.php\">Votre profil</a>&nbsp;-&nbsp;";
      settype($cookie[0], 'integer');
      list($nbmes)=sql_fetch_row(sql_query("SELECT count(*) FROM ".$NPDS_Prefix."priv_msgs WHERE to_userid='".$cookie[0]."' AND read_msg='0'"));
      if ($nbmes>0)
         echo "<a href=\"viewpmsg.php\" class=\"newmsg\">".$nbmes." nouveau".(($nbmes>1)?'x':'')." message".(($nbmes>1)?'s':'')."</a>";
      else
         echo "<a href=\"viewpmsg.php\">Aucun nouveau message</a>";
      echo "<br />!nb_online! - <a href=\"user.php?op=logout\">Se d&eacute;connecter</a>";
   } ?></a>
					</div>
					<div id="slogan" class="col w30   alignright notablet nomobile ">
					   <h1> !slogan! </h1>
				  </div>
				  
				</div>
			</div>	
	</div>

			<div id="navbas" class="navbas" role="navigation">
		<a href="index.php">Home</a>
		<a href="forum.php">Forums</a>
		<a href="sections.php">A propos de</a>
		<a href="topics.php">Les Sujets</a>
		<a href="submit.php">Ecrire un Article</a>
		<a href="download.php">Download</a>
		</div>

</header>