"; echo "
"; $queryCD1 = "SET SQL_BIG_SELECTS=1 "; $resultCD1 = mysql_query($queryCD1,$db); if ($code_utilisateur=="") { echo " ".cellule(3,'','',' ','','')."".cellule(3,'','',' ','','')."
 
Pour rédiger une commande vous devez avoir un compte utilisateur. Si vous en possedez un veuillez vous identifier sinon il suffit de vous inscrire et un identifiant et mot de passe vous seront envoyés par mail. Si vous avez perdu votre identifiant ou mot de passe cliquez ici
 
".cellule(2,'red','left','  Identification :','t_noir_10g','280')."".cellule(1,'#DCDCDC','left','Identifiant      :','t_noir_10','120').cellule(1,'white','center','','','160')."".cellule(1,'#DCDCDC','left','Mot de passe  :','t_noir_10','120').cellule(1,'white','center','','','160')."
 
Création d'un compte
Civilité 
Prénom 
Nom *
Adresse  *
CP* + Ville *   
Tél / Mobile     
Email *
 Vous abonnez à la newsletter ?     NON     OUI
 Vous êtes adhérent(e) du club ....   
Le fichier de vos coordonnées faira l'objet d'une déclaration à la C.N.I.L et ne sera jamais transmis à des sociétés tiers. Conformément à la loi 'Informatique et Liberté' du 6 janvier 1978, vous disposez d'un droit d'accès et de rectification aux données vous concernant. Si vous souhaitez exercer ce droit, envoyez nous un message.
".bas_page($blanc,$code_utilisateur); } else { $id=$code_utilisateur; $queryU = "SELECT * FROM photo_utilisateur WHERE code_utilisateur = '$id'"; $resultU = mysql_query($queryU,$db); $rowU = mysql_fetch_array($resultU); $civil=$rowU['civilite']; $telephone=telephone($rowU["telephone"]); $gsm=telephone($rowU["gsm"]); echo " "; $queryCD1 = " SELECT distinct(cde1.num_cde), cde2.prix_total, cde2.prix_livraison, cde2.date_envoi, cde2.date_paiement, cde2.date_livraison FROM cde1 as cde1 inner join cde2 as cde2 on cde1.num_cde=cde2.num_cde WHERE cde1.utilisateur = '$id' "; $resultCD1 = mysql_query($queryCD1,$db); $nbr_cde = mysql_num_rows($resultCD1); echo " "; $queryKDI="Select * from zz_$id order by format,reference"; $resultKDI = mysql_query($queryKDI,$db); $nbr_ligne=0; if ($resultKDI) {$nbr_ligne= mysql_num_rows($resultKDI);} else {$nbr_ligne=0;} echo "
Votre compte réf : $id
". cellule(1,'','right','Mot de passe','tab_titre','160'). cellule(1,'#dcdcdc','left',$rowU["password"],'t_noir_10','240'). cellule(1,'','right','Club','tab_titre','160'). cellule(1,'#dcdcdc','left',$rowU["club"],'t_noir_10','240')." ". cellule(1,'','right','Civilité + prénom','tab_titre',''). cellule(1,'#dcdcdc','left',$civil .' '. $rowU["prenom"],'t_noir_10',''). cellule(1,'','right','Nom','tab_titre',''). cellule(1,'#dcdcdc','left',$rowU["nom"],'t_noir_10','')." ". cellule(1,'','right','Adresse 1','tab_titre',''). cellule(1,'#dcdcdc','left',$rowU["adresse1"],'t_noir_10',''). cellule(1,'','right','Adresse 2','tab_titre',''). cellule(1,'#dcdcdc','left',$rowU["adresse2"],'t_noir_10','')." ". cellule(1,'','right','CP + Ville','tab_titre',''). cellule(1,'#dcdcdc','left',$rowU["code_postal"] .' ' . $rowU["ville"],'t_noir_10',''). cellule(1,'','right','Pays','tab_titre',''). cellule(1,'#dcdcdc','left',$rowU["pays"],'t_noir_10','')." ". cellule(1,'','right','telephone','tab_titre',''). cellule(1,'#dcdcdc','left',$telephone,'t_noir_10',''). cellule(1,'','right','GSM','tab_titre',''). cellule(1,'#dcdcdc','left',$gsm,'t_noir_10','')." ". cellule(1,'','right','Email','tab_titre',''). cellule(3,'#dcdcdc','left',$rowU['email'],'t_noir_10','')." ". cellule(1,'','right','Commentaire','tab_titre',''). cellule(3,'#dcdcdc','left',$rowU["commentaire"],'t_noir_10','')."
 
