From 12998d7eb8c64bb99705c3fc0284064e76fa14e2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 11 Jun 2004 13:53:52 +0000 Subject: [PATCH] =?UTF-8?q?Look:=20Utilisation=20du=20terme=20Pay=E9/Impay?= =?UTF-8?q?=E9=20dans=20le=20statut=20des=20charges=20pour=20etre=20unifor?= =?UTF-8?q?me=20avec=20les=20factures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/sociales/index.php | 36 +++++++++++--------------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index 23a1b745291..3c98e178c36 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -31,20 +31,6 @@ if (!$user->admin && !$user->rights->compta->charges) llxHeader(); -function valeur($sql) -{ - global $db; - if ( $db->query($sql) ) - { - if ( $db->num_rows() ) - { - $valeur = $db->result(0,0); - } - $db->free(); - } - return $valeur; -} - /* * Ajout d'une charge sociale @@ -85,25 +71,27 @@ if ($_GET["action"] == 'del') } -$year=$_GET["year"]; -$filtre=$_GET["filtre"]; /* * Affichage liste et formulaire des charges. */ -print_titre("Charges sociales $year"); -print "
\n"; +$year=$_GET["year"]; +$filtre=$_GET["filtre"]; +//if (! $year) { $year=date("Y", time()); } -if ($mesg) { - print "$mesg
"; -} +print_fiche_titre("Charges sociales",($year?"".img_previous()." Année $year ".img_next()."":"")); +print "
\n"; //if ($filtre) { // print_titre("Filtre : ".$_GET["filtrelib"]); // print "
\n"; //} +if ($mesg) { + print "$mesg
"; +} + print ""; print ""; print ''; print "\n"; @@ -181,10 +169,10 @@ if ( $db->query($sql) ) if ($obj->paye) { - print ''; + print ''; print ''; } else { - print ''; + print ''; print ''; }
'; @@ -120,7 +108,7 @@ print_liste_field_titre("Libell print ''; print_liste_field_titre("Montant",$PHP_SELF,"s.amount"); print ''; -print_liste_field_titre("Payé",$PHP_SELF,"s.paye"); +print_liste_field_titre("Statut",$PHP_SELF,"s.paye"); print ' 
OuiPayé NonImpayé'.img_edit().''; print '   '.img_delete().'