diff --git a/htdocs/adherents/document.php b/htdocs/adherents/document.php index 3eb7ac331a8..a95063e9d64 100644 --- a/htdocs/adherents/document.php +++ b/htdocs/adherents/document.php @@ -74,7 +74,7 @@ if ($result < 0) * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -168,7 +168,7 @@ if ($id > 0) $modulepart = 'member'; $permission = $user->rights->adherent->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; print "

"; } else diff --git a/htdocs/comm/action/document.php b/htdocs/comm/action/document.php index 741db311e20..848c8057b6d 100644 --- a/htdocs/comm/action/document.php +++ b/htdocs/comm/action/document.php @@ -83,7 +83,7 @@ if (! $sortfield) $sortfield="name"; /* * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -256,7 +256,7 @@ if ($act->id > 0) $modulepart = 'actions'; $permission = $user->rights->agenda->myactions->create||$user->rights->agenda->allactions->create; $param = '&id=' . $act->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/comm/propal/document.php b/htdocs/comm/propal/document.php index 04704ba2ff4..6e05813f7f3 100644 --- a/htdocs/comm/propal/document.php +++ b/htdocs/comm/propal/document.php @@ -66,7 +66,7 @@ if ($object->id > 0) { $object->fetch_thirdparty(); $upload_dir = $conf->propal->dir_output.'/'.dol_sanitizeFileName($object->ref); - include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; } /* @@ -133,7 +133,7 @@ if ($object->id > 0) $modulepart = 'propal'; $permission = $user->rights->propal->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/commande/document.php b/htdocs/commande/document.php index 9ba0827e7e1..596759d44af 100644 --- a/htdocs/commande/document.php +++ b/htdocs/commande/document.php @@ -72,7 +72,7 @@ if ($object->fetch($id)) $upload_dir = $conf->commande->dir_output . "/" . dol_sanitizeFileName($object->ref); } -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -122,7 +122,7 @@ if ($id > 0 || ! empty($ref)) $modulepart = 'commande'; $permission = $user->rights->commande->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/compta/deplacement/document.php b/htdocs/compta/deplacement/document.php index 0177891491d..4c44fffa6e5 100644 --- a/htdocs/compta/deplacement/document.php +++ b/htdocs/compta/deplacement/document.php @@ -72,7 +72,7 @@ $modulepart='trip'; * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -123,7 +123,7 @@ if ($object->id) $modulepart = 'deplacement'; $permission = $user->rights->deplacement->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/compta/facture/document.php b/htdocs/compta/facture/document.php index 5bce75e363c..cc16e5dcf77 100644 --- a/htdocs/compta/facture/document.php +++ b/htdocs/compta/facture/document.php @@ -74,7 +74,7 @@ if ($object->fetch($id)) /* * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -150,7 +150,7 @@ if ($id > 0 || ! empty($ref)) $modulepart = 'facture'; $permission = $user->rights->facture->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/compta/sociales/document.php b/htdocs/compta/sociales/document.php index c13618691fd..2e86a7a6986 100644 --- a/htdocs/compta/sociales/document.php +++ b/htdocs/compta/sociales/document.php @@ -73,7 +73,7 @@ $modulepart='tax'; * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -163,7 +163,7 @@ if ($object->id) $modulepart = 'tax'; $permission = $user->rights->tax->charges->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/contrat/document.php b/htdocs/contrat/document.php index 83d9870b0db..c29d3b3186c 100644 --- a/htdocs/contrat/document.php +++ b/htdocs/contrat/document.php @@ -77,7 +77,7 @@ $modulepart='contract'; /* * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -125,7 +125,7 @@ if ($object->id) $modulepart = 'contract'; $permission = $user->rights->contrat->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/core/tpl/doc2.tpl.php b/htdocs/core/tpl/document_actions_post_headers.tpl.php similarity index 100% rename from htdocs/core/tpl/doc2.tpl.php rename to htdocs/core/tpl/document_actions_post_headers.tpl.php diff --git a/htdocs/core/tpl/document_actions.tpl.php b/htdocs/core/tpl/document_actions_pre_headers.tpl.php similarity index 100% rename from htdocs/core/tpl/document_actions.tpl.php rename to htdocs/core/tpl/document_actions_pre_headers.tpl.php diff --git a/htdocs/fichinter/document.php b/htdocs/fichinter/document.php index 1505facbab5..76fff7b9834 100644 --- a/htdocs/fichinter/document.php +++ b/htdocs/fichinter/document.php @@ -72,7 +72,7 @@ $modulepart='fichinter'; * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -123,7 +123,7 @@ if ($object->id) $modulepart = 'ficheinter'; $permission = $user->rights->ficheinter->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/fourn/commande/document.php b/htdocs/fourn/commande/document.php index 303e505c18b..6816696ba36 100644 --- a/htdocs/fourn/commande/document.php +++ b/htdocs/fourn/commande/document.php @@ -78,7 +78,7 @@ $object->fetch_thirdparty(); * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -161,7 +161,7 @@ if ($object->id > 0) $modulepart = 'commande_fournisseur'; $permission = $user->rights->fournisseur->commande->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/fourn/facture/document.php b/htdocs/fourn/facture/document.php index 7779b58d220..f170b29330a 100644 --- a/htdocs/fourn/facture/document.php +++ b/htdocs/fourn/facture/document.php @@ -72,7 +72,7 @@ if ($object->fetch($id, $ref)) * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -180,7 +180,7 @@ if ($object->id > 0) $modulepart = 'facture_fournisseur'; $permission = $user->rights->fournisseur->facture->creer; $param = '&facid=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 34d12669617..4a5d1691613 100644 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -81,7 +81,7 @@ $reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); * Action envoie fichier */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -143,7 +143,7 @@ if ($object->id) $modulepart = 'produit'; $permission = $user->rights->produit->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/projet/document.php b/htdocs/projet/document.php index 7644ef5486c..89fc9549156 100644 --- a/htdocs/projet/document.php +++ b/htdocs/projet/document.php @@ -70,7 +70,7 @@ if (! $sortfield) $sortfield="name"; * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -147,7 +147,7 @@ if ($object->id > 0) $modulepart = 'projet'; $permission = ($userWrite > 0); $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else diff --git a/htdocs/projet/tasks/document.php b/htdocs/projet/tasks/document.php index 763136d3481..8dd80223e6c 100644 --- a/htdocs/projet/tasks/document.php +++ b/htdocs/projet/tasks/document.php @@ -108,7 +108,7 @@ if ($id > 0 || ! empty($ref)) } } -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* * View @@ -232,7 +232,7 @@ if ($object->id > 0) $modulepart = 'projet'; $permission = $user->rights->projet->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else { diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index e9b172cbc0a..1da45c36c8f 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -73,7 +73,7 @@ if ($id > 0 || ! empty($ref)) * Actions */ -include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions.tpl.php'; +include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_pre_headers.tpl.php'; /* @@ -152,7 +152,7 @@ if ($object->id) $modulepart = 'societe'; $permission = $user->rights->societe->creer; $param = '&id=' . $object->id; - include_once DOL_DOCUMENT_ROOT . '/core/tpl/doc2.tpl.php'; + include_once DOL_DOCUMENT_ROOT . '/core/tpl/document_actions_post_headers.tpl.php'; } else {