diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index 806efaf4aa6..e8becbfd2ed 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -20,6 +20,14 @@ * $Source$ * */ + +/*! \file htdocs/compta/sociales/index.php + \ingroup compta + \brief Ecran des charges sociales + \version $Revision$ +*/ + + require("./pre.inc.php"); $user->getrights('facture'); @@ -36,7 +44,7 @@ llxHeader(); * Ajout d'une charge sociale */ -if ($action == 'add') +if ($_POST["action"] == 'add') { if (! $_POST["date"] || ! $_POST["periode"] || ! $_POST["amount"]) { $mesg="
| '; + print ' '; + print ' | '; + print $langs->trans("DateDue"); + print ' | '; + print $langs->trans("Period"); + print ' | '; + print $langs->trans("Type"); + print ' | '; + print $langs->trans("Label"); + print ' | '; + print $langs->trans("Amount"); + print ' | '; + print ' '; + print ' | '; + print "
| '; print_liste_field_titre($langs->trans("Ref"),"index.php","id"); -print ' | '; -print ''; -print_liste_field_titre("Echéance","index.php","de"); +print ' | '; +print_liste_field_titre($langs->trans("DateDue"),"index.php","de"); print ' | '; print_liste_field_titre($langs->trans("Period"),"index.php","periode"); print ' | '; @@ -180,43 +251,6 @@ else dolibarr_print_error($db); } -/* - * Forumalaire d'ajout d'une charge - * - */ -if ($user->rights->compta->charges->creer) { - print ' | ||