// Action desactivation d'un sous module du module adherent if ($action == 'unset') { $result = dolibarr_del_const($db, GETPOST('name', 'alpha'), $conf->entity); if ($result < 0) { print $db->error(); } } /* * View */ $form = new Form($db); $help_url = 'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros'; llxHeader('', $langs->trans("MembersSetup"), $help_url); $linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>'; print load_fiche_titre($langs->trans("MembersSetup"), $linkback, 'title_setup'); $head = member_admin_prepare_head(); dol_fiche_head($head, 'general', $langs->trans("Members"), 0, 'user'); print load_fiche_titre($langs->trans("MemberMainOptions"), '', ''); print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>' . $langs->trans("Description") . '</td>'; print '<td>' . $langs->trans("Value") . '</td>'; print '<td align="center">' . $langs->trans("Action") . '</td>'; print "</tr>\n"; $var = true; // Login/Pass required for members $var = !$var; print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">'; print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">'; print '<input type="hidden" name="action" value="update">'; print '<input type="hidden" name="constname" value="ADHERENT_LOGIN_NOT_REQUIRED">';
/* * View */ $textobject=$langs->transnoentitiesnoconv("Members"); $help_url='EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros'; llxHeader('',$langs->trans("MembersSetup"),$help_url); $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>'; print_fiche_titre($langs->trans("MembersSetup"),$linkback,'setup'); $head = member_admin_prepare_head($adh); dol_fiche_head($head, 'attributes', $langs->trans("Member"), 0, 'user'); print $langs->trans("DefineHereComplementaryAttributes",$textobject).'<br>'."\n"; print '<br>'; dol_htmloutput_errors($mesg); // Load attribute_label $extrafields->fetch_name_optionals_label($elementtype); print "<table summary=\"listofattributes\" class=\"noborder\" width=\"100%\">"; print '<tr class="liste_titre">';