From 9b5ee22398619d853378cf41a75f9e376f56a400 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 13 Jul 2007 18:00:04 +0000 Subject: [PATCH] Fix: uniformisation du code Add: icone pdf sur les listes --- htdocs/commande/liste.php | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) 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 ''; print ' '; - print ' '; print ''; print ''; print ''; @@ -180,10 +181,31 @@ if ($resql) $objp = $db->fetch_object($resql); $var=!$var; print ''; - print ''.img_object($langs->trans('ShowOrder'),'order').' '.$objp->ref.''; + print ''; + + $generic_commande->id=$objp->rowid; + $generic_commande->ref=$objp->ref; + + print ''; + print ''; + + print ''; + + print '
'; + print $generic_commande->getNomUrl(1); + 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 '
'; + + print ''; + print ''.img_object($langs->trans('ShowCompany'),'company').' '.$objp->nom.''; print ''.$objp->ref_client.''; - print ' '; print ''; $y = strftime('%Y',$objp->date_commande); $m = strftime('%m',$objp->date_commande);