<?php
//LISTE DÉROULANTE AVEC MULTICOLONNES AVEC CHECKBOX
//List Box with Check Box embedded

//Dropdown Checkbox List Plugin
//Multiple Select Dropdown
//Multiple Selection Dropdown
//Search Box with Filter
//php  Checkboxlist

	session_start();
	include('config_inc.php'); 	
	
        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";
	  }

	include("include.php");
	
	$table = "washer"; 
	
	
	
	$connexion = mysql_connect($db_host,$db_user,$db_pass); 
 	mysql_select_db($db_name, $connexion);
  
	//$result = mysql_query("SELECT * FROM $table");
	//$num_rows = mysql_num_rows($result);
	/////$cont = mysql_fetch_array($result);
	/////echo "--> ligne dans table: " .$num_rows;
	
	$connexion = mysql_connect($db_host,$db_user,$db_pass); 
        mysql_select_db($db_name, $connexion);
  
  	$requete = "SELECT filtre FROM categorie WHERE table_article='$table'";	
   	$result = mysql_query($requete);
   	$datas = mysql_fetch_array($result);
    	    	
   	// decoupe la chaine
   	$champs_filtre = explode(",", $datas[0]);
	
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"><head>
	
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Patrice Delpy : Lave-Linge</title>

<link href="filtre_lave-linge.php_fichiers/feuille.htm" rel="stylesheet" type="text/css">

<link href="../feuille.css" rel="stylesheet" type="text/css">


<!--
<link href="filtre.css" rel="stylesheet" type="text/css">
-->

<script src="filtre_lave-linge.php_fichiers/tablefilter.htm" language="javascript" type="text/javascript"></script>



<style type="text/css">
.nav-line li.Composants a {background-position: 50% 100% !important;}
</style>
<style media="screen" type="text/css">#a3519779776 {visibility:hidden}
</style>


            
            
       </head>
       
       <body class="gecko">
				<!-- page -->
		<div style="z-index: 1000; position: relative;" id="page">

			<!-- header -->
			<div id="header">
				<h1><a name="top" href="http://www.materiel.net/">Materiel.net</a></h1>
			</div>

			<!-- nav -->
			
		<div id="nav">
				<div class="GHeadMenu">

<ul class="nav-line">

<li class=""><a href="http://analog-design.net/DEV/acceuil.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="" title="Accueil"><span>Accueil</span></a></li>

<li class="Bonnes affaires"><a href="http://analog-design.net/DEV/Archive/affaires.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97759.gif&quot;);" title="Bonnes affaires"><span>affaires</span></a></li>

<li class="Gros menager"><a href="http://analog-design.net/DEV/Archive/gros_menager.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97760.gif&quot;);" title="Gros menager"><span>Gros Ménager</span></a></li>

<li class="Petit menager"><a href="http://analog-design.net/DEV/Archive/petit_menager.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97761.gif&quot;);" title=" Petit ménager"><span>PEtit Menager</span></a></li>

<li class="Images"><a href="http://analog-design.net/DEV/Archive/image.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97762.gif&quot;);" title="Images"><span>Images</span></a></li>

<li class="Son"><a href="http://analog-design.net/DEV/Archive/son.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97763.gif&quot;);" title="SON"><span>SON</span></a></li>

<li class="Video"><a href="http://analog-design.net/DEV/Archive/video.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97764.gif&quot;);" title="Video"><span>Video</span></a></li>

<li class="Photo et camescope"><a href="http://analog-design.net/DEV/Archive/photo_camescope.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97769.gif&quot;);" title="Photo / caméscopes">Photo / caméscopes</a></li>

<li class="Telephonie"><a href="http://analog-design.net/DEV/Archive/telephonie.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97770.gif&quot;);" title="Téléphonie">Téléphonie </a></li>

</ul>
<ul class="nav-line">

<li class="art de la table"><a href="http://analog-design.net/DEV/Archive/art_de_la_table.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97766.gif&quot;);" title="Art de la table"><span>Art de la table</span></a></li>