". cellule(1,'','center','V','tab_titre','20'). cellule(1,'','center','N° Cde','tab_titre','100'). cellule(1,'','center','Prix livraison','tab_titre','80'). cellule(1,'','center','Prix total','tab_titre','80'). cellule(1,'','center','Date Envoi','tab_titre','100'). cellule(1,'','center','Date Paiement','tab_titre','100'). cellule(1,'','center','Date Livraison','tab_titre','100'). cellule(1,'','center','P','tab_titre','30')." "; for($i=0;$i<$nbr_cde;$i++) { $rowCD1 = mysql_fetch_array($resultCD1); $ca=$ca+$rowCD1["prix_total"]; $livraison=$livraison+$rowCD1["prix_livraison"]; $prix_livraison=$rowCD1["prix_livraison"]*1; $prix_total=$rowCD1["prix_total"]*1; $date1=convert_date_bdd($rowCD1["date_envoi"]); if ($date1=="00/00/0000") {$date1="";} $date2=convert_date_bdd($rowCD1["date_paiement"]); if ($date2=="00/00/0000") {$date2="";} $date3=convert_date_bdd($rowCD1["date_livraison"]); if ($date3=="00/00/0000") {$date3="";} $queryS="select * from cde1 where num_cde='".$rowCD1["num_cde"]."' and societe='action_numerik'"; $resultS = mysql_query($queryS,$db); $action = mysql_num_rows($resultS); $queryS="select * from cde1 where num_cde='".$rowCD1["num_cde"]."' and societe='creation_numerik'"; $resultS = mysql_query($queryS,$db); $creation = mysql_num_rows($resultS); echo " ". cellule(1,'','right',$rowCD1["num_cde"],'t_noir_10g','100'). cellule(1,'','right',$prix_livraison." €",'t_noir_10g','80'). cellule(1,'','right',$prix_total." €",'t_noir_10g','80'). cellule(1,'','right',$date1,'t_noir_10g','100'). cellule(1,'','right',$date2,'t_noir_10g','100'). cellule(1,'','right',$date3,'t_noir_10g','100'); if ($action>$creation) { if ($date2=="") { echo ""; } else {echo "";} } else {echo "";} } echo " ". cellule(1,'','center',' ','tab_titre','20'). cellule(1,'','center',$nbr_cde.' cde(s)','tab_titre','100'). cellule(1,'','center',$livraison." €",'tab_titre','80'). cellule(1,'','center',$ca." €",'tab_titre','80'). cellule(4,'','center','','tab_titre','300')."
"; if ($action>$creation) { echo " Détail de la commande"; } else {echo "Vous devez allez sur www.action-numerik.fr pour voir et payer votre commande photo";} echo " Payer la commande par CBLa commande a déjà été payéVous devez régler cette commande sur www.creation-numerik.fr
 
