while (list($Code_, $Echelle ,$Type, $Fabricant , $Marque ,$Description , $Prix , $Photo ,$PrixDetaillant)=mysql_fetch_row($lala)) {
$code = "\$qte___".$Code_;
eval ("\$code = \"$code\";");
if ($code>0) {
$id_ = "\$ident___".$Code_;
eval ("\$id_ = \"$id_\";");
if ($id_=="oui") {
?> |
|
|
|
|
if ($_d=="106106") {
$prix = $PrixDetaillant; } else { $prix = $Prix; }
echo $prix ?> € |
|
$SousTotal€=$prix*$code; echo $SousTotal€;
$prixtotal€ = $prixtotal€ + $SousTotal€ ;
$tva = $prixtotal€ * 0.196 ;
$tva = round($tva*100)/100;
$totalttc = $prixtotal€ + $tva + 7 ;
$totalht = $prixtotal€ + 14 ;
?> € |
}
}
}
$fp=fopen("commandes/$session_id__.dat","a+");
$str ="Fiche New
:
";
fwrite($fp,$str);
if ($_d!="mafma116") {
$str ="
";
fwrite($fp,$str);
}
fclose($fp);
$init=" \$message=\"";
$endinit="\"; ?> "; $fp=fopen("commandes/$session_id__.dat","r"); $fpw=fopen("commandes/$session_id__.sent.php","w+");
fputs($fpw,$init); while (!feof($fp)) { $data= fgets($fp,255); fwrite($fpw,$data);
} fputs($fpw,$endinit); fclose($fp); fclose($fpw); include("commandes/$session_id__.sent.php");
$mailHeaders="From: contact@mafma.com\nContent-Type: text/html; charset=iso-8859-1\r\n";
mail("yevrat@club-internet.fr","Fiche New","$message", "$mailHeaders"); ?> |
|