<li class="Accessoires"><a href="http://analog-design.net/DEV/Archive/accessoires.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97767.gif&quot;);" title="Accessoires &amp;Consommables"><span>accessoires &amp;consommables</span></a></li>

<li class="Chauffage &amp; clim"><a href="http://analog-design.net/DEV/Archive/chauffage_clim.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97768.gif&quot;);" title="Chauffage &amp; Clim"><span>chauffage &amp; clim</span></a></li>

<li class="Automobiles"><a href="http://analog-design.net/DEV/Archive/automobile.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97769.gif&quot;);" title="Automobiles"><span>Automobiles</span></a></li>

<li class="GPS"><a href="http://analog-design.net/DEV/Archive/gps.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97770.gif&quot;);" title="GPS"><span> GPS</span></a></li>

<li class="MP3"><a href="http://analog-design.net/DEV/Archive/mp3.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="background-image: url(&quot;/live/97771.gif&quot;);" title="AUDIO / MP3 / MP4"><span>AUDIO / MP3 / MP4</span></a></li></ul>
			  </div>



            
<!--cached-->			</div>

			<!-- section :content -->
			<div id="section" class="cat">


<div id="cat" style="overflow: auto;">

	<div style="float: left; width: 175px; margin-left: 0px;">
		<h2 style="margin: 0px; background: url(&quot;../images/cat_default.png&quot;) no-repeat scroll 0% 0% rgb(51, 153, 51); padding-bottom: 5px; line-height: 18px; text-transform: uppercase; font-weight: normal; text-align: center; font-size: 11px; -moz-background-inline-policy: continuous;">Les gammes de produits</h2>
		<ul class="CatList" style="background: url(&quot;../images/cat_fond.png&quot;) repeat-x scroll 0% 0% transparent; -moz-background-inline-policy: continuous;">

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/lave-linge.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItemHL">Lave-Linge</a></li>

<li><a href="http://analog-design.net/DEV/Archive/filtre_lave-linge.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" class="CatListSubItem">UN</a></li>
<li><a href="http://analog-design.net/DEV/Archive/filtre_lave-linge.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" class="CatListSubItem">DEUX</a></li>
<li><a href="http://analog-design.net/DEV/Archive/filtre_lave-linge.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" class="CatListSubItem">TROIS</a></li>


<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/lave-linge-sechant.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Lave-Linge sèchant</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/seche_linge.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Sèche-Linge</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/lave_vaisselle.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" 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="http://analog-design.net/DEV/Archive/refrigerateur.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Réfrigérateur</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/congelateur.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Congélateur</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/cave_vin.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Cave à vin</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/table_cuisson.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" 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="http://analog-design.net/DEV/Archive/four.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" 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="http://analog-design.net/DEV/Archive/cuisiniere.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Cuisiniére</a></li>

<li style="border-bottom: 3px solid rgb(244, 244, 244);"><a href="http://analog-design.net/DEV/Archive/micro_onde.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" 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="http://analog-design.net/DEV/Archive/grillade_barbecue.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e" style="border-bottom: 1px solid rgb(153, 153, 153);" class="CatListItem">Grillade / Barbecue</a></li>

				</ul>
                
                
		
	</div>




<div style="border-left: 1px solid rgb(160, 160, 160); float: right; width: 760px; margin-left: 6px; padding-left: 6px; padding-right: 6px; text-align: left;">
	<table class="CatTitle" border="0" cellpadding="0" cellspacing="0" width="100%">
		<tbody><tr>
			<th height="40" valign="baseline" width="88%">
				UNIVERS LAVAGE				
				  <hr>
			</th>
			<td rowspan="2" class="ImgZone" width="12%"><img src="filtre_lave-linge.php_fichiers/26947.htm" alt=""></td>
		</tr>
		<tr>
			<td style="vertical-align: top;"><a style="color: rgb(51, 153, 51);" href="http://analog-design.net/DEV/acceuil.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e">Accueil</a> &gt; <a style="color: rgb(51, 153, 51);" href="http://analog-design.net/DEV/Archive/gros_menager.php?PHPSESSID=0b49e0891d3f02eafc3b7abe9a49ba1e">Gros ménager</a> &gt; Lave-Linge</td>
		</tr>
	</tbody></table>
	<table class="ProdFilter" style="clear: both;" border="0" cellpadding="0" cellspacing="0" width="100%;">
	  <tbody>
	    <tr>
	      <th align="left" height="30" valign="top" width="500">Filtres par caractéristiques
	        <input autocomplete="off" id="FilterSF" value="" type="hidden" /></th>
	      </tr>
	    <tr>
	      <td valign="top"><table class="ProdFilterList" border="0" cellpadding="0" cellspacing="0" width="100%">
	        <tbody>
	          <tr>
