Fix: mise en page

This commit is contained in:
Regis Houssin 2006-06-01 16:59:49 +00:00
parent 2d9ea998fc
commit fe05c9d627

View File

@ -512,32 +512,22 @@ if ($_GET["id"] > 0)
} }
print "<table width=\"100%\"><tr><td width=\"50%\" valign=\"top\">"; print '<table width="100%"><tr><td width="50%" valign="top">';
/* /*
* Documents générés * Documents générés
* *
*/ */
$file = $conf->facture->dir_output . "/" . $commande->ref . "/" . $commande->ref . ".pdf"; $comref = sanitize_string($commande->ref);
$relativepath = $commande->ref."/".$commande->ref.".pdf"; $file = $conf->commande->dir_output . '/' . $comref . '/' . $comref . '.pdf';
$relativepath = $comref.'/'.$comref.'.pdf';
$filedir = $conf->commande->dir_output . '/' . $comref;
$urlsource=$_SERVER["PHP_SELF"]."?id=".$commande->id;
$genallowed=$user->rights->commande->creer;
$delallowed=$user->rights->commande->supprimer;
$var=true; $html->show_documents('commande',$comref,$filedir,$urlsource,$genallowed,$delallowed,$commande->modelpdf);
if (file_exists($file))
{
print_titre($langs->trans("Documents"));
print '<table width="100%" class="border">';
print "<tr $bc[$var]><td>".$langs->trans("Order")." PDF</td>";
print '<td><a href="'.DOL_URL_ROOT.'/document.php?modulepart=commande&file='.urlencode($relativepath).'">'.$commande->ref.'.pdf</a></td>';
print '<td align="right">'.filesize($file). ' bytes</td>';
print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($file)).'</td>';
print '</tr>';
print "</table>\n";
}
/* /*
* Liste des factures * Liste des factures