le 02/02/2011 à 16:20
bon de livraison total article
Bonjour,
Je voudrais que le total des articles soit affiché sur mon BL.voici le code du bl:
si quequ'un a une idée merci
/*--------------
bon de livraion
--------------*/
modération : merci d'utiliser le bbcode pour la mise en forme des pâtés de code (ou mieux le wall ;) )
Je voudrais que le total des articles soit affiché sur mon BL.voici le code du bl:
si quequ'un a une idée merci
/*--------------
bon de livraion
--------------*/
<?php
if(isset($_GET['target']) and $_GET['target'] == "deliveryOrder") {
$n = 600;
$hoy = dateFr(date("Y-m-d H:i:s"), $row['users_lang']);
$shipNum = str_replace("||","",$row['users_fact_num']);
if($shipNum=="") $shipNum="XXXX";
$shipNum = "BL-".$shipNum;
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel='stylesheet' href='style.css'>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table border="1" width="700" align="center" cellpadding="10" cellspacing="0" class="TABLE4"><tr><td>
<table width="<?php print $n;?>" align="center" border="0" cellpadding="2" cellspacing="0">
<tr>
<td align="left" colspan="2" valign="middle"><img src="../<?php print $logo;?>"></td>
</tr>
<tr>
<td colspan="2">
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="TABLE25"><tr><td class="large"><b><?php print BON_LIVRAISON;?></b></td></tr></table>
</td>
</tr>
<tr valign="top">
<td style="padding: 5px">
<?php print "<b>".$store_company."</b><br>";
print $address_street."<br>".
$address_cp." - ".$address_city."<br>".
$address_country;
if(!empty($tel)) print "<br>".A6.": ".$tel;
if(!empty($fax)) print "<br>".FAX.": ".$fax;
if(!empty($address_autre)) print "<br>".$address_autre;
?>
</td>
<td align="right" style="padding: 5px">
<b><?php print BON_LIVRAISON;?></b>: <?php print "<span style='color:red'><b>".$shipNum."</b></span>"; ?>
<br>
<b><?php print A8;?></b>: <?php print $hoy; ?>
</td>
</tr>
<tr valign="top">
<td colspan="2">
<br>
<?php
if(isset($adress2[7]) AND !empty($adress2[7])) {
$notvainter = $adress2[7];
}
else {
$notvainter = "--";
}
?>
<table border="0" width="100%" cellpadding="4" cellspacing="0"><tr>
<td class="TABLE4" align="left" width="49%" class="large"><b><?php print A9;?>:</b></td>
<td> </td>
<td class="TABLE4" align="left" width="49%" class="large"><b><?php print A9A;?>:</b></td>
</tr><tr>
<td class="TABLE6" valign="top">
<?php
print $adrees;
?>
</td>
<td> </td>
<td class="TABLE6" valign="top">
<?php
print $adreesShipping;
?></td>
</tr></table>
<br>
<table border="0" width="100%" cellpadding="4" cellspacing="0"><tr>
<td colspan="5" class="TABLE40"><b><div class="FontGris"><?php print REFERENCE;?></div></b></td></tr><tr>
<td class="TABLE7" align="center"><div class="FontGris"><u><?php print A11;?></u><br><?php print $date[0];?></div></td>
<td class="TABLE9" align="center"><div class="FontGris"><u>NIC</u><br><?php print "<b>".$row['users_nic']."</b>";?></div></td>
<td class="TABLE7" align="center"><div class="FontGris"><u><?php print A10;?></u><br><?php print "<b>".$row['users_password']."</b>";?></div></td>
</tr></table>
</td>
</tr>
<tr>
<td colspan="2">
<br>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="TABLE25"><tr><td class="large"><b><?php print A13;?></b></td></tr></table>
</td>
</tr>
</table>
<?php
print "<table width='".$n."' align='center' border='0' cellspacing='0' cellpadding='2'><tr><td>";
print "<table border='0' class='TABLE6' width='100%' align='center' cellspacing='0' cellpadding='2'><tr><td>";
print "<table border='0' width='100%' align='center' cellspacing='0' cellpadding='2'>";
print "<tr>";
print "<td class='TABLE7' align='center' width='20'><b>X</b></td>";
print "<td class='TABLE7' width='50' align='center'><b>Qt</b></td>";
print "<td class='TABLE7'><b>".A14."/".A15."</b></td>";
print "<td class='TABLE7' width='100' align='center'><b>categories</b></td>";
$split = explode(",",$row['users_products']);
$split = sortProducts();
foreach ($split as $item) {
$check = explode("+",$item);
if($check[1]!=="0" AND $check[3]!=="GC100") {
$queryCat = mysql_query("SELECT categories_name_".$_SESSION['lang']." FROM categories WHERE categories_id='".$check[9]."'");
$rowCat = mysql_fetch_array($queryCat);
// Options
if(!empty($check[6])) {
$_optZ = explode("|",$check[6]);
## session update option price
$lastArray = $_optZ[count($_optZ)-1];
if(preg_match("#epz$#", $lastArray) AND is_numeric(substr($lastArray,0,-3))) unset($_optZ[count($_optZ)-1]);
$_optZ = implode("|",$_optZ);
$q = "<br><span class='fontrouge'><i>".$_optZ."</i></span>";
}
else {
$q="";
}
print "</tr><tr>";
print "<td width='20' align='center'><img src='im/case.gif'></td>";
// quantité
print "<td width='50' align='center'>".$check[1]."</td>";
// référence/article + Options
print "<td>".A14.": <i>".strtoupper($check[3])."</i><br>".$check[4].$q."</td>";
// categorie
print "<td align='center'>".$rowCat['categories_name_'.$_SESSION['lang']]."</td>";
}
}
print "</tr></table>";
print "</td></tr>";
print "<tr>";
print "<td>";
print "</td></tr></table>";
?>
<br>
<?php
print "<table border='0' align='right' width='100%' height='75' cellpadding='0' cellspacing='0' class='TABLE15'>";
print "<tr valign='top'>";
print "<td> </td>";
print "</tr>";
print "</table>";
print "</td>";
print "</tr>";
print "</table>";
?>
</td></tr></table>
</body>
</html>
<?php
}
?>
modération : merci d'utiliser le bbcode pour la mise en forme des pâtés de code (ou mieux le wall ;) )