<!--	            <form name="form_select" method="post" action="">
	              <div align="center" >

	                <th><?php echo checkedSelect($nom1, $structure1, $contenu1, $_POST[$nom1]); ?></th> 
	                <th><?php echo checkedSelect($aanom2, $aastructure2, $aacontenu2, $_POST[$aanom2]); ?></th>  -->

   
	        <th>&nbsp;</th>
	        <th>&nbsp;</th>
	        <th>&nbsp;</th>
	               
	                
	                
	               
<!--	                <br />
	                <input type="submit" name="submit" value="envoyer" />
	                </div>
	              </form> -->
	            <th>&nbsp;</th>
	            <th>&nbsp;</th>
	            <th>&nbsp;</th>
	            <td><script type="text/javascript">
								Slide = new CSlide(36, 277, 200, 16);
								Slide.Create('FilterPrice', null);
								Slide.SetValues(0, 0);
								if(Slide.onchanged != 'undefined') {
									Slide.onchanged = function(MinVal, MaxVal) {
										ProdListUpdate("Disques_durs_internes_SATA");
									};
								}
							</script></td>
	            </tr>
	          <tr>
	          	<form name="form_select" method="post" action="">
	              <div align="center" >
	            <th width="17%"><?php echo checkedSelect($item01, $struct01, $critere01, $_POST[$item01]); ?> &nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%"><?php echo checkedSelect($item02, $struct02, $critere02, $_POST[$item02]); ?>&nbsp;</th>
	            <th width="17%"></th>
	            <th width="17%"><?php echo checkedSelect($item03, $struct03, $critere03, $_POST[$item03]); ?></th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            </tr>
	          <tr>
	            <th width="17%"><?php echo checkedSelect($item04, $struct04, $critere04, $_POST[$item04]); ?></th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%"><?php echo checkedSelect($item05, $struct05, $critere05, $_POST[$item05]); ?></th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%"><?php echo checkedSelect($item06, $struct06, $critere06, $_POST[$item06]); ?></th>
	            <th width="17%">&nbsp;</th>
	            <td width="83%">&nbsp;</td>
	             <br />
	                <input type="submit" name="submit" value="envoyer" />
	                </div>
	              </form>
	            </tr>
	          <tr>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <td width="83%">&nbsp;</td>
	            </tr>
	          <tr>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <th width="17%">&nbsp;</th>
	            <td width="83%">&nbsp;</td>
	            </tr>
	          </tbody>
	        </table></td>
	      </tr>
	    <tr style="background:url(../images/CatFiltreLine.gif);">
	      <td align="left" style="padding:0"><img src="../images/CatFiltreLeft.gif" width="8" height="10" alt="" /></td>
	      <td style="padding:0"><img src="../images/CatFiltreRight.gif" width="8" height="10" alt="" align="right"/></td>
	      </tr>
	    </tbody>
	  </table>
	<!-- filtre -->
		<a name="prods"></a>
		<div id="ProdListArea" class="ProdList" style="margin-top: 20px;">
	<div id="Plc" class="ProdListCount">
	<div style="float: left; height: 34px;"><?php echo $nb_resultats_filtre; ?> produits correspondent à vos critères de sélection</div>

	<div id="DisplayType1" class="CatDisplayType" style="background: url(&quot;/images/gui/main/CatViewDetail.gif&quot;) no-repeat scroll center top transparent; -moz-background-inline-policy: continuous;" onclick="ProdListView('Disques_durs_internes_SATA', 1);"></div>
    
    
	<div id="DisplayType2" class="CatDisplayType" style="background: url(&quot;/images/gui/main/CatViewList.gif&quot;) no-repeat scroll center bottom transparent; -moz-background-inline-policy: continuous;" onclick="ProdListView('Disques_durs_internes_SATA', 2);"></div>
