"; ?>
Accueil produits
       
       
       
".mysql_error()."...");
while ($ligneres=mysql_fetch_row($res))
{
$vp=$ligneres[0];
}
if (isset($_SESSION["$compt"]))
{
$k=0;
do
{
//print "prod[$k]:$prod[$k]
";
//print "qtecmd[$k]:$qtecmd[$k]
";
session_register('prod');
session_register('qtecmd');
$k++;
}
while ($k <= $compt);
}
// requete de récupéaration des prix du produit + incrémentation d'un compteur pour savoir le nombre de prix
$requete2 = "select idprix,prix,marge,qteprod from prix where idprod='$idprod'";
$result2=mysql_query($requete2) or die ("Erreur SQL :$requete2
".mysql_error()."...");
//nb prix du produit
$i=0;
while ($ligne1 = mysql_fetch_row($result2))
{
$idprix[$i]=$ligne1[0];
$testprix[$i]=$ligne1[1];
$marge[$i]=$ligne1[2];
$qteprod[$i]=$ligne1[3];
//ici on teste marge : si le champs est renseigné alors le prix est une URL
if ($marge[$i])
{
$testprix[$i]="http://crossover.codeweavers.com/vendor_price_query.php?user=tallagrand@airtria.fr;sku=".$testprix[$i];
//$testprix[$i]="http://crossover.codeweavers.com/vendor_price_query.php?user=lorette.pedano@sanofi-synthelabo.com;sku=".$testprix[$i];
//$testprix[$i]="http://crossover.codeweavers.com/vendor_price_query.php?user=e.bettler@ibcp.fr;sku=".$testprix[$i];
//$testprix[$i]="http://crossover.codeweavers.com/vendor_price_query.php?user=gb@isis.u-strasbg.fr;sku=".$testprix[$i];
// $testprix[$i]="http://crossover.codeweavers.com/vendor_price_query.php?user=duclert@infobiogen.fr;sku=".$testprix[$i];
$hwnd=fopen($testprix[$i],"r");
$prix[$i] = fread($hwnd, 100);
fclose($hwnd);
$prix[$i] = ($prix[$i] + ($prix[$i] * $marge[$i] / 100));
$prix[$i]= $prix[$i] * (1 - $coef * ($vp / 100));
} else {
$prix[$i] = $testprix[$i];
$prix[$i]= $prix[$i] * (1 - $coef * ($vp / 100));
}
$i++;
}
$i--;
$nbprix=$i;
?>
Votre Panier
 
|
||||||
|
Produit disponible a la location |
|||||
|
||||||