"; if ($nbr_ligne!=0) { echo " ".cellule(3,'','',' ','','')."
Votre Caddie  
"; if ($nbr_ligne==0) { echo "";} for($a=1;$a<=$nbr_ligne;$a++) { $format=""; $rowKDI = mysql_fetch_array($resultKDI); if ($rowKDI["format"]==1) {$qte[1]=$qte[1]+$rowKDI["quantite"]; $total[1]=$total[1]+$rowKDI["prix"];$format="10 x 15";} if ($rowKDI["format"]==2) {$qte[2]=$qte[2]+$rowKDI["quantite"]; $total[2]=$total[2]+$rowKDI["prix"];$format="13 x 18";} if ($rowKDI["format"]==3) {$qte[3]=$qte[3]+$rowKDI["quantite"]; $total[3]=$total[3]+$rowKDI["prix"];$format="15 x 21";} if ($rowKDI["format"]==4) {$qte[4]=$qte[4]+$rowKDI["quantite"]; $total[4]=$total[4]+$rowKDI["prix"];$format="20 x 30"; } if ($rowKDI["format"]==5) {$qte[5]=$qte[5]+$rowKDI["quantite"]; $total[5]=$total[5]+$rowKDI["prix"];$format="30 x 45";} $tot[1]=$total[1]+$total[2]+$total[3]+$total[4]+$total[5]; $taille[1]=$qte[1]+$qte[2]+$qte[3]+$qte[4]+$qte[5]; if ($rowKDI["format"]==6) {$qte[6]=$qte[6]+$rowKDI["quantite"]; $total[6]=$total[6]+$rowKDI["prix"];$format="Email";} if ($rowKDI["format"]==7) {$qte[7]=$qte[7]+$rowKDI["quantite"]; $total[7]=$total[7]+$rowKDI["prix"];$format="CDROM";} $tot[2]=$total[6]+$total[7]; $taille[2]=$qte[6]+$qte[7]; if ($rowKDI["format"]==8) {$qte[8]=$qte[8]+$rowKDI["quantite"]; $total[8]=$total[8]+$rowKDI["prix"];$format="PC plexi";} if ($rowKDI["format"]==9) {$qte[9]=$qte[9]+$rowKDI["quantite"]; $total[9]=$total[9]+$rowKDI["prix"];$format="PC magnet";} if ($rowKDI["format"]==10) {$qte[10]=$qte[10]+$rowKDI["quantite"]; $total[10]=$total[10]+$rowKDI["prix"];$format="PC Gd";} $tot[3]=$total[8]+$total[9]+$total[10]; $taille[3]=$qte[8]+$qte[9]+$qte[10]; if ($rowKDI["format"]==11) {$qte[11]=$qte[11]+$rowKDI["quantite"]; $total[11]=$total[11]+$rowKDI["prix"];$format="Magnet x4";} if ($rowKDI["format"]==12) {$qte[12]=$qte[12]+$rowKDI["quantite"]; $total[12]=$total[12]+$rowKDI["prix"];$format="Set table";} if ($rowKDI["format"]==13) {$qte[13]=$qte[13]+$rowKDI["quantite"]; $total[13]=$total[13]+$rowKDI["prix"];$format="Tapis souris";} if ($rowKDI["format"]==14) {$qte[14]=$qte[14]+$rowKDI["quantite"]; $total[14]=$total[14]+$rowKDI["prix"];$format="Régle";} $tot[4]=$total[11]+$total[12]+$total[13]+$total[14]; $taille[4]=$qte[11]+$qte[12]+$qte[13]+$qte[14]; if ($rowKDI["format"]==15) {$qte[15]=$qte[15]+$rowKDI["quantite"]; $total[15]=$total[15]+$rowKDI["prix"];$format="Porte centre";} if ($rowKDI["format"]==16) {$qte[16]=$qte[16]+$rowKDI["quantite"]; $total[16]=$total[16]+$rowKDI["prix"];$format="Fer N°1";} if ($rowKDI["format"]==17) {$qte[17]=$qte[17]+$rowKDI["quantite"]; $total[17]=$total[17]+$rowKDI["prix"];$format="Fer N°2";} if ($rowKDI["format"]==18) {$qte[18]=$qte[18]+$rowKDI["quantite"]; $total[18]=$total[18]+$rowKDI["prix"];$format="Etrier";} $tot[5]=$total[15]+$total[16]+$total[17]+$total[18]; $taille[5]=$qte[15]+$qte[16]+$qte[17]+$qte[18]; if ($rowKDI["format"]==19) {$qte[19]=$qte[19]+$rowKDI["quantite"]; $total[19]=$total[19]+$rowKDI["prix"];$format="Affiche";} if ($rowKDI["format"]==20) {$qte[20]=$qte[20]+$rowKDI["quantite"]; $total[20]=$total[20]+$rowKDI["prix"];$format="Marque Page";} if ($rowKDI["format"]==21) {$qte[21]=$qte[21]+$rowKDI["quantite"]; $total[21]=$total[21]+$rowKDI["prix"];$format="Badge";} if ($rowKDI["format"]==22) {$qte[22]=$qte[22]+$rowKDI["quantite"]; $total[22]=$total[22]+$rowKDI["prix"];$format="Horloge";} $tot[6]=$total[19]+$total[20]+$total[21]+$total[22]; $taille[6]=$qte[19]+$qte[20]+$qte[21]+$qte[22]; if ($rowKDI["format"]==23) {$qte[23]=$qte[23]+$rowKDI["quantite"]; $total[23]=$total[23]+$rowKDI["prix"];$format="Pot";} if ($rowKDI["format"]==24) {$qte[24]=$qte[24]+$rowKDI["quantite"]; $total[24]=$total[24]+$rowKDI["prix"];$format="Mug N°1";} if ($rowKDI["format"]==25) {$qte[25]=$qte[25]+$rowKDI["quantite"]; $total[25]=$total[25]+$rowKDI["prix"];$format="Mug N°2";} if ($rowKDI["format"]==26) {$qte[26]=$qte[26]+$rowKDI["quantite"]; $total[26]=$total[26]+$rowKDI["prix"];$format="Mug N°3";} $tot[7]=$total[23]+$total[24]+$total[25]+$total[26]; $taille[7]=$qte[23]+$qte[24]+$qte[25]+$qte[26]; $tot[8]=$tot[1]+$tot[2]+$tot[3]+$tot[4]+$tot[5]+$tot[6]+$tot[7]; $taille[8]=$taille[1]+$taille[2]+$taille[3]+$taille[4]+$taille[5]+$taille[6]+$taille[7]; echo ""; } echo "
Le caddie est vide
".$rowKDI["reference"] ."