</div>

<div style="clear: both;"></div>

<table class="ProdList" align="center" border="0" cellpadding="0" cellspacing="0" width="750px;">
	<tbody><tr>
				<th width="106">&nbsp;</th>
				<th width="99"><a href="#" onclick="ProdListUpdate('Disques_durs_internes_SATA', 1, 1, 1); return false;">Marque</a></th>
		<th width="203"><a href="#" onclick="ProdListUpdate('Disques_durs_internes_SATA', 2, 0, 1); return false;">Nom</a></th>
		<th width="63"><a href="#" onclick="ProdListUpdate('Disques_durs_internes_SATA', 3, 0, 1); return false;">Prix TTC</a></th>
		<th width="40"><a href="#" onclick="ProdListUpdate('Disques_durs_internes_SATA', 4, 0, 1); return false;">Dispo</a></th>
		<th width="194">Caracteristiques</th>
		<th colspan="2" width="59">&nbsp;</th>
	</tr>
	<tr class="ProdListHLine">
				<td></td>
				<td width="99"><img src="filtre_lave-linge.php_fichiers/ProdListHArrowA.htm" alt=""></td>
		<td width="203"></td>
		<td width="63"></td>
		<td width="40"></td>
		<td width="194"></td>
		<td colspan="2" width="59"></td>
	</tr>
    

