';
print '';
diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php
index 95c72cbedb2..ce2f853c935 100644
--- a/htdocs/compta/sociales/document.php
+++ b/htdocs/compta/sociales/document.php
@@ -33,6 +33,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/tax.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
+if (! empty($conf->projet->enabled))
+{
+ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
+ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
+}
$langs->load("other");
$langs->load("companies");
@@ -88,6 +93,7 @@ if ($action == 'setlib' && $user->rights->tax->charges->creer)
*/
$form = new Form($db);
+if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
$title = $langs->trans("SocialContribution") . ' - ' . $langs->trans("Documents");
$help_url='EN:Module_Taxes_and_social_contributions|FR:Module Taxes et dividendes|ES:Módulo Impuestos y cargas sociales (IVA, impuestos)';
@@ -105,9 +111,24 @@ if ($object->id)
// Label of social contribution
$morehtmlref.=$form->editfieldkey("Label", 'lib', $object->lib, $object, $user->rights->tax->charges->creer, 'string', '', 0, 1);
$morehtmlref.=$form->editfieldval("Label", 'lib', $object->lib, $object, $user->rights->tax->charges->creer, 'string', '', null, null, '', 1);
+ // Project
+ if (! empty($conf->projet->enabled))
+ {
+ $langs->load("projects");
+ $morehtmlref.=' '.$langs->trans('Project') . ' : ';
+ if (! empty($object->fk_project)) {
+ $proj = new Project($db);
+ $proj->fetch($object->fk_project);
+ $morehtmlref.='';
+ $morehtmlref.=$proj->ref;
+ $morehtmlref.=' ';
+ } else {
+ $morehtmlref.='';
+ }
+ }
$morehtmlref.='';
- $linkback = '' . $langs->trans("BackToList") . ' ';
+ $linkback = '' . $langs->trans("BackToList") . ' ';
$object->totalpaye = $totalpaye; // To give a chance to dol_banner_tab to use already paid amount to show correct status
diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php
index 50e14823a5f..194c3f38d99 100644
--- a/htdocs/compta/sociales/index.php
+++ b/htdocs/compta/sociales/index.php
@@ -152,6 +152,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
if ($year)
diff --git a/htdocs/compta/sociales/info.php b/htdocs/compta/sociales/info.php
index bbacfafd430..91334134a2c 100644
--- a/htdocs/compta/sociales/info.php
+++ b/htdocs/compta/sociales/info.php
@@ -25,6 +25,11 @@ require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/tax.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
+if (! empty($conf->projet->enabled))
+{
+ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
+ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
+}
$langs->load("compta");
$langs->load("bills");
@@ -37,6 +42,7 @@ $socid = GETPOST('socid','int');
if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, 'tax', $id, 'chargesociales','charges');
+
/*
* Actions
*/
@@ -49,9 +55,13 @@ if ($action == 'setlib' && $user->rights->tax->charges->creer)
setEventMessages($object->error, $object->errors, 'errors');
}
+
/*
* View
*/
+
+if (! empty($conf->projet->enabled)) { $formproject = new FormProjets($db); }
+
$title = $langs->trans("SocialContribution") . ' - ' . $langs->trans("Info");
$help_url = 'EN:Module_Taxes_and_social_contributions|FR:Module Taxes et dividendes|ES:Módulo Impuestos y cargas sociales (IVA, impuestos)';
llxHeader("",$title,$help_url);
@@ -68,9 +78,24 @@ $morehtmlref='';
// Label of social contribution
$morehtmlref.=$form->editfieldkey("Label", 'lib', $object->lib, $object, $user->rights->tax->charges->creer, 'string', '', 0, 1);
$morehtmlref.=$form->editfieldval("Label", 'lib', $object->lib, $object, $user->rights->tax->charges->creer, 'string', '', null, null, '', 1);
+// Project
+if (! empty($conf->projet->enabled))
+{
+ $langs->load("projects");
+ $morehtmlref.='
'.$langs->trans('Project') . ' : ';
+ if (! empty($object->fk_project)) {
+ $proj = new Project($db);
+ $proj->fetch($object->fk_project);
+ $morehtmlref.='
';
+ $morehtmlref.=$proj->ref;
+ $morehtmlref.=' ';
+ } else {
+ $morehtmlref.='';
+ }
+}
$morehtmlref.='
';
-$linkback = '' . $langs->trans("BackToList") . ' ';
+$linkback = '' . $langs->trans("BackToList") . ' ';
$object->totalpaye = $totalpaye; // To give a chance to dol_banner_tab to use already paid amount to show correct status
diff --git a/htdocs/compta/sociales/payments.php b/htdocs/compta/sociales/payments.php
index eda1633480a..ae7240c204a 100644
--- a/htdocs/compta/sociales/payments.php
+++ b/htdocs/compta/sociales/payments.php
@@ -85,6 +85,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
if ($mode != 'sconly')
diff --git a/htdocs/compta/tva/reglement.php b/htdocs/compta/tva/reglement.php
index 94895062bc3..076978a86fb 100644
--- a/htdocs/compta/tva/reglement.php
+++ b/htdocs/compta/tva/reglement.php
@@ -154,6 +154,7 @@ if ($result)
print ' ';
print ' ';
print ' ';
+ print ' ';
print_barre_liste($langs->trans("VATPayments"),$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',$num,$totalnboflines, 'title_accountancy', 0, '', '', $limit);
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 929dbdc91e8..fc601cf8a53 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -433,6 +433,7 @@ print ' ';
print ' ';
print ' ';
+print ' ';
print_barre_liste($titre, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_companies.png', 0, '', '', $limit);
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index 318a24931be..43cce90bd1c 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -340,6 +340,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print_barre_liste($langs->trans("ListOfContracts"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $totalnboflines, 'title_commercial.png', 0, '', '', $limit);
diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php
index f283502bc3e..adac837f3e0 100644
--- a/htdocs/contrat/services.php
+++ b/htdocs/contrat/services.php
@@ -308,6 +308,7 @@ print ' ';
print ' ';
print ' ';
+print ' ';
$title=$langs->trans("ListOfServices");
if ($mode == "0") $title=$langs->trans("ListOfInactiveServices"); // Must use == "0"
diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php
index 3fef1265f9d..2fa2599e4d3 100644
--- a/htdocs/core/lib/company.lib.php
+++ b/htdocs/core/lib/company.lib.php
@@ -698,6 +698,7 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='')
$sortfield = GETPOST("sortfield",'alpha');
$sortorder = GETPOST("sortorder",'alpha');
+ $page = GETPOST('page','int');
$search_status = GETPOST("search_status",'int');
if ($search_status=='') $search_status=1; // always display activ customer first
$search_name = GETPOST("search_name",'alpha');
@@ -733,7 +734,8 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='')
print ' ';
print ' ';
print ' ';
-
+ print ' ';
+
print "\n".''."\n";
$param="socid=".$object->id;
diff --git a/htdocs/cron/list.php b/htdocs/cron/list.php
index 2eff05868d4..95338247eca 100644
--- a/htdocs/cron/list.php
+++ b/htdocs/cron/list.php
@@ -273,6 +273,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
// Line with explanation and button new job
diff --git a/htdocs/don/list.php b/htdocs/don/list.php
index b0cd414ed28..daa6f7aa1f2 100644
--- a/htdocs/don/list.php
+++ b/htdocs/don/list.php
@@ -149,6 +149,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
if ($search_all)
diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php
index 50454e3f253..c838c002cc9 100644
--- a/htdocs/expedition/list.php
+++ b/htdocs/expedition/list.php
@@ -280,6 +280,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php
index 06998059aa5..f95952db482 100644
--- a/htdocs/expensereport/list.php
+++ b/htdocs/expensereport/list.php
@@ -314,6 +314,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index 9963794fd9f..9271a348558 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -288,6 +288,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 8ca86a1e6c5..544d882cda3 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -677,6 +677,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 9ad1bf63ce2..e449ed83371 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -453,6 +453,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index b6825e93d82..10851e629e3 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -679,7 +679,8 @@ if (empty($action))
print ' ';
print ' ';
print ' ';
-
+ print ' ';
+
$moreforfilter='';
$parameters=array();
diff --git a/htdocs/fourn/product/list.php b/htdocs/fourn/product/list.php
index 94302eca4be..ca874511c94 100644
--- a/htdocs/fourn/product/list.php
+++ b/htdocs/fourn/product/list.php
@@ -170,6 +170,7 @@ if ($resql)
if ($fourn_id > 0) print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print '';
diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index 063c3042e3b..30d3dc14f69 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -282,6 +282,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
if ($id > 0) print ' ';
if ($sall)
diff --git a/htdocs/loan/index.php b/htdocs/loan/index.php
index fdc8cf67073..b04d3bd90b3 100644
--- a/htdocs/loan/index.php
+++ b/htdocs/loan/index.php
@@ -117,6 +117,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print_barre_liste($langs->trans("Loans"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_accountancy.png', 0, '', '', $limit);
diff --git a/htdocs/modulebuilder/skeletons/skeleton_list.php b/htdocs/modulebuilder/skeletons/skeleton_list.php
index 205fcf4be8c..9c258162759 100644
--- a/htdocs/modulebuilder/skeletons/skeleton_list.php
+++ b/htdocs/modulebuilder/skeletons/skeleton_list.php
@@ -307,6 +307,7 @@ print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_companies', 0, '', '', $limit);
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index 636611f91f0..510a0545372 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -89,6 +89,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
$moreforfilter = '';
diff --git a/htdocs/product/list-with-listview.php b/htdocs/product/list-with-listview.php
index e3103d8f426..1ebbf256c9c 100644
--- a/htdocs/product/list-with-listview.php
+++ b/htdocs/product/list-with-listview.php
@@ -689,6 +689,7 @@ else
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
echo $listHTML;
diff --git a/htdocs/product/list.php b/htdocs/product/list.php
index c957606b66a..7e6ae9b47f4 100644
--- a/htdocs/product/list.php
+++ b/htdocs/product/list.php
@@ -429,6 +429,7 @@ else
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print_barre_liste($texte, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_products.png', 0, '', '', $limit);
diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php
index a87fecd36b7..e460bbec7c5 100644
--- a/htdocs/product/reassort.php
+++ b/htdocs/product/reassort.php
@@ -189,6 +189,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
if ($sref || $snom || $sall || GETPOST('search'))
diff --git a/htdocs/product/reassortlot.php b/htdocs/product/reassortlot.php
index 660d0e78bd3..6ab18ac87cb 100644
--- a/htdocs/product/reassortlot.php
+++ b/htdocs/product/reassortlot.php
@@ -200,6 +200,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
if ($sref || $snom || $sall || GETPOST('search'))
diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php
index b3361f0b328..eefbe3deee9 100644
--- a/htdocs/product/stock/list.php
+++ b/htdocs/product/stock/list.php
@@ -135,7 +135,8 @@ if ($result)
print ' ';
print ' ';
print ' ';
-
+ print ' ';
+
print_barre_liste($langs->trans("ListOfWarehouses"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $totalnboflines, 'title_generic.png', 0, '', '', $limit);
if ($sall)
diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php
index 506ee68e42b..5f0f9c213dc 100644
--- a/htdocs/product/stock/mouvement.php
+++ b/htdocs/product/stock/mouvement.php
@@ -695,6 +695,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
if ($id > 0) print ' ';
diff --git a/htdocs/product/stock/productlot_list.php b/htdocs/product/stock/productlot_list.php
index df97621c07b..78d3c470cb1 100644
--- a/htdocs/product/stock/productlot_list.php
+++ b/htdocs/product/stock/productlot_list.php
@@ -309,6 +309,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_companies', 0, '', '', $limit);
diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php
index cbf036ef7e3..6230626a320 100644
--- a/htdocs/projet/list.php
+++ b/htdocs/projet/list.php
@@ -416,6 +416,7 @@ print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
print ' ';
diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php
index 85fa0f640e9..064281633c8 100644
--- a/htdocs/projet/tasks.php
+++ b/htdocs/projet/tasks.php
@@ -468,6 +468,7 @@ else if ($id > 0 || ! empty($ref))
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
$title=$langs->trans("ListOfTasks");
diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php
index 8c9f56f1d94..1f2459e85db 100644
--- a/htdocs/projet/tasks/list.php
+++ b/htdocs/projet/tasks/list.php
@@ -412,6 +412,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
print ' ';
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index ddbd59ed11f..cbdfece9d45 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -707,7 +707,8 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
else print ' ';
print ' ';
print ' ';
-
+ print ' ';
+
print ' ';
print ' ';
print ' ';
diff --git a/htdocs/resource/list.php b/htdocs/resource/list.php
index c0b58523994..f8a1fb6be61 100644
--- a/htdocs/resource/list.php
+++ b/htdocs/resource/list.php
@@ -187,6 +187,7 @@ print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
$moreforfilter = '';
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 4670036d70b..40ca07783c4 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -547,6 +547,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_companies', 0, '', '', $limit);
diff --git a/htdocs/societe/notify/card.php b/htdocs/societe/notify/card.php
index b17ea678853..7e7648db712 100644
--- a/htdocs/societe/notify/card.php
+++ b/htdocs/societe/notify/card.php
@@ -454,6 +454,7 @@ if ($result > 0)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
// List of active notifications
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index c5f994f8a10..2c10e2451a6 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -410,6 +410,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_commercial.png', 0, '', '', $limit);
diff --git a/htdocs/user/group/index.php b/htdocs/user/group/index.php
index 6956a1ad5eb..38fdf68b2ba 100644
--- a/htdocs/user/group/index.php
+++ b/htdocs/user/group/index.php
@@ -131,6 +131,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
print ' ';
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index 04acb9b56f7..4cec562ce44 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -296,6 +296,7 @@ print ' ';
print ' ';
print ' ';
print ' ';
+print ' ';
print ' ';
print ' ';
diff --git a/htdocs/user/notify/card.php b/htdocs/user/notify/card.php
index 3c186ac3cae..e39d8153cac 100644
--- a/htdocs/user/notify/card.php
+++ b/htdocs/user/notify/card.php
@@ -435,6 +435,7 @@ if ($result > 0)
print ' ';
print ' ';
print ' ';
+ print ' ';
print ' ';
// List of notifications done