
<?php

function config()
{

	echo " <head>
	       <title>Electroménager - Lavage - Lave-linge:</title>
	       <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
               <script src=\"includes/trackcode.js\" language=\"javascript\" type=\"text/javascript\"></script>
               <style type=\"text/css\" media=\"screen\"> ";

        echo "
        	/* barre du filtre */

		.fltrow{ /* filter grid row appearance */
		height:20px;
		background-color:#f4f4f4;
		}

		.btnflt{ /* button appearance */
		font-size:11px;
		margin:0 2px 0 2px; padding:0 1px 0 1px;
		text-decoration:none; color: #fff;
		background-color:#666;
		vertical-align:middle;
		}

		.flt{ /* filter (input) appearance */
		background-color:#fff; font-size:10px;
		border-left:1px solid #999; border-right:1px solid #ccc;
		border-top:1px solid #ccc; border-bottom:1px solid #999;
		margin:0; width:100%; vertical-align:middle;
		}
		
		select.flt{ /* select filter */
		background-color:#fff; border:1px solid #ccc; 
		margin:0 1px 1px 0; width:100%; font-size:9px; vertical-align:middle;
		}

		select.flt_multi{ /* multiple select filter */
		background-color:#fff; border:1px solid #ccc; 
		margin:0 1px 1px 0; width:100%; height:100px;
		font-size:9px; vertical-align:middle;
		}
		
		.flt_s{ /* small filter (input) appearance */
		background-color:#fff; font-size:10px;
		border-left:1px solid #999; border-right:1px solid #ccc;
		border-top:1px solid #ccc; border-bottom:1px solid #999;
		margin:0; width:80%; vertical-align:middle;
		}

		.single_flt{ /* single filter appearance (input) */
		background-color:#fff; font-size:11px;
		border-left:1px solid #999; border-right:1px solid #ccc;
		border-top:1px solid #ccc; border-bottom:1px solid #999;
		margin:0; width:120px; vertical-align:middle;
		}

		.div_checklist{ /* div containing checklist  */
		width:100%; height:100px;
		border:1px solid #ccc;
		overflow:auto; 
		background-color:#fff;
		}

		.div_checklist ul.flt_checklist{ padding:0; margin:0; list-style: none; }
		.div_checklist li.flt_checklist_item{ /*check list item*/
		padding:1px; margin:0; font-size:10px;
		border-bottom:1px solid #ccc;
		}
		
		.div_checklist li.flt_checklist_item:hover{
		background-color:#335EA8;
		color:#fff;
		}
		
		.flt_checklist_slc_item{ /*selected check list item*/
		background-color:#335EA8;
		color:#fff;
		}
		
		.div_checklist label{ display:block; }
		.div_checklist input{ vertical-align:middle; margin:2px 5px 2px 1px; }


		/* PAGING ELEMENTS */

		.inf{ /* div containing left, middle and right divs */
		clear:both; width:auto; height:25px; 
		background:#f4f4f4; font-size:11px; 
		margin:0; padding:1px 3px 1px 3px; 
		border:1px solid #ccc; overflow:hidden;
		}

		.ldiv{ /* left div */
		float:left; width:30%; position:inherit; 
		}

		.mdiv{ /* middle div */
		float:left; width:38%; position:inherit; text-align:center;
		padding:1px 0;
		}
		
		.rdiv{ /* right div */
		float:right; width:30%; position:inherit; text-align:right; 
		}

		select.pgSlc{ height:20px; vertical-align:middle; font-size:10px; }/*paging drop-down list*/
		
		input.pgNbInp{ 
		width:25px; height:16px; 
		font-size:11px; vertical-align:middle;  
		margin:1px;
		}/*paging text-box*/

		input.pgInp{ /*paging buttons (Next/Previous)*/
		font-size:10px; font-weight:bold; vertical-align:middle; 
		padding:1px 1px 2px 1px; background-color:#ccc; 
		border:1px outset #666; margin:1px;
		}

		span.nbpg{ padding:0 5px 0 0; }/*paging nb pages*/
		div.inf a{ color:#CC0000; }/*link appearence in .inf div*/
		div.inf a:hover{ text-decoration:none; }/*link appearence in .inf div*/

		div.tot{ /* rows counter appearance */
		float:left; overflow:hidden;
		width:150px; height:15px;
		border-right:1px solid #ccc;
		margin:0 5px 0 2px;
		padding:0 2px 0 2px;
		}

		div.tot span{ font-weight:bold; font-size:11px; }
		select.rspg{ width:50px; margin:1px 5px 0 5px; vertical-align:middle; }/*results per page select*/
		span.rspgSpan{ font-size:11px; } /*results per page select label*/

		/* BEHAVIOURS */
		
		span.keyword{ background-color: #ffcc00;}/*highlighted word*/

		.even{ background-color:#fff; }/*row bg alternating color*/
		.odd{ background-color:#E5E5E5; }/*row bg alternating color*/

		.loader{ /* loader appearance */
		position:absolute; padding: 5px 10px 5px 10px;
		margin:20px 0 0 20px; width:auto; 
		z-index:1000; font-size:12px; font-weight:bold;
		border:1px solid #666; background:#f4f4f4; 
		vertical-align:middle;
		}

		div.status{ /* status bar appearance */
		float:left; overflow:hidden;
		width:150px; height:15px;
		border-right:1px solid #ccc;
		margin:0 5px 0 2px;
		padding:0 2px 0 2px;
		}

		div.status span{ font-weight:bold; font-size:11px; }

		div.cont{ /*table container div*/
		height:200px; overflow: auto;
		}

		div.head{
		width:auto; overflow:hidden;
		}

		/* GRID LAYOUT */

		div.grd_Cont{ /*Main container*/
		width:800px; height:auto;
		overflow:hidden;
		padding:3px 3px 3px 3px; 
		background:#C8E0FB; 
		border:1px solid #99BBE8;
		}

		div.grd_tblCont{ /*Content table container*/
		height:400px; width:800px;
		background:#fff;
		overflow-x:auto;
		overflow-y:scroll;
		}
		
		div.grd_headTblCont{ /*headers' table container*/
		height:auto; width:800px; overflow:hidden;
		border-bottom:1px solid #99BBE8;
		background-color:#C8E0FB;
		}

		div.grd_tblCont table, div.grd_headTblCont table{ /*Tables*/
		font-size:12px; border-collapse:collapse;
		table-layout:fixed;
		}

		div.grd_tblCont table{ border-right:1px solid #99BBE8; }

		/* Filters */
		div.grd_Cont .fltrow{ background-color:transparent; } /*Filters' row*/
		div.grd_Cont .flt{ border:1px solid #99BBE8; width:99%; }
		div.grd_Cont .flt:focus{ border:1px solid #558DD9; }

		/* Headers */
		div.grd_tblCont table th, div.grd_headTblCont table th, div.grd_headTblCont table td{
		background:#C8E0FB;
		padding:2px 2px 2px 2px; color:#333;
		border-right:1px solid #99BBE8;
		overflow:hidden;
		/*white-space:nowrap;*/
		text-overflow:ellipsis;
		}
		
		div.grd_tblCont table td{
		padding:2px 2px 2px 2px; 
		border-bottom:1px solid #ccc;
		overflow:hidden;
		/*white-space:nowrap;*/
		text-overflow:ellipsis;
		}

		.grd_inf{ /* div containing left, middle and right divs */
		clear:both; width:auto; height:25px; 
		background:#C8E0FB; font-size:11px; 
		margin:0; padding:1px 3px 1px 3px;
		border-top:1px solid #99BBE8;
		}

		div.grd_Cont .even{ background-color:#fff; }/*row bg alternating color*/
		div.grd_Cont .odd{ background-color:#DFE8F6; }/*row bg alternating color*/
	
		.sort-arrow {
		width:11px;
		height:11px;
		background-position:center center;
		background-repeat:no-repeat;
		margin:0 2px;
		}

		.sort-arrow.descending {
		background-image:url(\"img/downsimple.png\");
		}

		.sort-arrow.ascending {
		background-image:url(\"img/upsimple.png\");
		} ";

	
        echo "

	        body{ 
		      margin:15px; padding:15px; border:1px solid #666;
		      font-family:Arial, Helvetica, sans-serif; font-size:88%; 
	            }
	        h2{ margin-top: 50px; }
	        table{ border:1px solid #ccc; font-size:85%; }
	        caption{ margin:10px 0 0 5px; padding:10px; text-align:left; }
	        th{
		background:#4A4A4A url(../../images/bg_th.jpg) left top repeat-x; 
		border-left:1px solid #C7C7C7;
		padding:5px; color:#fff; height:25px;
	       }
		td{ padding:2px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; }
		pre{ margin:5px; padding:5px; background-color:#f4f4f4; border:1px solid #ccc; }
		label{ font-weight:bold; font-size:12px; }
		.div_checklist label{ font-weight:normal; font-size:10px; }
		.font10{ font-size:10px; }

		#extGrid{  
			float:left; background:#E4FAE4; 
			border:1px solid #999; width:250px; 
			margin-right:20px; padding:10px;
		}
	
		/* status bar container */


		#statusDiv{
			float:left;	width:auto;
			background:#fff;
			margin:1px 5px 0 10px; 
			padding:3px 3px 3px 3px;
			font-size:11px;
		} 

	
		</style>

		<script src=\"tablefilter.js\" language=\"javascript\" type=\"text/javascript\"></script>

                <link rel=\"stylesheet\" type=\"text/css\" href=\"includes/SyntaxHighlighter/Styles/SyntaxHighlighter.css\" />

		<script src=\"includes/SyntaxHighlighter/Scripts/shCore.js\" language=\"javascript\" type=\"text/javascript\"></script>
		<script src=\"includes/SyntaxHighlighter/Scripts/shBrushJScript.js\" language=\"javascript\" type=\"text/javascript\"></script>
		<script src=\"includes/SyntaxHighlighter/Scripts/shBrushXml.js\" language=\"javascript\" type=\"text/javascript\"></script>
		<script language=\"javascript\" type=\"text/javascript\"> 

		tf_addEvent(window,'load',initHighlighter);
		function initHighlighter()
		{
			dp.SyntaxHighlighter.ClipboardSwf = \"includes/SyntaxHighlighter/Scripts/clipboard.swf\";  
			dp.SyntaxHighlighter.HighlightAll(\"code\"); 
		}
		
		</script>

		</head>
		<body>	";


	echo "

		<h1>Filtrage Lave-Linge</h1>
		<div id=\"extGrid\">

  		<label>Marque:</label><br/>
		<span id=\"sel_marque\"></span><br/>
	    
		<label>Chargement:</label><br/>
		<span id=\"sel_chargement\"></span><br/><br/>

		<label>Capacit&eacute;:</label><br/>
		<span id=\"sel_capacite\"></span><br/>
    
    		<label>Classe:</label><br/>
		<span id=\"sel_classe\"></span><br/>
    
    		<label>Essorage:</label><br/>
		<span id=\"sel_essorage\"></span><br/>

		
		</form>
		<hr/>
		<div style=\"float:left;\">
	  	<input id=\"btnFlt\" value=\"Filtrer\" type=\"button\" onclick=\"tf_demo.Filter();\" />&nbsp;
	  	<input id=\"btnClr\" value=\"Tout voir\" type=\"button\" 
			onclick=\"tf_demo.ClearFilters(); 
				//clears radio btns				
				for( var o=frmRadioInps.elements, p=o.length - 1; p > -1; p--) {
				  if ( o[p].type ) o[p].checked = false;
				}			
			\" />
		</div>

		<div id=\"statusDiv\"></div>
		<div style=\"clear:both;\"></div>
		<hr/>
		
		
		
		
		<input type=\"checkbox\" id=\"paging\" 
			onclick=\"if(this.checked){
				if( tf_demo.paging ) return;
				tf_Id('pagingFeatures').style.display = '';
				tf_demo.AddPaging(true); //easy way to add paging when filter grid bar is already set
			}else{
				if( !tf_demo.paging ) return;
				tf_Id('pagingFeatures').style.display = 'none';
				tf_demo.paging = false; //behaviour is removed here
				tf_demo.RemovePaging();
				tf_demo.Filter();
			} \" /> Mise en page 
		<br/>

			

		<hr/>
	
		<div id=\"pagingFeatures\" style=\"display:none; font-size:10px;\">
			Aller à la page : 
		<input type=\"text\" id=\"goto\" name=\"goto\" size=\"3\" /><input type=\"button\" value=\"Aller à la page\" 
				onclick=\"javascript: 
				if(!tf_demo.paging) return; 
				tf_demo.SetPage(parseInt(tf_Id('goto').value)); \" />
		<br/>
		
		<a href=\"javascript:tf_demo.SetPage('Previous');\">Page precedente</a> |
		<a href=\"javascript:tf_demo.SetPage('first');\">Premiére page</a> |
		<a href=\"javascript:tf_demo.SetPage('last');\">Derniére page</a> |
		<a href=\"javascript:tf_demo.SetPage('Next');\">Page suivante</a>
		
		</div>
		</div> ";

	echo "

		<div style=\"float:left; border:1px solid #333; width:680px;\">
		<table id=\"demo\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">

		<thead>
		<tr>
	  	<th width=\"12%\" nowrap=\"\">Marque</th>
	  	<th width=\"13%\" nowrap=\"\">Mod&eacute;le</th>
		<th width=\"13%\" nowrap=\"\">Chargement</th>
		<th width=\"12%\" align=\"right\" nowrap=\"\">Capacit&eacute;</th>
		<th width=\"10%\" align=\"right\" nowrap=\"\">Classe</th>
		<th width=\"10%\" align=\"right\" nowrap=\"\">Essorage</th>
		<th width=\"7%\" align=\"right\" nowrap=\"\">Dispo</th>
		<th width=\"13%\" align=\"right\" nowrap=\"\">Prix TTC</th>
		<th width=\"7%\" align=\"right\" nowrap=\"\">Panier</th>
		</tr>
		</thead> ";
		
		
		$db_type   = "mysql";
		$db_user   = "analogde";
		$db_pass   = "rainbow";
		$db_name   = "analogde";
		$db_host    = "sql2";
		
		//$connexion = mysql_connect($db_host,$db_user,$db_pass); 
		$connexion = mysql_connect("localhost", "root", "");

        	if(!$connexion)
          	{ die('Could not connect: ' . mysql_error());
          	}
  
        	//echo 'Connexion réussie';
        	//$db = mysql_select_db($db_name,$connexion); 
        	mysql_select_db("boutique", $connexion);

        	$sql = 'SELECT marque,modele,chargement,capacite,essorage,classe,stocke,prix_ttc FROM lave_linge'; 
  
  		$result = mysql_query($sql);
  		
  		echo " 
    		 	<tbody> ";
  		
  		$table_produit = "lave_linge";
  		
  		while ($data=mysql_fetch_row($result))  
                {
    		  
	    		$lien_marque = "Logo marque/" . $data[0] .".jpg";
	    		$lien_capacite = "Logo capacite/logo-capacite-" . $data[3] .".jpg";
			$lien_classe = "Logo energie/logo-energetique-" . $data[5] .".jpg";
			$lien_essorage = "Logo essorage/logo-" . $data[4] . "-trsmin.jpg";

    		
    		 echo " 
    		 	
    		 	<tr>

        		<td style=\"color:#FFF\">$data[0]<img src=\"$lien_marque\"  width=\"75\" height=\"24\"  align=\"right\"  /></td>

		        <td><div align=\"center\"><a href=\"produit.php?id=$data[1]&table=$table_produit\">$data[1]</a></div></td>

		        <td><div align=\"center\">$data[2]</div></td>
        
		        <td style=\"color:#FFF\" align=\"right\">$data[3]<img src=\"$lien_capacite\" width=\"55\" height=\"40\" /></td>

        		<td style=\"color:#FFF\" align=\"right\">$data[5]<img src=\"$lien_classe\" width=\"45\" height=\"25\" /></td>

        		<td align=\"right\"><span style=\"color:#FFF\">$data[4]<img src=\"$lien_essorage\" width=\"40\" height=\"33\" /></span></td>

		        <td style=\"color:#FFF\" align=\"right\">$data[6]<img src=\"images/disponible.gif\" width=\"17\" height=\"18\" alt=\"Disponible\" title=\"Dsiponible\"/></td>

        		<td align=\"right\"><div align=\"center\">$data[7] &#8364;</div></td>

        		<td align=\"right\"><img src=\"images/caddie.gif\" width=\"30\" height=\"11\" /></td>




		        </tr>";
		       
		}
		
		echo "
		
			</tbody>
			</table>	
			</div> ";		        
			
// <a href="#" onclick="ChangeAmount('50611', +1, 'Intel&reg; Core&trade; 2 Quad Q9550s'); return false;">			
		
		
/*	echo "
		<tbody>
		<tr>
	  	<td style=\"color:#FFF\">Aeg<img src=\"Logo marque/AEG.jpg\" width=\"75\" height=\"24\" /></td>
	  	<td><div align=\"center\"><a href=\"Ref100.html\">Ref100</a></div></td>
	  	<td><div align=\"center\">Hublot</div></td>
	  	<td style=\"color:#FFF\" align=\"right\">5Kg<img src=\"Logo capacite/logo-capacite-5.jpg\" width=\"55\" height=\"40\" /></td>
	  	<td style=\"color:#FFF\" align=\"right\">A+<img src=\"Logo energie/logo-energetique-A+.jpg\" width=\"45\" height=\"25\" /></td>
	  	<td align=\"right\"><span style=\"color:#FFF\">1200<img src=\"Logo essorage/logo-1200-trsmin.jpg\" width=\"40\" height=\"33\" /></span></td>
	  	<td style=\"color:#FFF\" align=\"right\">oui<img src=\"images/disponible.gif\" width=\"17\" height=\"18\" alt=\"Disponible\" title=\"Dsiponible\"/></td>
		<td align=\"right\"><div align=\"center\">400 &#8364;</div></td>
		<td align=\"right\"><img src=\"images/caddie.gif\" width=\"30\" height=\"11\" /></td>
		</tr>


		<tr>
	  	<td style=\"color:#FFF\">Aeg<img src=\"Logo marque/AEG.jpg\" width=\"75\" height=\"24\" /></td>
	  	<td><div align=\"center\"><a href=\"Ref110.html\">Ref110</a></div></td>
	  	<td><div align=\"center\">Frontal</div></td>
	  	<td style=\"color:#FFF\" align=\"right\">6Kg<img src=\"Logo capacite/logo-capacite-6.jpg\" width=\"55\" height=\"40\" /></td>
		<td align=\"right\"><span style=\"color:#FFF\">A<img src=\"Logo energie/logo-energetique-A.jpg\" width=\"45\" height=\"25\" /></span></td>
	  	<td align=\"right\"><span style=\"color:#FFF\">1000<img src=\"Logo essorage/logo-1000-trsmin.jpg\" width=\"40\" height=\"33\" /></span></td>
	  	<td style=\"color:#FFF\" align=\"right\">non<img src=\"images/indisponible.gif\" width=\"17\" height=\"18\" alt=\"Indiponible\" title=\"Indisponible\"/></td>
		<td align=\"right\"><div align=\"center\">200 &#8364;</div></td>
		<td align=\"right\"><img src=\"images/caddie.gif\" width=\"30\" height=\"11\" /></td>
		</tr>

		</tbody>
		</table>
		</div> ";
		*/

	echo "
		<div style=\"clear:both; margin:25px 0 25px 0;\">&nbsp;</div>
		<script language=\"javascript\" type=\"text/javascript\">
		var props = {
			sort: true,
			alternate_rows: false,
			rows_counter: true,
			rows_counter_text: \"Nombre de produits: \",
			loader: true,
			loader_html: '<img src=\"loader.gif\" alt=\"\" style=\"vertical-align:middle; margin-right:5px;\" />Chargement...',
			status: true,
			status_bar: true,
			paging : true,
			paging_length: 25,
			col_number_format: [null,null,null,null,null,'EU','EU','EU','EU'],
			display_all_text: \" [ Tout voir ] \",
			status_bar_target_id: 'statusDiv',
			col_0: \"checklist\",
			col_1: \"none\",
			col_2: \"checklist\",
			col_3: \"checklist\",
			col_4: \"checklist\",
			col_5: \"checklist\",
			col_8: \"none\",
			external_flt_grid: true,
			external_flt_grid_ids: ['sel_marque', 'null','sel_chargement','sel_capacite','sel_classe','sel_essorage']
		}
		setFilterGrid(\"demo\",props);
		
		</script>
		</body> ";

}


function chargement()
{

	$connexion = mysql_connect("localhost", "root", "");
        if(!$connexion)
          { die('Could not connect: ' . mysql_error());
          }
  
        echo 'Connexion réussie';
        
        mysql_select_db("boutique", $connexion);

        $sql="SELECT * FROM lave_linge ";
  
	$result = mysql_query($sql);

	echo "<table border='1'>
	      <tr>
	      <th>id</th>
	      <th>marque</th>
	      <th>id_catalogue</th>
	      <th>fournisseur</th>
	      <th>modele</th>
	      <th>chargement</th>
	      <th>capacite</th>
	      <th>essorage</th>
	      <th>classe</th>
	      <th>stocke</th>
	      <th>prix</th>
	      </tr>";

	while($row = mysql_fetch_array($result))
  	     {
  	        echo "<tr>";
  		echo "<td>" . $row['id'] . "</td>";
	  	echo "<td>" . $row['marque'] . "</td>";
  		echo "<td>" . $row['id_catalogue'] . "</td>";
  		echo "<td>" . $row['fournisseur'] . "</td>";
  		echo "<td>" . $row['modele'] . "</td>";
      		echo "<td>" . $row['chargement'] . "</td>";
  		echo "<td>" . $row['capacite'] . "</td>";
  		echo "<td>" . $row['essorage'] . "</td>";
  		echo "<td>" . $row['classe'] . "</td>";
  		echo "<td>" . $row['stocke'] . "</td>";
  		echo "<td>" . $row['prix'] . "</td>";
  		echo "</tr>";
  	     }
	        echo "</table>";
	        
	        mysql_close($connexion);


}

function load()
{

	$connexion = mysql_connect("localhost", "root", "");
        if(!$connexion)
          { die('Could not connect: ' . mysql_error());
          }
  
        echo 'Connexion réussie';
        
        mysql_select_db("boutique", $connexion);

        //$sql="SELECT * FROM lave_linge ";
        $sql = 'SELECT marque,modele,chargement,capacite,essorage,classe,stocke,prix FROM lave_linge'; 
        
	$result = mysql_query($sql);
    	   

	     //$i=0;
             //while($i < mysql_num_fields($result))
             //     { $field_name=mysql_fetch_field($result, $i);
             //         echo "<th>", $field_name->name, "</th>";
             //         $i++;
             //     }
 	 
             while ($thisrow=mysql_fetch_row($result))  
               {
    		  echo "<tr>";
    		  $i=0;
    		  while ($i < mysql_num_fields($result))  //print all items in the row
    			{
      			echo $thisrow[$i], "<br>";
			      $i++;
    			}
    		echo "</tr>";
  	    }
	
    
      	     //while($row = mysql_fetch_array($result))
      	      //    {
  	             // on affiche les informations de l'enregistrement en cours
    		//    echo '.$row['id'].' ;
               // }  
  	     
  

    
 
      

        mysql_close($connexion);

}

function tableau()
{

	$connexion = mysql_connect("localhost", "root", "");
        if(!$connexion)
          { die('Could not connect: ' . mysql_error());
          }
  
        echo 'Connexion réussie';
        
        mysql_select_db("boutique", $connexion);

        //$sql="SELECT * FROM lave_linge ";
  	$sql = 'SELECT marque,modele,chargement,capacite,essorage,classe,stocke,prix FROM lave_linge'; 
  
  
	$result = mysql_query($sql);
	
	
	
	echo "  <body>
                <div style=\"float:left; border:1px solid #333; width:680px;\">
                <table id=\"demo\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">
                <thead>
                <tr>
                <th width=\"12%\" nowrap=\"nowrap\">Marque</th>
        	<th width=\"13%\" nowrap=\"nowrap\">Modele</th>
	        <th width=\"13%\" nowrap=\"nowrap\">Chargement</th>
        	<th width=\"12%\" align=\"right\" nowrap=\"nowrap\">Capacite</th>
	        <th width=\"10%\" align=\"right\" nowrap=\"nowrap\">Classe</th>
        	<th width=\"10%\" align=\"right\" nowrap=\"nowrap\">Essorage</th>
        	<th width=\"7%\" align=\"right\" nowrap=\"nowrap\">Dispo</th>
        	<th width=\"13%\" align=\"right\" nowrap=\"nowrap\">Prix TTC</th>
        	<th width=\"7%\" align=\"right\" nowrap=\"nowrap\">Panier</th>
        	</tr>
        	</thead>	
        	<tbody> ";
        	
        	
    	     $lien = "\"Logo marque/AEG.jpg\"" ;
  	     $chargement = "bug";
        	
             while ($data=mysql_fetch_row($result))  
               {
    		  
    		  //$i=0;
    		  //while ($i < mysql_num_fields($result))  //print all items in the row
    		//	{
      			 //echo $thisrow[$i], "<br>";
		//	      $i++;
    			
    		//$marque=$data[1];
    		
    		//echo $marque;

		
    		
    		$lien_marque = "Logo marque/" . $data[0] .".jpg";
    		$lien_capacite = "Logo capacite/logo-capacite-" . $data[3] .".jpg";
		$lien_classe = "Logo energie/logo-energetique-" . $data[5] .".jpg";
		$lien_essorage = "Logo essorage/logo-" . $data[4] . "-trsmin.jpg";

    		
    		 echo " 
        		<tr>

			

        		<td style=\"color:#FFF\">$data[0]<img src=\"$lien_marque\"  width=\"75\" height=\"24\"  align=\"right\"  /></td>

		        <td><div align=\"center\"><a href=\"Ref100.html\">$data[1]</a></div></td>

		        <td><div align=\"center\">$data[2]</div></td>
        
		        <td style=\"color:#FFF\" align=\"right\">$data[3]<img src=\"$lien_capacite\" width=\"55\" height=\"40\" /></td>

        		<td style=\"color:#FFF\" align=\"right\">$data[5]<img src=\"$lien_classe\" width=\"45\" height=\"25\" /></td>

        		<td align=\"right\"><span style=\"color:#FFF\">$data[4]<img src=\"$lien_essorage\" width=\"40\" height=\"33\" /></span></td>

		        <td style=\"color:#FFF\" align=\"right\">$data[6]<img src=\"images/disponible.gif\" width=\"17\" height=\"18\" alt=\"Disponible\" title=\"Dsiponible\"/></td>

        		<td align=\"right\"><div align=\"center\">$data[7]</div></td>

        		<td align=\"right\"><img src=\"images/caddie.gif\" width=\"30\" height=\"11\" /></td>
		        </tr>";
    		
    		
  	    }
        	
        
        echo "</tbody>
	        </table>
        </div>  
        </body> ";
      

        
        	
        	
        	 mysql_close($connexion);
        	
	
}	

?>




<?php

//mysql_select_db($database_ConnexionBoutiquedream, $ConnexionBoutiquedream);
//$query_rsListeArticle = "SELECT reference, titre FROM articles ORDER BY reference ASC";


// creer un ficiher

// copier le contenu du fichier1 dans le fichier cible

// generer le reste des infos

	/*if(@copy("trame.txt","copie_fichier.txt"))
          { Echo "Le fichier essai.txt a été copié dans le répertoire complet/copy_fichier.txt.";
          }
        else echo "Erreur";*/
        
        //chargement();
        
        //load();

	

	config();
        
        //tableau();
        
        
       

?>