<?php

	   $ligne_par_page = 2;
	   
	   if(isset($_GET['page'])) 
             {
     		$pageActuelle=intval($_GET['page']);
     		
     		//echo "****** " .$pageActuelle;
     
     		// Si la valeur de $pageActuelle (le numéro de la page) est plus grande que $nombreDePages...
     		/*if($pageActuelle>$nombre_pages) 
     		  {
          		$pageActuelle=$nombre_pages;
     		  }*/
	    }

	else  {
     		$pageActuelle=1; // La page actuelle est la n°1    
	      }


	$premiereEntree=($pageActuelle-1)*$ligne_par_page; // On calcul la première entrée à lire 
	   
	
	//echo "Index :" .$premiereEntree;
	//echo "<br>";
	//echo "Ligne par page " .$ligne_par_page;
	
	 	
	 	
	 	

	  
  	   if($flag == true)
  	     {  echo "filtrage";
  	     
//  	        $req = $req ." ORDER BY id DESC LIMIT $premiereEntree, $ligne_par_page ";
  	        //echo $req;
  	        
//  	        $connexion = mysql_connect($db_host,$db_user,$db_pass); 
// 	        mysql_select_db($db_name, $connexion);
//  	        $retour_messages = mysql_query($req);
//  	        $nb_resultats_filtre = mysql_num_rows($retour_messages);
  	        
//  	        echo ">>>>>> Resultats : " .$nb_resultats_filtre;
  
  		$connexion = mysql_connect($db_host,$db_user,$db_pass); 
       	    	mysql_select_db($db_name, $connexion);	        
  	        
  	        $retour_messages = mysql_query($req);
  	        
  	        $nb_resultats_filtre = mysql_num_rows($retour_messages);
  	        
  	         /*while($data = mysql_fetch_assoc($retour_messages))
                        {
                          echo $data['reference'];
                          echo "<br>"; 
                        }*/
  	       
  	     }
  	    if($flag == false)
  	     {  echo "defaut";
  	     	
  	     	$connexion = mysql_connect($db_host,$db_user,$db_pass); 
 		mysql_select_db($db_name, $connexion);
  	        
  	        $result = mysql_query("SELECT * FROM $table"); 
  	        $nb_resultats_filtre = mysql_num_rows($result);
  	        
  	        echo ">>>>>> Resultats : " .$nb_resultats_filtre;
  	        
  	        $connexion = mysql_connect($db_host,$db_user,$db_pass); 
 		mysql_select_db($db_name, $connexion);
  
//  	    $retour_messages = mysql_query("SELECT * FROM $table ORDER BY id DESC LIMIT '.$premiereEntree.', '.$ligne_par_page.'");
  	    
  	    $retour_messages=mysql_query('SELECT * FROM '.$table.' ORDER BY id DESC LIMIT '.$premiereEntree.', '.$ligne_par_page.'');

  	    
  	    //$retour_messages = mysql_query("SELECT * FROM $table ORDER BY id DESC LIMIT 0,2 ");
  	    
  	   
  	     } 
  
	   //$result = mysql_query("SELECT * FROM $table");
	   
	   //$nb_enregistrement = mysql_num_rows($result);
	   //echo " >>> Total >>> " .$nb_enregistrement;

	   $nombre_pages = ceil($nb_resultats_filtre/$ligne_par_page); 	
	   echo " >>> Nb pages >>> " .$nombre_pages;
	   
	   $i = 0;
	   
   while($data=mysql_fetch_assoc($retour_messages)) 
       {
       	  if($i < 2)
       	    {
		  
		    $chaine = "";
		    $marque = $data['marque'];
   		    $prix_ttc = $data['prix_ttc'];
 
 		    $designation = $data['designation'];
   		    $reference = $data['reference'];
			
			$dispo = $data['dispo'];
 
  		    $s1 = $designation ." " .$reference;
		   
	    	$motif_underscore = '_';
			$espace = " ";
		  
			for($j=1; $j<count($champs_filtre); $j++) 
	           {  $val = $champs_filtre[$j];
				 
				  if($j<count($champs_filtre) )
			        { $chaine = $chaine ." " .$val ." " .$data[$val] .",";
					}
	
			      else {  $chaine = $chaine ." " .$val ." " .$data[$val] ;
				       }
				  
			   }
	
			 if(preg_match('`\_`', $chaine))
			   { $chaine = str_replace($motif_underscore, $espace, $chaine);
			   }
	

		      if($i%2 ==0)
		        { // paire;
		      	  echo "<tr class=\"ProdListL1\">";
		        }
	    
		   	  else { // impair;
		        	 echo "<tr class=\"ProdListL1\">";
				   } 
				   
			  switch($dispo)
  		      {
			  case "24H" :
			          $dispo_logo  = "../images/stock_vert.gif";
			          $dispo_message = "En stock";
			    	  break;
			  case "48H" :
			          $dispo_logo  = "../images/stock_bleu.gif";
			          $dispo_message = "En cours d'approvisionnement";
			    	  break;
			  case "72H" :
			          $dispo_logo  = "../images/stock_rouge.gif";
			          $dispo_message = "Rupture de stock";
			    	  break;  	  		  
			}		 
				   
					 
				echo "
				<td class=\"Photo\" width=\"106\">
			    <a href=\"page.html\">
				<img src=\"filtre_lave-linge.php_fichiers/99897.htm\" alt=\"message\"></a></td>
				<td class=\"Marque\" width=\"99\">$marque</td>
				<td class=\"Desc  \" width=\"203\">
				<a href=\"page.html\">$s1</a>
			    <div class=\"TagLine\">Performances à la hausse, consommation à la baisse !</div>		</td>
				<td class=\"Price\" width=\"63\">$prix_ttc &#8364;</td>
				<td class=\"AlignCenter\" width=\"40\">
				<img src=\"$dispo_logo\" alt=\"$dispo_message\" title=\"$dispo_message\" ></td>


		        <td class=\"Carac\" width=\"194\">$chaine</td>
				<td class=\"AlignCenter\">
				<input name=\"comp\" value=\"53771\" type=\"checkbox\"></td>
				<td class=\"AlignCenter\" width=\"30\">
				<a href=\"#\" onclick=\"ChangeAmount('53771', +1, 'Hitachi Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo'); return false; \">
				<img src=\"../images/ProdBuySmall.gif\" alt=\"Ajouter au panier\"
				title=\"Ajouter au panier\" border=\"0\"></a></td>
				</tr>
						";
					 
					 
					 $i = $i + 1;	
					 
			}		 
		   
		}
		  
		  

