Suppression codes inadequat

This commit is contained in:
Rodolphe Quiedeville 2005-04-11 08:37:00 +00:00
parent 3a09f83576
commit 58f5f0400f

View File

@ -550,82 +550,6 @@ if ($_GET["id"] > 0)
}
print "<p>\n";
print '<table width="100%" cellspacing="2"><tr><td width="50%" valign="top">';
/*
* Liste des expéditions
*/
$sql = "SELECT e.rowid,e.ref,".$db->pdate("e.date_expedition")." as de";
$sql .= " FROM ".MAIN_DB_PREFIX."expedition as e";
$sql .= " WHERE e.fk_commande = ". $commande->id;
$result = $db->query($sql);
if ($result)
{
$num = $db->num_rows();
if ($num)
{
print_titre("Expéditions");
$i = 0; $total = 0;
print '<table class="border" width="100%">';
print "<tr $bc[$var]><td>Expédition</td><td>Date</td></tr>\n";
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object();
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="../expedition/fiche.php?id='.$objp->rowid.'">'.stripslashes($objp->ref).'</a></td>';
print "<td>".strftime("%d %B %Y",$objp->de)."</td></tr>\n";
$i++;
}
print "</table>";
}
}
else
{
dolibarr_print_error($db);
}
print "&nbsp;</td><td>";
/*
* Liste des factures
*/
$sql = "SELECT f.rowid,f.facnumber,".$db->pdate("f.datef")." as df";
$sql .= " FROM ".MAIN_DB_PREFIX."facture as f, ".MAIN_DB_PREFIX."co_fa as cf";
$sql .= " WHERE f.rowid = cf.fk_facture AND cf.fk_commande = ". $commande->id;
$result = $db->query($sql);
if ($result)
{
$num = $db->num_rows($result);
if ($num)
{
print_titre($langs->trans("Bills"));
$i = 0; $total = 0;
print '<table class="border" width="100%">';
print "<tr $bc[$var]><td>".$langs->trans("Bills")."</td><td>".$langs->trans("Date")."</td></tr>\n";
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object($result);
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="../compta/facture.php?facid='.$objp->rowid.'">'.stripslashes($objp->facnumber).'</a></td>';
print "<td>".strftime("%d %B %Y",$objp->df)."</td></tr>\n";
$i++;
}
print "</table>";
}
}
else
{
dolibarr_print_error($db);
}
print "&nbsp;</td></tr></table>";
/*
* Documents générés
*