--- /tmp/dsg/dolibarr/htdocs/contrat/admin/github_19.0.3_contract_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/contrat/admin/client_contract_extrafields.php
@@ -30 +29,0 @@
-// Load Dolibarr environment
@@ -44,3 +43 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -48 +45 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -52,3 +49 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -78 +73 @@
-print dol_get_fiche_head($head, 'attributes', $langs->trans("Contracts"), -1, 'contract');
+dol_fiche_head($head, 'attributes', $langs->trans("Contracts"), -1, 'contract');
@@ -82 +77 @@
-print dol_get_fiche_end();
+dol_fiche_end();
@@ -85,2 +80,17 @@
-// Creation of an optional field
-if ($action == 'create') {
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '
";
+}
+
+
+/* ************************************************************************** */
+/* */
+/* Creation of an optional field */
+/* */
+/* ************************************************************************** */
+
+if ($action == 'create')
+{
@@ -93,2 +103,7 @@
-// Edition of an optional field
-if ($action == 'edit' && !empty($attrname)) {
+/* ************************************************************************** */
+/* */
+/* Edition of an optional field */
+/* */
+/* ************************************************************************** */
+if ($action == 'edit' && !empty($attrname))
+{
--- /tmp/dsg/dolibarr/htdocs/contrat/admin/github_19.0.3_contractdet_extrafields.php
+++ /tmp/dsg/dolibarr/htdocs/contrat/admin/client_contractdet_extrafields.php
@@ -30 +29,0 @@
-// Load Dolibarr environment
@@ -44,3 +43 @@
-foreach ($tmptype2label as $key => $val) {
- $type2label[$key] = $langs->transnoentitiesnoconv($val);
-}
+foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val);
@@ -48 +45 @@
-$action = GETPOST('action', 'aZ09');
+$action = GETPOST('action', 'alpha');
@@ -52,3 +49 @@
-if (!$user->admin) {
- accessforbidden();
-}
+if (!$user->admin) accessforbidden();
@@ -78 +73 @@
-print dol_get_fiche_head($head, 'attributeslines', $langs->trans("Contracts"), -1, 'contract');
+dol_fiche_head($head, 'attributeslines', $langs->trans("Contracts"), -1, 'contract');
@@ -82 +77 @@
-print dol_get_fiche_end();
+dol_fiche_end();
@@ -85,2 +80,17 @@
-// Creation of an optional field
-if ($action == 'create') {
+// Buttons
+if ($action != 'create' && $action != 'edit')
+{
+ print '";
+}
+
+
+/* ************************************************************************** */
+/* */
+/* Creation d'un champ optionnel
+ /* */
+/* ************************************************************************** */
+
+if ($action == 'create')
+{
@@ -93,2 +103,7 @@
-// Edition of an optional field
-if ($action == 'edit' && !empty($attrname)) {
+/* ************************************************************************** */
+/* */
+/* Edition d'un champ optionnel */
+/* */
+/* ************************************************************************** */
+if ($action == 'edit' && !empty($attrname))
+{