?>

<!--    
<tr class="ProdListL1">
<td class="Photo" width="106">
<a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53771-Deskstar_7K1000_C_S_ATA_1000_Go_32_Mo.html">
<img src="filtre_lave-linge.php_fichiers/99897.htm" alt="Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo"></a></td>
<td class="Marque" width="99">Hitachi</td>
<td class="Desc  " width="203">
<a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53771-Deskstar_7K1000_C_S_ATA_1000_Go_32_Mo.html">Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo</a>
<div class="TagLine">Performances à la hausse, consommation à la baisse !</div>		</td>
<td class="Price" width="63">56,79 &#8364;</td>
<td class="AlignCenter" width="40"><img src="filtre_lave-linge.php_fichiers/StockVert.htm" alt="En stock" title="En stock"></td>
<td class="Carac" width="194">S-ATA/II, 1000 Go, 32 Mo, 7200 trs/min</td>
<td class="AlignCenter"><input name="comp" value="53771" type="checkbox"></td>
<td class="AlignCenter" width="30">
<a href="#" onclick="ChangeAmount('53771', +1, 'Hitachi Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo'); return false;">
<img src="filtre_lave-linge.php_fichiers/ProdBuySmall.htm" alt="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo&quot; au panier" title="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 1000 Go - 32 Mo&quot; au panier" border="0"></a></td>
</tr>
    
    
    
	<tr class="ProdListL2">
		<td class="Photo" width="106"><a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53982-Deskstar_7K1000_C_S_ATA_320_Go_16_Mo.html"><img src="filtre_lave-linge.php_fichiers/100385.htm" alt="Deskstar 7K1000.C S-ATA - 320 Go - 16 Mo"></a></td>
		<td class="Marque" width="99">Hitachi</td>
		<td class="Desc  " width="203">
			<a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53982-Deskstar_7K1000_C_S_ATA_320_Go_16_Mo.html">Deskstar 7K1000.C S-ATA - 320 Go - 16 Mo</a>
			<div class="TagLine">Performances à la hausse, consommation à la baisse !</div>		</td>
			<td class="Price" width="63">38,49 &#8364;</td>
		<td class="AlignCenter" width="40"><img src="filtre_lave-linge.php_fichiers/StockVert.htm" alt="En stock" title="En stock"></td>
		<td class="Carac" width="194">S-ATA/II, 320 Go, 16 Mo, 7200 trs/min</td>
		<td class="AlignCenter"><input name="comp" value="53982" type="checkbox"></td>
		<td class="AlignCenter" width="30"><a href="#" onclick="ChangeAmount('53982', +1, 'Hitachi Deskstar 7K1000.C S-ATA - 320 Go - 16 Mo'); return false;"><img src="filtre_lave-linge.php_fichiers/ProdBuySmall.htm" alt="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 320 Go - 16 Mo&quot; au panier" title="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 320 Go - 16 Mo&quot; au panier" border="0"></a></td>
	</tr>
    
    
    
	<tr class="ProdListL1">
		<td class="Photo" width="106"><a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53796-Deskstar_7K1000_C_S_ATA_500_Go_16_Mo.html"><img src="filtre_lave-linge.php_fichiers/99958.htm" alt="Deskstar 7K1000.C S-ATA - 500 Go - 16 Mo"></a></td>
		<td class="Marque" width="99">Hitachi</td>
		<td class="Desc  " width="203">
			<a href="http://www.materiel.net/ctl/Disques_durs_internes_SATA/53796-Deskstar_7K1000_C_S_ATA_500_Go_16_Mo.html">Deskstar 7K1000.C S-ATA - 500 Go - 16 Mo</a>
			<div class="TagLine">Performances à la hausse, consommation à la baisse !</div>		</td>
			<td class="Price" width="63">39,79 &#8364;</td>
		<td class="AlignCenter" width="40"><img src="filtre_lave-linge.php_fichiers/StockVert.htm" alt="En stock" title="En stock"></td>
		<td class="Carac" width="194">S-ATA/II, 500 Go, 16 Mo, 7200 trs/min</td>
		<td class="AlignCenter"><input name="comp" value="53796" type="checkbox"></td>
		<td class="AlignCenter" width="30"><a href="#" onclick="ChangeAmount('53796', +1, 'Hitachi Deskstar 7K1000.C S-ATA - 500 Go - 16 Mo'); return false;"><img src="filtre_lave-linge.php_fichiers/ProdBuySmall.htm" alt="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 500 Go - 16 Mo&quot; au panier" title="Ajouter &quot;Hitachi Deskstar 7K1000.C S-ATA - 500 Go - 16 Mo&quot; au panier" border="0"></a></td>
	</tr>

