diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 41d6a56528c..e77fd02f371 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -57,6 +57,8 @@ if ($user->societe_id > 0) * Affichage page */ +$html = new Form($db); + llxHeader(); $begin=$_GET['begin']; @@ -155,7 +157,7 @@ if ($resql) print_liste_field_titre($langs->trans('Ref'),'liste.php','c.ref','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="25%"',$sortfield); print_liste_field_titre($langs->trans('Company'),'liste.php','s.nom','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="30%"',$sortfield); print_liste_field_titre($langs->trans('RefCustomerOrder'),'liste.php','c.ref_client','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="15%"',$sortfield); - print_liste_field_titre($langs->trans('Date'),'liste.php','c.date_commande','','&socid='.$socid.'&viewstatut='.$viewstatut, 'width="20%" align="right" colspan="2"',$sortfield); + print_liste_field_titre($langs->trans('Date'),'liste.php','c.date_commande','','&socid='.$socid.'&viewstatut='.$viewstatut, 'width="20%" align="right"',$sortfield); print_liste_field_titre($langs->trans('Status'),'liste.php','c.fk_statut','','&socid='.$socid.'&viewstatut='.$viewstatut,'width="10%" align="center"',$sortfield); print ''; // Lignes des champs de filtre @@ -168,7 +170,6 @@ if ($resql) print '
| '; + print $generic_commande->getNomUrl(1); + print ' | '; + + print ''; + print ' '; + print ' | '; + + print ''; + $filename=sanitize_string($objp->ref); + $filedir=$conf->commande->dir_output . '/' . sanitize_string($objp->ref); + $urlsource=$_SERVER['PHP_SELF'].'?id='.$objp->rowid; + $html->show_documents('commande',$filename,$filedir,$urlsource,'','','','','',1); + print ' |