From 17781afd2b97b21e5108021f3db8d9928128d104 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 Oct 2004 12:10:28 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20lien=20img=5Ffile=20sur=20num=E9ro=20de?= =?UTF-8?q?=20r=E9f=E9rence=20de=20la=20charge=20sociale.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/sociales/index.php | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index 9df5fd4975c..806efaf4aa6 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -104,7 +104,7 @@ print ''; print_liste_field_titre($langs->trans("Amount"),"index.php","s.amount"); print ''; print_liste_field_titre($langs->trans("Status"),"index.php","s.paye"); -print ' '; +print ''; print "\n"; @@ -150,7 +150,10 @@ if ( $db->query($sql) ) $var = !$var; print ""; - print ''.$obj->id.''; + print ''; + print ''.img_file().' '.$obj->id.''; + print ''; + print ''.dolibarr_print_date($obj->de).''; print ''; if ($obj->periode) { @@ -164,18 +167,9 @@ if ( $db->query($sql) ) if ($obj->paye) { - print 'Payé'; - print ' '; + print 'Payé'; } else { print 'Impayé'; - print ''; - if ($user->rights->compta->charges->creer) { - print ''.img_edit().''; - } - if ($user->rights->compta->charges->supprimer) { - print '   '.img_delete().''; - } - print ''; } print ''; $i++; @@ -183,7 +177,7 @@ if ( $db->query($sql) ) } else { - print "Error :".$db->error()." - $sql"; + dolibarr_print_error($db); } /* @@ -218,9 +212,8 @@ if ($user->rights->compta->charges->creer) { print ''; print ''; print ''; - print ' '; - print ''; + print ''; print ''; }