--- /tmp/dsg/dolibarr/htdocs/user/admin/github_group_extrafields.php +++ /tmp/dsg/dolibarr/htdocs/user/admin/client_group_extrafields.php @@ -40,7 +40,7 @@ $type2label = array(''); foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val); -$action = GETPOST('action', 'aZ09'); +$action = GETPOST('action', 'alpha'); $attrname = GETPOST('attrname', 'alpha'); $elementtype = 'usergroup'; //Must be the $table_element of the class that manage extrafield @@ -71,11 +71,11 @@ $head = user_admin_prepare_head(); -print dol_get_fiche_head($head, 'attributes_group', $langs->trans("MenuUsersAndGroups"), -1, 'user'); +dol_fiche_head($head, 'attributes_group', $langs->trans("MenuUsersAndGroups"), -1, 'user'); require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php'; -print dol_get_fiche_end(); +dol_fiche_end(); // Buttons --- /tmp/dsg/dolibarr/htdocs/user/admin/github_user_extrafields.php +++ /tmp/dsg/dolibarr/htdocs/user/admin/client_user_extrafields.php @@ -39,7 +39,7 @@ $type2label = array(''); foreach ($tmptype2label as $key => $val) $type2label[$key] = $langs->transnoentitiesnoconv($val); -$action = GETPOST('action', 'aZ09'); +$action = GETPOST('action', 'alpha'); $attrname = GETPOST('attrname', 'alpha'); $elementtype = 'user'; //Must be the $table_element of the class that manage extrafield @@ -70,11 +70,11 @@ $head = user_admin_prepare_head(); -print dol_get_fiche_head($head, 'attributes', $langs->trans("MenuUsersAndGroups"), -1, 'user'); +dol_fiche_head($head, 'attributes', $langs->trans("MenuUsersAndGroups"), -1, 'user'); require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php'; -print dol_get_fiche_end(); +dol_fiche_end(); // Buttons @@ -97,7 +97,7 @@ print '
'; print load_fiche_titre($langs->trans('NewAttribute')); - require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; + require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php'; } /* ************************************************************************** */ @@ -110,7 +110,7 @@ print "
"; print load_fiche_titre($langs->trans("FieldEdition", $attrname)); - require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php'; + require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php'; } // End of page