Bonsoir,


Loin de maîtriser le javascript, et faute de temps pour le connaître,
je viens à vous, pour vous solliciter...
Ah cette famille javascript (...).

J'ai quelques soucis avec mes jquery.
Allez-vous pouvoir et vouloir m'aider ?
- Je souhaiterai que quand je clique sur "Détails", cela fasse la même chose que quand je clique sur le "+"... En fait, j'y suis presque... Seul le "+" ne veut pas se changer en "-"...
- je n'arrive pas à "tout développer"
- Je n'arrive pas non plus à "tout fermer" !
- Et enfin, j'aurais souhaité que mes lignes détails aient la même couleur que leur ligne maîtresse.

Voici ma page ici

A l'aide, svp !!!

Voici mon code :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
<?php
	session_start();
	ob_start();
	$php="recherche20";
	$rubrique="recherche";
//	require_once("php/cliquer.inc.php");
//	cliquer($rubrique);
	date_default_timezone_set('Europe/Brussels');
	$travaux="";
 
	require_once("php/connexionMysql.inc.php");
 
	$jour = array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"); 
	$mois = array("","janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre");
	$datefr = $jour[date("w")]." ".date("d")." ".$mois[date("n")]." ".date("Y");
	$heurefr = " à ".date("H")."h".date("i");
	$datum = $datefr.$heurefr;
 
	$libforme = array ("", "Rond", "Princesse", "Emeraude", "Radiant", "Ovale", "Poire", "Marquise", "Coeur", "Asscher CS");
	$imgforme = array ("", "rond.jpg", "princesse.jpg", "emeraude.jpg", "radiant.jpg", "oval.jpg", "poire.jpg", "marquise.jpg", "coeur.jpg", "vide.gif");
	$libcritere = array ("Poli", "Symétrie", "% Profondeur", "% Table", "Fluorescence", "Prix / Carat", "Colette", "Rapport long / larg");
	$libcouleur = array ("", "D", "E", "F", "G", "H", "I", "J", "K");
	$libtaille = array ("", "Faible", "Bon", "Très bon", "Excellent", "Idéal");
	$libpurete = array ("", "IF", "VVS1", "VVS2", "VS1", "VS2", "SI1", "SI2", "SI3", "I1");
	$libpoli = array ("", "Faible", "Bon", "Très bon", "Excellent", "Idéal");
	$libsymetrie = array ("", "Faible", "Bon", "Très bon", "Excellent", "Idéal");
	$libfluo = array ("", "Sans", "Très légère", "Légère", "Faible", "Moyen", "Forte", "Très forte");
	$libcolette = array ("", "Pointue", "Très petite", "Petite", "Moyenne", "Large");
	$libcertificat = array ("", "GIA", "HRD", "IGI", "EGL", "AGS");
 
	$nbforme = count($libforme);
	$nbcritere = count($libcritere);
	$nbcouleur = count($libcouleur)-1;
	$nbtaille = count($libtaille)-1;
	$nbpurete = count($libpurete)-1;
	$nbpoli = count($libpoli)-1;
	$nbsymetrie = count($libsymetrie)-1;
	$nbfluo = count($libfluo)-1;
	$nbcolette = count($libcolette)-1;
	$nbcertificat = count($libcertificat);
 
	$repertoire = "images/recherche/";
 
