32 require
'../../main.inc.php';
33 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
34 require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
37 $langs->loadLangs(array(
"admin",
"members"));
42 $oldtypetonewone = array(
'texte'=>
'text',
'chaine'=>
'string');
44 $action =
GETPOST(
'action',
'aZ09');
50 'MEMBER_REMINDER_EMAIL'=>array(
'type'=>
'yesno',
'label'=>$langs->trans(
'MEMBER_REMINDER_EMAIL', $langs->transnoentities(
"Module2300Name"))),
51 'ADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION' =>
'emailtemplate:member',
52 'ADHERENT_EMAIL_TEMPLATE_AUTOREGISTER' =>
'emailtemplate:member',
53 'ADHERENT_EMAIL_TEMPLATE_MEMBER_VALIDATION' =>
'emailtemplate:member',
54 'ADHERENT_EMAIL_TEMPLATE_SUBSCRIPTION' =>
'emailtemplate:member',
55 'ADHERENT_EMAIL_TEMPLATE_CANCELATION' =>
'emailtemplate:member',
56 'ADHERENT_MAIL_FROM'=>
'string',
57 'ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT'=>
'string',
58 'ADHERENT_AUTOREGISTER_NOTIF_MAIL'=>
'html',
68 if ($action ==
'updateall') {
70 $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = 0;
72 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0) {
82 if ($action ==
'update' || $action ==
'add') {
83 $constlineid =
GETPOST(
'rowid',
'int');
84 $constname =
GETPOST(
'constname',
'alpha');
86 $constvalue = (
GETPOSTISSET(
'constvalue_'.$constname) ?
GETPOST(
'constvalue_'.$constname,
'alphanohtml') :
GETPOST(
'constvalue'));
88 $constnote = (
GETPOSTISSET(
'constnote_'.$constname) ?
GETPOST(
'constnote_'.$constname,
'restricthtml') :
GETPOST(
'constnote'));
90 $typetouse = empty($oldtypetonewone[$consttype]) ? $consttype : $oldtypetonewone[$consttype];
91 $constvalue = preg_replace(
'/:member$/',
'', $constvalue);
93 $res =
dolibarr_set_const($db, $constname, $constvalue, $typetouse, 0, $constnote, $conf->entity);
95 if (!($res > 0)) $error++;
109 $form =
new Form($db);
111 $help_url =
'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros';
113 llxHeader(
'', $langs->trans(
"MembersSetup"), $help_url);
116 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
129 $helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
130 $helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
131 $helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
member_admin_prepare_head()
Return array head with list of tabs to view object informations.
dolibarr_set_const($db, $name, $value, $type= 'chaine', $visible=0, $note= '', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
form_constantes($tableau, $strictw3c=0, $helptext= '')
Show array with constants to edit.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.