<?phpif (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}if (get_grade() >= GRD_VISIT) { // js d'affichage image ===========================================echo'<script type="text/javascript" src="modules/vente/js/prototype.js"></script><script type="text/javascript" src="modules/vente/js/scriptaculous.js?load=effects,builder"></script><script type="text/javascript" src="modules/vente/js/lightbox.js"></script><script type="text/javascript"> // <![CDATA[ var head = document.getElementsByTagName("head")[0]; var head_inc = document.createElement("link"); head_inc.rel = "stylesheet"; head_inc.type = "text/css"; head_inc.href = "modules/vente/css/lightbox.css"; head_inc.media ="screen"; head.appendChild(head_inc); // ]]> </script>';// ================================================================= $id = $_GET['int_id'];// ======= REQUETES DU PANIER DU CLIENT ============================ $req80 = reqmysql("SELECT * FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' ;"); if(mysql_num_rows($req80) > 0) { $row80 = mysql_fetch_array($req80); $query = "SELECT COUNT(id_obj) FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' "; $result = mysql_query($query) or die (mysql_error()); $resultat=mysql_fetch_row($result); $querya = "SELECT SUM(prixfinal) FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' "; $resultit = mysql_query($querya) or die (mysql_error()); $resultaut=mysql_fetch_row($resultit); }// ================================================================// ======== LECTURE DE LA MONNAIE ================================= $req25 = reqmysql("SELECT `monnaie`, `fixe_prix` FROM `vente_catalogue` WHERE `id`='1' ;"); $row25 = mysql_fetch_array($req25);// ===== AFFICHAGE DU TITRE DU BLOC =============================== $req4 = reqmysql("SELECT `cat` FROM `vente_categorie` WHERE `id`='".$id."' ;"); if(mysql_num_rows($req4) > 0) { $row4 = mysql_fetch_array($req4); bloc_head($row4['cat']); } else { bloc_head('Catégorie'); } echo '<fieldset style="background-color:#C9C9C9;">';// === AFFICHAGE DU PANIER ========================================== if ($K_user->pseudo == $row80['pseudo']) { if ($resultat[0]>=2) { $ss = "s"; } echo'<table align="center" border="2"><tr><th> <a href="index.php?mod=vente&ac=fin_commande"><img src="modules/vente/images/cady.png" border="0" /><font color="#8000FF">'.$resultat[0].' article'.$ss.' dans votre panier d\'une valeur de '.$resultaut[0].' '.$row25['monnaie'].' '.$row25['fixe_prix'].'</font></a> </th></tr></table>'; }// =================================================================== echo '<br /><img src="modules/vente/images/puce.png" /> <a href="index.php?mod=vente&ac=catalogue/#"> <font color="#4AB6EF"> Retour au sommaire</font> </a><table align="center" cellspacing="0" width="100%" border="0">'; // === CHOIX D'AFFICHAGE NUMERO 1 ===================================== if ($sql_occas ==1) { $req5 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;'); $compteur1=0; while($row5 = mysql_fetch_array($req5)) { if ($row5['distrib'] ==1 or $row5['distrib']==2) { $compteur1++; echo '<tr> <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;"> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <a href="modules/vente/produit/'.$row5['image'].'.jpg" rel="lightbox" title="'.ax($row5['titre']).'"><img src="modules/vente/produit/'.$row5['image'].'.jpg" width="60" height="60" border="0" /> </a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <img src="modules/vente/images/puce3.png" /> <a href="index.php?mod=vente&ac=image&int_id='.ax($row5['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row5['titre']).'</font></a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;"> <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row5['prix']).' '.$row25['monnaie'].'</font> </td> <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;"> </td> </tr>'; } } }// === CHOIX D'AFFICHAGE NUMERO 2 ====================================== elseif ($sql_occas ==2) { $req6 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;'); $compteur2=0; while($row6 = mysql_fetch_array($req6)) { if ($row6['distrib'] ==3) { $compteur2++; echo '<tr> <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;"> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <a href="modules/vente/produit/'.$row6['image'].'.jpg" rel="lightbox" title="'.ax($row6['titre']).'"><img src="modules/vente/produit/'.$row6['image'].'.jpg" width="60" height="60" border="0" /> </a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <img src="modules/vente/images/puce3.png" /> <a href="index.php?mod=vente&ac=image&int_id='.ax($row6['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row6['titre']).'</font></a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;"> <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row6['prix']).' '.$row25['monnaie'].'</font> </td> <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;"> </td> </tr>'; } } } // === CHOIX D'AFFICHAGE NUMERO 3 ======================================= elseif ($sql_occas ==3) { $req7 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;'); $compteur3=0; while($row7 = mysql_fetch_array($req7)) { if ($row7['distrib'] ==4) { $compteur3++; echo '<tr> <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;"> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <a href="modules/vente/produit/'.$row7['image'].'.jpg" rel="lightbox" title="'.ax($row7['titre']).'"><img src="modules/vente/produit/'.$row7['image'].'.jpg" width="60" height="60" border="0" /> </a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;"> <img src="modules/vente/images/puce3.png" /> <a href="index.php?mod=vente&ac=image&int_id='.ax($row7['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row7['titre']).'</font></a> </td> <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;"> <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row7['prix']).' '.$row25['monnaie'].'</font> </td> <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;"> </td> </tr>'; } } } // ========================================================================= echo '</table>'; echo '<br/></fieldset>';}close_table();?>