$format
Qté= ". $rowKDI["quantite"] ."       Supprimer cet article
Prix : ". $rowKDI["prix"]." €
  "; if ($qte[1]>0) { echo ""; } if ($qte[2]>0) { echo ""; } if ($qte[3]>0) { echo ""; } if ($qte[4]>0) { echo ""; } if ($qte[5]>0) { echo ""; } if ($taille[1]>0) { echo "";} if ($qte[6]>0) { echo ""; } if ($qte[7]>0) { echo ""; } if ($taille[2]>0) { echo "";} if ($qte[8]>0) { echo ""; } if ($qte[9]>0) { echo ""; } if ($qte[10]>0) { echo ""; } if ($taille[3]>0) {echo "";} if ($qte[11]>0) { echo ""; } if ($qte[12]>0) { echo ""; } if ($qte[13]>0) { echo ""; } if ($qte[14]>0) { echo ""; } if ($taille[4]>0) {echo "";} if ($qte[15]>0) { echo ""; } if ($qte[16]>0) { echo ""; } if ($qte[17]>0) { echo ""; } if ($qte[18]>0) { echo ""; } if ($taille[5]>0) {echo ""; } if ($qte[19]>0) { echo ""; } if ($qte[20]>0) { echo ""; } if ($qte[21]>0) { echo ""; } if ($qte[22]>0) { echo ""; } if ($taille[6]>0) {echo ""; } if ($qte[23]>0) { echo ""; } if ($qte[24]>0) { echo ""; } if ($qte[25]>0) { echo ""; } if ($qte[26]>0) { echo ""; } if ($taille[7]>0) {echo "";} echo ""; } echo "
Récapitulatif
10 x 15 $qte[1] ex$total[1] €
13 x 18 $qte[2] ex $total[2] €
15 x 21 $qte[3] ex $total[3] €
20 x 30 $qte[4] ex $total[4] €
30 x 45 $qte[5] ex $total[5] €
Photos$taille[1] ex$tot[1] €
Email$qte[6] ex$total[6] €
CDROM$qte[7] ex $total[7] €
Numérique$taille[2] ex$tot[2] €
PC plexi$qte[8] ex$total[8] €
PC magnet$qte[9] ex $total[9] €
Pc Gd taille$qte[10] ex $total[10] €
Porte clé$taille[3] ex$tot[3] €
Magnet x4$qte[11] ex$total[11] €
Set de table$qte[12] ex $total[12] €
Tapis de souris$qte[13] ex $total[13] €
Régle$qte[14] ex $total[14] €
Bureau$taille[4] ex$tot[4] €
Porte centre$qte[15] ex$total[15] €
Fer N°1$qte[16] ex $total[16] €
Fer N°2$qte[17] ex $total[17] €
Etrier$qte[18] ex $total[18] €
Cadres$taille[5] ex$tot[5] €
Affiche$qte[19] ex$total[19] €
Marque Page$qte[20] ex $total[20] €
Badge$qte[21] ex $total[21] €
Horloge$qte[22] ex $total[22] €
Divers$taille[6] ex$tot[6] €
Pot crayon$qte[23] ex$total[23] €
Mug porcelaine$qte[24] ex $total[24] €
Mug$qte[25] ex $total[25] €
Grand Mug$qte[26] ex $total[26] €
Pot & Mug$taille[7] ex$tot[7] €
Total$taille[8] $tot[8] €
".bas_page($blanc,$code_utilisateur); } ?>