diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 590c3e1f658..b37b5348d5e 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -77,7 +77,7 @@ if ($chid > 0) */ //$head[0][0] = DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id; - $head[0][1] = "Charge sociale : No $cha->id"; + $head[0][1] = $langs->trans("SocialContribution").": $cha->id"; $h = 1; $a = 0; @@ -172,7 +172,7 @@ if ($chid > 0) print "\n"; - print '
'; + print ''; if (! $_GET["action"]) { diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index fc2297b1d33..3cfd6d64fe7 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -227,7 +227,7 @@ if ( $db->query($sql) ) $var = !$var; print ""; - print ''; + print ''; print ''.img_file().' '.$obj->id.''; print ''; @@ -239,7 +239,7 @@ if ( $db->query($sql) ) print ' '; } print ''; - print ''.$obj->type_lib.''.$obj->libelle.''; + print ''.$obj->type_lib.''.dolibarr_trunc($obj->libelle,36).''; print ''.price($obj->amount).''; if ($obj->paye) diff --git a/htdocs/compta/sociales/pre.inc.php b/htdocs/compta/sociales/pre.inc.php index 320eaad333f..11d444f1877 100644 --- a/htdocs/compta/sociales/pre.inc.php +++ b/htdocs/compta/sociales/pre.inc.php @@ -24,22 +24,19 @@ require("../../main.inc.php"); function llxHeader($head = "") { - global $user, $conf, $langs; - - - /* - * - * - */ - top_menu($head); - - $menu = new Menu(); - - $menu->add("../charges/",$langs->trans("Charges")); - $menu->add_submenu("index.php",$langs->trans("SocialContributions")); - // $menu->add_submenu("/compta/sociales/conf.php","Conf"); - - left_menu($menu->liste); + global $user, $conf, $langs; + $langs->load("compta"); + $langs->load("propal"); + + top_menu($head); + + $menu = new Menu(); + + $menu->add("../charges/",$langs->trans("Contributions")); + $menu->add_submenu("index.php",$langs->trans("SocialContributions")); + // $menu->add_submenu("/compta/sociales/conf.php","Conf"); + + left_menu($menu->liste); } ?>