--- /tmp/dsg/dolibarr/htdocs/compta/facture/admin/github_19.0.3_facture_cust_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/compta/facture/admin/client_facture_cust_extrafields.php
@@ -28 +27,0 @@
-// Load Dolibarr environment
@@ -42,3 +41 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -46 +43 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -50,3 +47 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -77 +72 @@
-print dol_get_fiche_head($head, 'attributes', $langs->trans("Invoices"), -1, 'invoice');
+dol_fiche_head($head, 'attributes', $langs->trans("Invoices"), -1, 'invoice');
@@ -81 +76,10 @@
-print dol_get_fiche_end();
+dol_fiche_end();
+
+
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '
";
+}
@@ -84,0 +89 @@
+ *
@@ -85,0 +91 @@
+ *
@@ -88 +94,2 @@
-if ($action == 'create') {
+if ($action == 'create')
+{
@@ -90 +97 @@
- print load_fiche_titre($langs->trans('NewAttribute'));
+ print load_fiche_titre($langs->trans('NewAttribute'));
@@ -92 +99 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
@@ -95,0 +103 @@
+ *
@@ -96,0 +105 @@
+ *
@@ -98 +107,2 @@
-if ($action == 'edit' && !empty($attrname)) {
+if ($action == 'edit' && !empty($attrname))
+{
@@ -102 +112 @@
- print load_fiche_titre($langs->trans("FieldEdition", $attrname));
+ print load_fiche_titre($langs->trans("FieldEdition", $attrname));
@@ -104 +114 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
--- /tmp/dsg/dolibarr/htdocs/compta/facture/admin/github_19.0.3_facture_rec_cust_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/compta/facture/admin/client_facture_rec_cust_extrafields.php
@@ -29 +28,0 @@
-// Load Dolibarr environment
@@ -43,3 +42 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -47 +44 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -51,3 +48 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -78 +73 @@
-print dol_get_fiche_head($head, 'attributesrec', $langs->trans("Invoices"), -1, 'invoice');
+dol_fiche_head($head, 'attributesrec', $langs->trans("Invoices"), -1, 'invoice');
@@ -82 +77,11 @@
-print dol_get_fiche_end();
+dol_fiche_end();
+
+
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '";
+}
+
@@ -84,0 +90 @@
+ *
@@ -85,0 +92 @@
+ *
@@ -88 +95,2 @@
-if ($action == 'create') {
+if ($action == 'create')
+{
@@ -90 +98 @@
- print load_fiche_titre($langs->trans('NewAttribute'));
+ print load_fiche_titre($langs->trans('NewAttribute'));
@@ -92 +100 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
@@ -95,0 +104 @@
+ *
@@ -96,0 +106 @@
+ *
@@ -98 +108,2 @@
-if ($action == 'edit' && !empty($attrname)) {
+if ($action == 'edit' && !empty($attrname))
+{
@@ -102 +113 @@
- print load_fiche_titre($langs->trans("FieldEdition", $attrname));
+ print load_fiche_titre($langs->trans("FieldEdition", $attrname));
@@ -104 +115 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
--- /tmp/dsg/dolibarr/htdocs/compta/facture/admin/github_19.0.3_facturedet_cust_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/compta/facture/admin/client_facturedet_cust_extrafields.php
@@ -29 +28,0 @@
-// Load Dolibarr environment
@@ -43,3 +42 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -47 +44 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -51,3 +48 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -78 +73 @@
-print dol_get_fiche_head($head, 'attributeslines', $langs->trans("Invoices"), -1, 'invoice');
+dol_fiche_head($head, 'attributeslines', $langs->trans("Invoices"), -1, 'invoice');
@@ -82 +77,10 @@
-print dol_get_fiche_end();
+dol_fiche_end();
+
+
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '";
+}
@@ -86 +90,3 @@
- * Creation of an optional field
+ *
+ * Creation d'un champ optionnel
+ *
@@ -89 +95,2 @@
-if ($action == 'create') {
+if ($action == 'create')
+{
@@ -91 +98 @@
- print load_fiche_titre($langs->trans('NewAttribute'));
+ print load_fiche_titre($langs->trans('NewAttribute'));
@@ -93 +100 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
@@ -97 +104,3 @@
- * Edition of an optional field
+ *
+ * Edition d'un champ optionnel
+ *
@@ -99,3 +108,4 @@
-if ($action == 'edit' && !empty($attrname)) {
- print "
";
- print load_fiche_titre($langs->trans("FieldEdition", $attrname));
+if ($action == 'edit' && !empty($attrname))
+{
+ print "
";
+ print load_fiche_titre($langs->trans("FieldEdition", $attrname));
@@ -103 +113 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
--- /tmp/dsg/dolibarr/htdocs/compta/facture/admin/github_19.0.3_facturedet_rec_cust_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/compta/facture/admin/client_facturedet_rec_cust_extrafields.php
@@ -29 +28,0 @@
-// Load Dolibarr environment
@@ -43,3 +42 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -47 +44 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -51,3 +48 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -78 +73 @@
-print dol_get_fiche_head($head, 'attributeslinesrec', $langs->trans("Invoices"), -1, 'invoice');
+dol_fiche_head($head, 'attributeslinesrec', $langs->trans("Invoices"), -1, 'invoice');
@@ -82 +77,10 @@
-print dol_get_fiche_end();
+dol_fiche_end();
+
+
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '";
+}
@@ -86 +90,3 @@
- * Creation of an optional field
+ *
+ * Creation d'un champ optionnel
+ *
@@ -89 +95,2 @@
-if ($action == 'create') {
+if ($action == 'create')
+{
@@ -91 +98 @@
- print load_fiche_titre($langs->trans('NewAttribute'));
+ print load_fiche_titre($langs->trans('NewAttribute'));
@@ -93 +100 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
@@ -97 +104,3 @@
- * Edition of an optional field
+ *
+ * Edition d'un champ optionnel
+ *
@@ -99,3 +108,4 @@
-if ($action == 'edit' && !empty($attrname)) {
- print "
";
- print load_fiche_titre($langs->trans("FieldEdition", $attrname));
+if ($action == 'edit' && !empty($attrname))
+{
+ print "
";
+ print load_fiche_titre($langs->trans("FieldEdition", $attrname));
@@ -103 +113 @@
- require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
+ require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';