<?php

	session_start();
	
	$_SESSION['database']="public";
	
	if($_SESSION['database']=="local")
	  {
	     $db_host    = "localhost";
	     $db_user   = "root";
	     $db_pass   = "";
     	     $db_name   = "boutique";

	 }
	
	if($_SESSION['database']=="public")
	  {
  	     $db_host    = "sql2";
   	     $db_user   = "analogde";
 	     $db_pass   = "rainbow";
    	     //$db_type   = "mysql";
	     $db_name   = "analogde";
	 }
	 
	 
	$connexion = mysql_connect($db_host,$db_user,$db_pass); 
	mysql_select_db($db_name, $connexion);   
	$requete = "SELECT * FROM classement_categorie ";
	$result = mysql_query($requete);
				
	$cpt = 0;
			
	while($data = mysql_fetch_array($result))
	     {	$categorie = $data['nom_categorie'];
	        $nom_table = $data['nom_table'];
	        
     		echo "<li style=\"border-bottom: 3px solid rgb(244, 244, 244);\">
		      <a href=\"init_filtre.php?table=$nom_table\" style=\"border-bottom: 1px solid rgb(153, 153, 153);\" class=\"CatListItem\">$categorie</a></li> ";
	     }
     	
     	

?>

<!--
<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="lave_linge.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Lave-Linge </a></li>

-->


<!--
<a href="seche_linge.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">S&egrave;che-Linge</a></li>
-->

<!--
<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="init_filtre.php?table=washer" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">S&egrave;che-Linge</a></li>




<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="lave_vaisselle.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Lave-Vaisselle</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="refrigerateur.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">R&eacute;frig&eacute;rateur</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="congelateur.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Cong&eacute;lateur</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="cave_vin.php" style="border-bottom:1px solid rgb(153, 153, 153);" class="CatListItem">Cave &agrave; vin</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="table_cuisson.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Table de cuisson</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="four.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Four</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="cuisiniere.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Cuisini&eacute;re</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="micro_onde.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Micro onde</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);">
<a href="grillade_barbecue.php" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Grillade / Barbecue</a></li>

-->