//	if (isset($_SESSION['recherche'])) {
//		$stringcomparer = $_SESSION['recherche']['stringcomparer'];
//		if ($stringcomparer == "") {
//			header("Location: recherche00.php");
//			exit;
//		}
//	} else {
//		header("Location: recherche00.php");
//		exit;
//	}
	$stringcomparer = "77887028:89895440:89895435:88896257";
 
 
	unset($refcomparer);
	$refcomparer = explode(":", $stringcomparer);
 
	$jourslivraison = 1;
	$livreur = "UPS";
 
    function dimanche_paques($annee) {
        return date("Y-m-d", easter_date($annee));
    }
    function vendredi_saint($annee) {
        $dimanche_paques = dimanche_paques($annee);
        return date("Y-m-d", strtotime("$dimanche_paques -2 day"));
    }
    function lundi_paques($annee) {
        $dimanche_paques = dimanche_paques($annee);
        return date("Y-m-d", strtotime("$dimanche_paques +1 day"));
    }
    function jeudi_ascension($annee) {
        $dimanche_paques = dimanche_paques($annee);
        return date("Y-m-d", strtotime("$dimanche_paques +39 day"));
    }
    function lundi_pentecote($annee)     {
        $dimanche_paques = dimanche_paques($annee);
        return date("Y-m-d", strtotime("$dimanche_paques +50 day"));
    }
    function jours_feries($annee, $alsacemoselle=false) {
        $jours_feries = array
        (    dimanche_paques($annee)
        ,    lundi_paques($annee)
        ,    jeudi_ascension($annee)
        ,    lundi_pentecote($annee)
 
        ,    "$annee-01-01"        //    Nouvel an
        ,    "$annee-05-01"        //    Fête du travail
        ,    "$annee-05-08"        //    Armistice 1945
        ,    "$annee-05-15"        //    Assomption
        ,    "$annee-07-14"        //    Fête nationale
        ,    "$annee-11-11"        //    Armistice 1918
        ,    "$annee-11-01"        //    Toussaint
        ,    "$annee-12-25"        //    Noël
        );
        if($alsacemoselle)
        {
            $jours_feries[] = "$annee-12-26";
            $jours_feries[] = vendredi_saint($annee);
        }
        return $jours_feries;
    }
    function est_ouvre($jour, $alsacemoselle=false) {
		$jj = date("w", strtotime($jour));
		$rep = 1;
		if ($jj == 6 OR $jj == 0) {
			$rep = 0;
		} else {
			$jour = date("Y-m-d", strtotime($jour));
			$annee = substr($jour, 0, 4);
			$jours_feries = jours_feries($annee);
			for ($jee=0; $jee<count($jours_feries); $jee++) {
				if ($jour == $jours_feries[$jee]) {
					$rep = 0;
					break;
				}
			}
		}
		return $rep;
    }
	function datereception($datecommande, $delaicommande, $delaiexpedition) {
		$ajout = $delaicommande + $delaiexpedition;
		$ijour = 1;
		$datum = strtotime(date("Y-m-d"), $datecommande);
		while ($ijour < $ajout) {
			$datum += 86400;
			$ijour += est_ouvre(date('Y-m-d', $datum));
		}
		return date('d/m/Y', $datum);
	}
 
	ob_end_flush();
?>
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name = "reply-to" content = "creaprint@skynet.be"/>
<meta name = "author" content = "creaprint"/>
<meta name = "description" content = "Recherchez votre diamant"/>
<meta name = "keywords" content = ""/>
 