-->    
    
    
	  <tr class="ProdListBLine">
	  <td width="106">Page 1 sur 3</td>
	  <td colspan="7">
	  <span class="Nav">&lt;</span>
	  <span class="Nav">1</span>
	  <span class="Nav">
	  <a href="#prods" onclick="ProdListUpdate('Disques_durs_internes_SATA', 1, 0, 2);">2</a></span>
	  <span class="Nav">
	  <a href="#prods" onclick="ProdListUpdate('Disques_durs_internes_SATA', 1, 0, 3);">3</a></span>
	  <span class="Nav"><a href="#prods" onclick="ProdListUpdate('Disques_durs_internes_SATA', 1, 0, 2);">&gt;</a></span>
	  </td>
	  </tr>
	  
<?php
              
             echo '<p align="center">Page : '; //Pour l'affichage, on centre la liste des pages
		
	     for($i=1; $i<=$nombre_pages; $i++) //On fait notre boucle
		{
     		  //On va faire notre condition
     		  if($i==$pageActuelle) //Si il s'agit de la page actuelle...
     			{
         		echo ' [ '.$i.' ] '; 
     		     }	
     		else //Sinon...
     			{	//essai avec une variable post pour éviter ?page ....
          			echo ' <a href="filtre_lave_linge.php?page='.$i.'">'.$i.'</a> ';
     			}
		}
		echo '</p>';
        
?>
	  
	  
	  
	  
	  
	  
	  
	  
	  <tr>
	  <td colspan="6" height="40">
	Afficher
	<select name="select" onchange="ProdListPpp('Disques_durs_internes_SATA', this.value);" style="height: 20px; font-size: 10px;">
	<option value="10">10 produits</option>
	<option value="25" selected="selected">25 produits</option>
	<option value="50">50 produits</option>
	<option value="-1">tous les produits</option>
	</select>
	</td>
	
	<td colspan="2" align="right"><input value="Comparer" onclick="ProdComp();" type="button"></td>
	</tr>
        </tbody>
        </table>
	</div>


<!-- filtre -->	
    
<div align="center"></div>


</div>
</div>			</div>

			<!-- aside -->
			<div id="aside">
				<div id="search-bar">
	<form method="get" action="http://www.materiel.net/search.html"><input name="PHPSESSID" value="0b49e0891d3f02eafc3b7abe9a49ba1e" type="hidden">
		<input name="search" title="Recherche" type="text">
		<input value="Rechercher" type="submit">
	</form>
</div>
				<div id="account">
	<ul>
		<li class="icon"><a href="http://www.materiel.net/client/login.html">Mon espace perso</a></li>
	</ul>

	<div class="panel">
		<form action="/client/logincheck.nt.php" method="post"><input name="PHPSESSID" value="0b49e0891d3f02eafc3b7abe9a49ba1e" type="hidden">
			<dl>
				<dt><label for="login">Votre nom d'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="http://www.materiel.net/client/register.html">Créer mon compte</a></li>
				<li class="password"><a href="http://www.materiel.net/client/sendpass.html">Mot de passe oublié ?</a></li>
			</ul>
		</form>
	</div>
</div>

<div id="basket">
	<ul>
		<li id="BasketProdCount"><a href="http://www.materiel.net/panier.html">Votre panier est vide</a></li>
		<li id="BasketAmount"></li>
	</ul>
</div>
					</div>

			<!-- footer -->
			

		</div>
	</body></html>