			<div id="aside">
			<div id="search-bar">

			<form method="get" action="search.html">
			<input type="text" name="search" title="Recherche"/>
			<input type="submit" value="Rechercher" />
			</form>
			</div>
			

<?php
            
          
			 
			    if($_SESSION['utilisateur_login']== "valide")
				  {         //echo '<body onLoad="alert(\'Identification par le panel.\')">'; 
							echo "
								<div id=\"account\" class=\"on\">
								<ul>
								<li class=\"icon\"><a href=\"../compte/compte.php\">Mon espace perso</a></li>
								<li class=\"logout\"><a href=\"../compte/logout.php\" title=\"Me d&eacute;connecter\">Me d&eacute;connecter</a></li>
								</ul>
								<div class=\"panel\">
								<ul class=\"buttons\">
								<li class=\"account\"><a href=\"../compte/compte.php\">Mon compte client</a></li>
								<li class=\"orders\"><a href=\"../commande/suivi_commande.php\">Mes commandes</a></li>
								<li class=\"addresses\"><a href=\"../compte/adresse_livraison.php\">Mon carnet d'adresse</a></li>
								<li class=\"repairs\"><a href=\"../compte/sav.html\">Mes retours S.A.V</a></li>
								<li class=\"parrainages\"><a href=\"../compte/parrainage.html\">Mes parrainages</a></li>
								<li class=\"refunds\"><a href=\"../compte/avoir.html\">Mes avoirs</a></li>
								<li class=\"carts\"><a href=\"../panier/shopping_liste.php\">Mes paniers</a></li>
								<li class=\"alertes\"><a href=\"../compte/alerte.html\">Mes alertes</a></li>
								</ul>
								</div>
								</div> ";
					
				     }
					 
					 else {
						 		echo "
						 		<div id=\"account\">
								<ul>
								<li class=\"icon\"><a href=\"../compte/login.php\">Mon espace perso</a></li>
								</ul>

								<div class=\"panel\">
								<form action=\"../compte/check.php\" method=\"post\">
								<dl>
								<dt><label for=\"login\">Votre nom utilisateur</label></dt>
								<dd><input name=\"login\" id=\"login\" maxlength=\"20\" type=\"text\"></dd>
								<dt><label for=\"pass\">Votre mot de passe</label></dt>
								<dd><input name=\"pass\" id=\"pass\" maxlength=\"10\" type=\"password\"></dd>
								</dl>
								<input value=\"Connexion\" type=\"submit\">
								<hr>
								<ul class=\"buttons\">
								<li class=\"register\"><a href=\"../compte/creation_compte.php\">Créer mon compte</a></li>
								<li class=\"password\"><a href=\"../compte/sendpass.php\">Mot de passe oublié ?</a></li>
								</ul>
								</form>
								</div>
								</div> ";
						 
					      }
					 
					 
			 

?>


<?php


	$_SESSION['total_ttc_panier'] = $total_ttc;
	$_SESSION['total_ht_panier'] = $total_ht;
	
	$_SESSION['nb_article_panier'] = $compte_articles;


	if($compte_articles == 0)
      {
		echo " <div id=\"basket\" >
				<ul>
				<li id=\"BasketProdCount\"><a href=\"panier.html\">Votre panier est vide</a></li>
				<li id=\"BasketAmount\"></li>
				</ul>
				</div>
				</div>  ";
	  }


	if($compte_articles != 0)
	  {

		
                $mess1 = $compte_articles ." " ."article" ; 
		
		if($compte_articles >1)
		  { $mess1 = $mess1 ."s";
		  }	
		
		$mess2 = $total_ttc ." &euro";
		

		echo "   <div id=\"basket\" class=\"on\">
 			     <ul>
		     	 <li id=\"BasketProdCount\"><a href=\"panier02.php\">$mess1</a></li>  
		    	 <li id=\"BasketAmount\">$mess2</li> 
				 </ul>
				 </div>
			     </div> ";
	  }


?>