<title>celinni.com - Recherche de diamant</title>
<style type="text/css">
<!--
-->
</style>
<!--
<link rel="alternate" type="application/rss+xml" title="ROR" href="sitemap.xml" />
<link rel="alternate" type="application/rss+xml" title="ROR" href="ror.xml" />
-->
<link type="text/css" rel="stylesheet" href="css/font_AvantGarde2BQRoman.css" media="all" />
<link type="text/css" rel="stylesheet" href="css/general.css">
<link type="text/css" rel="stylesheet" href="css/general12.css">
<link type="text/css" rel="stylesheet" href="css/recherche20.css">
<link type="text/css" rel="stylesheet" href="js/dt/jquery.dataTables.css">
<link type="text/css" rel="stylesheet" href="js/dt/jquery.dataTables-my.css">
<link type="text/css" rel="stylesheet" href="js/dt/jquery.dataTables.scroller.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/dt/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/dt/jquery.dataTables.scroller.js"></script>
<script type="text/javascript" src="js/dt/jquery.dataTables.FixedHeader.js"></script>
<script type="text/javascript" src="js/dt/jquery.dataTables.columnFilter.js"></script>
<script type="text/javascript" src="js/dt/jquery.dataTables.numericComma.js"></script>
<script type="text/javascript" src="js/requete.js"></script>
<script type="text/javascript">
	var libforme = new Array();
	var imgforme = new Array();
	var oTable;
	var nCloneTh, nCloneTd;
	var aData = "";
	var forme = "", image = "";
	var sOut = "";
	var example = "830px";
	var colour = "";
	var k1 = 0;
 
	<?php
	for ($k=0; $k<$nbforme; $k++) {
	?>
		libforme   = "<?php echo strtolower($libforme[$k]); ?>";
		imgforme   = "<?php echo $repertoire.$imgforme[$k]; ?>";
		k1++;
	<?php
	}
	?>
 
	$(function() {
		nCloneTh = document.createElement( 'th' );
		nCloneTd = document.createElement( 'td' );
		nCloneTd.innerHTML = '<img src="images/recherche/detailouvrir.gif">';
		nCloneTd.className = "center";
 
		$('#example thead tr').each( function () {
			this.insertBefore( nCloneTh, this.childNodes[0] );
		} );
 
		$('#example tbody tr').each( function () {
			this.insertBefore(  nCloneTd.cloneNode( true ), this.childNodes[0] );
		} );
 
        oTable = $('#example').dataTable( {
			"sScrollY": example,
//			"bPaginate": false,
			"bFilter": false,
			"bInfo": false,
			"bScrollCollapse": true,
			"BJQueryUI" : false,
			"aoColumns": [
				{ "sTitle": " ",			"bSortable": false,
				"sClass": "alignCenter", 	"bVisible": true							},
				{ "sTitle": "forme",		"bSortable": true,
				"sClass": "alignLeft",    	"bVisible": true							},
				{ "sTitle": "carat",		"bSortable": true,
				"sClass": "alignRight",  	"bVisible": true							},
				{ "sTitle": "couleur",		"bSortable": true,
				"sClass": "alignCenter",  	"bVisible": true							},
				{ "sTitle": "taille",		"bSortable": true,
				"sClass": "alignCenter",  	"bVisible": true							},
				{ "sTitle": "pureté",		"bSortable": true,
				"sClass": "alignCenter",  	"bVisible": true							},
				{ "sTitle": "détails",		"bSortable": false,
				"sClass": "alignCenter",  	"bVisible": true							},
				{ "sTitle": "comparer",		"bSortable": false,
				"sClass": "alignCenter",  	"bVisible": true							},
				{ "sTitle": "prix",			"bSortable": true,
				"sClass": "alignRight",  	"bVisible": true							},
				{ "sTitle": "reference",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "symetrie",		"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "polissage",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "fluorescence",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "certificat",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "profondeur",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "table",		"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "rondiste",		"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "colette",		"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "dimensions",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "rll",			"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "prixparcarat",	"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							},
				{ "sTitle": "prixfull",		"bSortable": false,
				"sClass": "alignRight",  	"bVisible": false							}
			],
			"sDom": "frtiS",
        	"aaSorting": [[ 8, "asc" ]]
		} );
		$(".dataTables_scrollBody").height(example);
		$(".dataTables_scrollHead").height("25px");
 
		$('#example tbody td img').live('click', function () {
			var nTr = $(this).parents('tr')[0];
			if (oTable.fnIsOpen(nTr)) {
				this.src = "images/recherche/detailouvrir.gif";
				oTable.fnClose( nTr );
			} else {
				this.src = "images/recherche/detailfermer.gif";
				oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
			}
		} );
 
		$('#example tbody td .voir').live('click', function () {
			var nTr = $(this).parents('tr')[0];
			if (oTable.fnIsOpen(nTr)) {
				this.src = "images/recherche/detailouvrir.gif";
				oTable.fnClose( nTr );
			} else {
				this.src = "images/recherche/detailfermer.gif";
				oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
			}
		} );
 
		$('#example tbody tr').live('mouseover', function () {
			this.style.cursor='pointer';
			colour = this.style.backgroundColor + '';
			this.style.backgroundColor = '#C7D6EE';
			this.style.color = '#005BAA';
		} );
 
		$('#example tbody tr').live('mouseout', function () {
			this.style.backgroundColor = colour;
			this.style.color = '#666666';
		} );
	} );
 
	function fnFormatDetails (oTable, nTr) {
		aData = oTable.fnGetData( nTr );
		forme = aData[1];
		image = imgforme[libforme.length-1];
		for (var k=1; k<libforme.length; k++) {
			if (forme == libforme[k]) {
				image = imgforme[k];
				k = libforme.length;
			}
		}
		sOut = "<table cellpadding='5' cellspacing='0' border='0' style='margin:7px 0px 7px 0px; padding-left:0px; background-color:"+colour+";'>";
//		sOut += "<tr><td width='70'></td><td width='120'></td><td width='180'></td><td width='120'></td><td width='180'></td><td width='100'></td></tr>";
		sOut += "<tr><td rowspan='9' valign='top' align='center' style='width:70px; background-color:#FFFFFF;'>";
		sOut += "<img src='"+image+"' width='63' height='63' alt='recherche diamant'>";
		sOut += "</td>";
		sOut += "<td>Référence :</td><td>"+aData[9]+"</td><td>Profondeur % :</td><td>"+aData[14]+"</td>";
		sOut += "<td valign='bottom' style='width:60px; text-align:center;' rowspan='9'>";
		sOut += "<a href='boutique.php'>Ajouter<br>au Panier<br><img src='images/boutique/panier.gif' alt='ajouter' name='ajouter' width='26' height='20' id='ajouter'></a>";
		sOut += "</td>";
		sOut += "</tr>";
		sOut += "<tr><td style='width:80px;'>Poids (carats) :</td><td style='width:130px;'>"+aData[2]+"</td><td style='width:80px;'>Table % :</td><td style='width:130px;'>"+aData[15]+"</td></tr>";
		sOut += "<tr><td>Qualité de taille :</td><td>"+aData[1]+"</td><td>Rondiste :</td><td>"+aData[16]+"</td></tr>";
		sOut += "<tr><td>Symétrie :</td><td>"+aData[10]+"</td><td>Colette :</td><td>"+aData[17]+"</td></tr>";
		sOut += "<tr><td>Polissage :</td><td>"+aData[11]+"</td><td>Dimensions :</td><td>"+aData[18]+"</td></tr>";
		sOut += "<tr><td>Couleur :</td><td>"+aData[3]+"</td><td>Rapport Long/Larg :</td><td>"+aData[19]+"</td></tr>";
		sOut += "<tr><td>Pureté :</td><td>"+aData[5]+"</td><td>Prix/carat :</td><td>"+aData[20]+" €</td></tr>";
		sOut += "<tr><td>Fluorescence :</td><td>"+aData[12]+"</td><td>Prix habituel</td><td>"+aData[21]+" €</td></tr>";
		sOut += "<tr><td>Certificat :</td><td>"+aData[13]+"</td><td>Prix Celinni</td><td>"+aData[8]+" €</td></tr>";
		sOut += '</table>'; 
		return sOut;
	}
 
	function envoiDetails(sref) {
	}
 
	function acomparer(sref) {
		var nocomparaison = "comparer["+sref+"]";
		var etat = document.getElementById(nocomparaison).checked+0;
		var requete = creerRequete();
		requete.open("GET", "php/session_stringcomparer.php?reference="+sref+"&etat="+etat, true);
		requete.send();
	}
 
	function toutouvrir() {
		alert("tout ouvrir");
	}
 
	function toutfermer() {
		alert("tout fermer");
	}
 
</script>
<style type="text/css">
<!--
-->
</style>
 
</head>
<body>
 
<div id="referencement">
<h1>Celinni</h1>
</div>
 
<div id="ombre">
<div id="site">
 
	<div id="boutique">
    </div>
 
    <div id="entete">
    </div>
 
    <div id="menu">
    </div>
 
    <div id="titre">
    	Comparez vos diamants certifiés
    </div>
 
    <div id="contenu">
        <div id="bloc30">
          <div id="bloc31">
            <div id="infos00" style="margin-top:0px;">
            	<p style="text-align:right;"><a href="recherche00.php">Autre Recherche&nbsp;<img src="images/general/loupebleue.gif" width="14" height="15" alt="recherche"></a></p>
                <p style="margin-top:15px;">Voici la liste des diamants que vous voulez comparer. 
                Cliquez sur <span class="bleufonce">Tout développer</span> pour voir plus de détails sur chaque diamant y compris les mesures, ceinture, colette et plus encore. 
                Cliquez sur <span class="bleufonce">Tout réduire</span> pour fermer la liste élargie et afficher uniquement les informations récapitulatives pour chaque diamant.</p>
                <div>
                <a href="javascript:toutouvrir();"><img src='images/recherche/detailouvrir.gif' width='10' height='10' alt='recherche diamant'>&nbsp;Tout développer</a>
                &nbsp;&nbsp;-&nbsp;&nbsp;
                <a href="javascript:toutfermer();"><img src='images/recherche/detailfermer.gif' width='10' height='10' alt='recherche diamant'>&nbsp;Tout refermer</a>
                </div>
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
                <thead>
                </thead>
                <tbody>  
				<?php
				for ($lig=0; $lig<count($refcomparer); $lig++) {
                    $reqdiamant = "SELECT * FROM diamant_data".
                        " WHERE item_id='".$refcomparer[$lig]."' ";
                    $resdiamant=mysql_query($reqdiamant);
                    $back = mysql_fetch_assoc($resdiamant);
                    if ($back) {
                        $reference = trim($back['item_id']);
                        $prixsite_ht = trim($back['total_price_ht']);
                        $prixsite_ttc = trim($back['total_price']);
                        $forme = strtolower(trim($back['cut']));
                        $poids = number_format(trim($back['carat']),2);
                        $couleur = trim($back['color']);
                        $purete = trim($back['clarity']);
                        $dimensions = trim($back['dimensions']);
                        $profondeur = trim($back['depth']);
                        $table = trim($back['table']);
                        $taille = trim($back['cut_grade']);
                        $symetrie = trim($back['symmetry']);
                        $rondiste = trim($back['girdle']);
                        $poli = trim($back['polish']);
                        $culetfr = trim($back['culet_size']);
                        $fluorescence = trim($back['fluo_intensity']);
                        $certificat = trim($back['certificat']);
                        $prixparcarat_ht = trim($back['price_per_carat_ht']);;
                        $prixparcarat_ttc = trim($back['price_per_carat']);;
                        $prixfull_ht = trim($back['total_full_price_ht']);;
                        $prixfull_ttc = trim($back['total_full_price']);;
                        $rll = trim($back['length_width']);
                        $delai = trim($back['delay']);
                        $certificatpdf = trim($back['certificate_path']);
                        if ($prixparcarat == 0 OR $prixparcarat == "") {
                            $prixparcarat = "nc";	
                        } else {
                            $prixparcarat .= " €";	
                        }
                        if ($couleur == "") {
                            $couleur = "nc";	
                        }
                        if ($purete == "") {
                            $purete = "nc";	
                        }
                        if ($profondeur <= 0) {
                            $profondeur = "nc";	
                        } else {
                            $profondeur = number_format($profondeur,2,",",".")."%";
                        }
                        if ($table <= 0) {
                            $table = "nc";
                        } else {
                            $table = number_format($table,2,",",".")."%";
                        }
                        if ($taille == "") {
                            $taille = "nc";	
                        }
                        if ($symetrie == "") {
                            $symetrie = "nc";	
                        }
                        if ($poli == "") {
                            $poli = "nc";	
                        }
                        if ($dimensions == "") {
                            $dimensions = "nc";	
                        } else {
                            $dimensions .= "mm";	
                        }
                        if ($culetfr == "") {
                            $culetfr = "nc";	
                        }
                        if ($fluorescence == "") {
                            $fluorescence = "nc";	
                        }
                        if ($certificat == "") {
                            $certificat = "nc";	
                        }
                        if (strpos($rondiste, "/")  === false) {
                            if ($rondiste == "") {
                                $ligrondiste[0] = "nc";
                                $ligrondiste[1] = "";
                            } else {
                                $ligrondiste[0] = $rondiste;
                                $ligrondiste[1] = "";
                            }
                        } else {
                            unset ($ligrondiste);
                            $ligrondiste = explode("/",$rondiste);
                            $ligrondiste[0] = trim($ligrondiste[0]);
                            $ligrondiste[1] = "à ".trim($ligrondiste[1]);
                        }
                        if ($rll <= 0) {
                            $rll = "nc";	
                        } else {
                            $rll = number_format($rll,2,",",".");
                        }
                        if ($delai != "") {
                            unset ($joursdelai);
                            $joursdelai = explode(" ",$delai);
                            $joursdelai[0] = trim($joursdelai[0]);
                            $joursdelai[1] = $joursdelai[0] + 2;
                            $joursnonserti = $joursdelai[0] + $jourslivraison;
                            $joursserti = $joursdelai[1] + $jourslivraison;
                            if ($jourdelai[0] < 2) {
                                $joursdelai[0] .= " jours";
                            } else {
                                $joursdelai[0] .= " jour";
                            }
                            if ($jourdelai[1] < 2) {
                                $joursdelai[1] .= " jours";
                            } else {
                                $joursdelai[1] .= " jour";
                            }
                            $datenonserti = datereception(date("Y-m-d"), $joursnonserti, $jourslivraison);
                            $dateserti = datereception(date("Y-m-d"), $joursserti, $jourslivraison);
                        } else {
                            $datenonserti = "nc";
                            $dateserti = "nc";
                        }
						echo "<tr>";
						echo "<td>".$forme."</td>";
						echo "<td>".$poids."</td>";
						echo "<td>".$couleur."</td>";
						echo "<td>".$taille."</td>";
						echo "<td>".$purete."</td>";
						echo "<td><a href='javascript:envoiDetails(".$reference.");'><span class='voir'>Détails</span></a></td>";
						echo "<td><div id='tag".$reference."'><input id='comparer[".$reference."]' type='checkbox' class='curseur' onclick='acomparer(".$reference.");' CHECKED></div></td>";
						echo "<td>".$prixsite_ht."</td>";
 
						echo "<td>".$reference."</td>";
						echo "<td>".$symetrie."</td>";
						echo "<td>".$poli."</td>";
						echo "<td>".$fluorescence."</td>";
						echo "<td>".$certificat."</td>";
 
						echo "<td>".$profondeur."</td>";
						echo "<td>".$table."</td>";
						echo "<td>".$rondiste."</td>";
						echo "<td>".$culetfr."</td>";
						echo "<td>".$dimensions."</td>";
						echo "<td>".$rll."</td>";
						echo "<td>".$prixparcarat_ht."</td>";
						echo "<td>".$prixfull_ht."</td>";
 
						echo "</tr>";
                    }
				}
                ?>
            </tbody>
            </table>
          </div>
          <div id="bloc32">
          </div>
          <div style="clear:left;"></div>
        </div>
    </div>
 
    <div id="pied">
    </div>
 
</div>
</div>
 
<div id="dessous"></div>
<div id="contacteznous00">
	<div id="contacteznous10">
    <div id="contacteznous20">
        <a href="recherche00.php" alt="help"><img src="images/general/vide.gif" width="220" height="65"></a>
    </div>
    </div>
    <div style="position:absolute; top:55px; padding-left:10px;" class="bold orange"><?php echo ($travaux!="")?"Cette page est momentanément en maintenance... Veuillez nous en excuser !":""; ?></div>
</div>
 
 
 
</body>
</html>