37require
'../../main.inc.php';
47require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
48require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
49require_once DOL_DOCUMENT_ROOT.
'/adherents/class/adherent.class.php';
52$langs->loadLangs(array(
"admin",
"members",
"other"));
59$choices = array(
'yesno',
'texte',
'chaine');
61$value =
GETPOST(
'value',
'alpha');
62$label =
GETPOST(
'label',
'alpha');
63$scandir =
GETPOST(
'scandir',
'alpha');
66$action =
GETPOST(
'action',
'aZ09');
67$modulepart =
GETPOST(
'modulepart',
'aZ09');
77include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
79if ($action ==
'updateMask') {
80 $maskconst =
GETPOST(
'maskconst',
'aZ09');
81 $maskvalue =
GETPOST(
'maskvalue',
'alpha');
85 if ($maskconst && preg_match(
'/_MASK$/', $maskconst)) {
98} elseif ($action ==
'specimen') {
99 $modele =
GETPOST(
'module',
'alpha');
102 $adherentspecimen->initAsSpecimen();
103 $adherentspecimen->status = 0;
108 $dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
109 foreach ($dirmodels as $reldir) {
110 $file =
dol_buildpath($reldir.
"core/modules/member/doc/pdf_".$modele.
".modules.php", 0);
111 if (file_exists($file)) {
112 $classname =
"pdf_".$modele;
117 if ($classname !==
'') {
120 $module =
new $classname(
$db);
121 '@phan-var-force ModelePDFMember $module';
124 if ($module->write_file($adherentspecimen, $langs) > 0) {
125 header(
"Location: ".DOL_URL_ROOT.
"/document.php?modulepart=member&file=SPECIMEN.pdf");
133 dol_syslog($langs->trans(
"ErrorModuleNotFound"), LOG_ERR);
135} elseif ($action ==
'set_default') {
138} elseif ($action ==
'del_default') {
146} elseif ($action ==
'setdoc') {
156} elseif (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
159 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
164} elseif (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
167 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
172} elseif ($action ==
'updatemainoptions') {
174 $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = $res7 = $res8 = $res9 = 0;
180 if (GETPOSTISSET(
'MEMBER_PUBLIC_ENABLED')) {
183 $res8 =
dolibarr_set_const(
$db,
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
GETPOST(
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
'alpha'),
'chaine', 0,
'',
$conf->entity);
188 $res5 =
dolibarr_set_const(
$db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'',
$conf->entity);
190 $res6 =
dolibarr_set_const(
$db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'',
$conf->entity);
193 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0 || $res7 < 0 || $res8 < 0 || $res9 < 0) {
200} elseif ($action ==
'updatememberscards') {
202 $res1 = $res2 = $res3 = $res4 = 0;
209 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0) {
216} elseif ($action ==
'updatememberstickets') {
222 if ($res1 < 0 || $res2 < 0) {
229} elseif ($action ==
'setcodemember') {
234} elseif ($action ==
'update' || $action ==
'add') {
236 $constname =
GETPOST(
'constname',
'alpha');
237 $constvalue = (
GETPOST(
'constvalue_'.$constname) ?
GETPOST(
'constvalue_'.$constname) :
GETPOST(
'constvalue'));
240 if (($constname ==
'ADHERENT_CARD_TYPE' || $constname ==
'ADHERENT_ETIQUETTE_TYPE' || $constname ==
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS') && $constvalue == -1) {
243 if ($constname ==
'ADHERENT_LOGIN_NOT_REQUIRED') {
252 $constnote =
GETPOST(
'constnote');
267if ($action ==
'set') {
275if ($action ==
'unset') {
290$title = $langs->trans(
"MembersSetup");
291$help_url =
'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder';
293llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-member page-admin');
295$linkback =
'<a href="'.dolBuildUrl(DOL_URL_ROOT.
'/admin/modules.php', [
'restore_lastsearch_values' => 1]).
'">'.
img_picto($langs->trans(
"BackToModuleList"),
'back',
'class="pictofixedwidth"').
'<span class="hideonsmartphone">'.$langs->trans(
"BackToModuleList").
'</span></a>';
297print
load_fiche_titre($langs->trans(
"MembersSetup"), $linkback,
'title_setup');
304$dirModMember = array_merge(array(
'/core/modules/member/'), (array)
$conf->modules_parts[
'member']);
305foreach (
$conf->modules_parts[
'models'] as $mo) {
307 $dirModMember[] = $mo.
'core/modules/member/';
314print
'<div class="div-table-responsive-no-min">';
315print
'<table class="noborder centpercent">'.
"\n";
316print
'<tr class="liste_titre">'.
"\n";
317print
' <td>'.$langs->trans(
"Name").
'</td>';
318print
' <td>'.$langs->trans(
"Description").
'</td>';
319print
' <td>'.$langs->trans(
"Example").
'</td>';
320print
' <td class="center" width="80">'.$langs->trans(
"Status").
'</td>';
321print
' <td class="center" width="60"></td>';
324$arrayofmodules = array();
326foreach ($dirModMember as $dirroot) {
329 $handle = @opendir($dir);
330 if (is_resource($handle)) {
332 while (($file = readdir($handle)) !==
false) {
334 if (substr($file, 0, 11) ==
'mod_member_' && substr($file, -3) ==
'php') {
335 $file = substr($file, 0,
dol_strlen($file) - 4);
342 $modCodeMember =
new $file();
345 if ($modCodeMember->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
348 if ($modCodeMember->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
352 $arrayofmodules[$file] = $modCodeMember;
360'@phan-var-force array<string,ModeleNumRefMembers> $arrayofmodules';
363foreach ($arrayofmodules as $file => $modCodeMember) {
364 print
'<tr class="oddeven">'.
"\n";
365 print
'<td width="140">'.$modCodeMember->name.
'</td>'.
"\n";
366 print
'<td>'.$modCodeMember->info($langs).
'</td>'.
"\n";
367 print
'<td class="nowrap">'.$modCodeMember->getExample().
'</td>'.
"\n";
370 print
'<td class="center">'.
"\n";
371 print
img_picto($langs->trans(
"Activated"),
'switch_on');
374 $isshareonotherentity = (is_object($mc) && !empty($mc->sharings[
'referent']) && $mc->sharings[
'referent'] !=
$conf->entity);
375 $disabled = (
isModEnabled(
'multicompany') && $isshareonotherentity);
376 print
'<td class="center">';
378 print
'<a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=setcodemember&token='.newToken().
'&value='.urlencode($file).
'">';
380 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
387 print
'<td class="center">';
388 $s = $modCodeMember->getToolTip($langs,
null);
389 print $form->textwithpicto(
'', $s, 1);
405$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
411$sql =
"SELECT nom as name";
412$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
413$sql .=
" WHERE type = '".$db->escape($type).
"'";
414$sql .=
" AND entity = ".((int)
$conf->entity);
415$resql =
$db->query($sql);
418 $num_rows =
$db->num_rows($resql);
419 while ($i < $num_rows) {
420 $obj =
$db->fetch_object($resql);
421 array_push($def, $obj->name);
431print
'<div class="div-table-responsive-no-min">';
432print
'<table class="noborder centpercent">';
433print
'<tr class="liste_titre">';
434print
'<td>'.$langs->trans(
"Name").
'</td>';
435print
'<td>'.$langs->trans(
"Description").
'</td>';
436print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
437print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
438print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
439print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
444foreach ($dirmodels as $reldir) {
445 foreach (array(
'',
'/doc') as $valdir) {
448 $handle = opendir($dir);
449 if (is_resource($handle)) {
451 while (($file = readdir($handle)) !==
false) {
456 foreach ($filelist as $file) {
457 if (preg_match(
'/\.class\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
458 if (file_exists($dir.
'/'.$file)) {
459 $name = substr($file, 4,
dol_strlen($file) - 14);
460 $classname = substr($file, 0,
dol_strlen($file) - 10);
462 require_once $dir.
'/'.$file;
463 $module =
new $classname(
$db);
464 '@phan-var-force doc_generic_member_odt|pdf_standard_member $module';
467 $modulequalified = 1;
468 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
469 $modulequalified = 0;
471 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
472 $modulequalified = 0;
475 if ($modulequalified) {
476 print
'<tr class="oddeven"><td width="100">';
477 print(empty($module->name) ? $name : $module->
name);
479 if (method_exists($module,
'info')) {
480 print $module->info($langs);
482 print $module->description;
487 if (in_array($name, $def)) {
488 print
'<td class="center">'.
"\n";
489 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del_default&token='.newToken().
'&value='.$name.
'">';
490 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
494 print
'<td class="center">'.
"\n";
495 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=set_default&token='.newToken().
'&value='.$name.
'&scandir='.(!empty($module->scandir) ? $module->scandir :
'').
'&label='.urlencode($module->name).
'">'.
img_picto($langs->trans(
"Disabled"),
'switch_off').
'</a>';
500 print
'<td class="center">';
502 print
img_picto($langs->trans(
"Default"),
'on');
504 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=setdoc&token='.newToken().
'&value='.$name.
'&scandir='.(!empty($module->scandir) ? $module->scandir :
'').
'&label='.urlencode($module->name).
'" alt="'.$langs->trans(
"Default").
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
509 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
510 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
511 if ($module->type ==
'pdf') {
512 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
514 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
515 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn(!empty($module->option_logo) ? $module->option_logo : 0, 1, 1);
516 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn(!empty($module->option_multilang) ? $module->option_multilang : 0, 1, 1);
519 print
'<td class="center">';
520 print $form->textwithpicto(
'', $htmltooltip, 1,
'info');
524 print
'<td class="center">';
525 if ($module->type ==
'pdf') {
526 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'contract').
'</a>';
528 print
img_object($langs->transnoentitiesnoconv(
"PreviewNotAvailable"),
'generic');
549print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
550print
'<input type="hidden" name="token" value="'.newToken().
'">';
551print
'<input type="hidden" name="action" value="updatemainoptions">';
552print
'<input type="hidden" name="page_y" value="">';
559print
'<div class="div-table-responsive-no-min">';
560print
'<table class="noborder centpercent">';
561print
'<tr class="liste_titre">';
562print
'<td>'.$langs->trans(
"Description").
'</td>';
563print
'<td class="soixantepercent">'.$langs->trans(
"Value").
'</td>';
567print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
568print $form->textwithpicto($langs->trans(
"MemberSubscriptionStartAfter"), $langs->trans(
"MemberSubscriptionStartAfterDesc").
'<br>'.$langs->trans(
"MemberSubscriptionStartAfterDesc2"));
570print
'<input type="text" class="right width50" id="MEMBER_SUBSCRIPTION_START_AFTER" name="MEMBER_SUBSCRIPTION_START_AFTER" value="'.getDolGlobalString(
'MEMBER_SUBSCRIPTION_START_AFTER').
'">';
574$startpoint = array();
575$startpoint[0] = $langs->trans(
"NoCorrection");
576$startpoint[
"m"] = $langs->trans(
"Month");
577$startpoint[
"3m"] = $langs->trans(
"Quarter");
578$startpoint[
"Y"] = $langs->trans(
"Year");
579print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
580print $langs->trans(
"MemberSubscriptionStartFirstDayOf");
583print $form->selectarray(
"MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF", $startpoint, $startfirstdayof, 0);
587print
'<tr class="oddeven"><td>'.$langs->trans(
"AdherentMailRequired").
'</td><td>';
588print $form->selectyesno(
'ADHERENT_MAIL_REQUIRED',
getDolGlobalInt(
'ADHERENT_MAIL_REQUIRED'), 1,
false, 0, 1);
592print
'<tr class="oddeven"><td>';
593print $form->textwithpicto($langs->trans(
"AdherentLoginRequired"), $langs->trans(
"AdherentLoginRequiredDesc"));
595print $form->selectyesno(
'ADHERENT_LOGIN_NOT_REQUIRED', (
getDolGlobalString(
'ADHERENT_LOGIN_NOT_REQUIRED') ? 0 : 1), 1, false, 0, 1);
600print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberCreateAnExternalUserForSubscriptionValidated").
'</td><td>';
601print $form->selectyesno(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
getDolGlobalInt(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN'), 1,
false, 0, 1);
605print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberSendInformationByMailByDefault").
'</td><td>';
606print $form->selectyesno(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
getDolGlobalInt(
'ADHERENT_DEFAULT_SENDINFOBYMAIL'), 1,
false, 0, 1);
625print
'<tr class="oddeven"><td>'.$langs->trans(
"MoreActionsOnSubscription").
'</td>';
626$arraychoices = array(
'0' => $langs->trans(
"None"));
628 $arraychoices[
'bankdirect'] = $langs->trans(
"MoreActionBankDirect");
631 $arraychoices[
'invoiceonly'] = $langs->trans(
"MoreActionInvoiceOnly");
634 $arraychoices[
'bankviainvoice'] = $langs->trans(
"MoreActionBankViaInvoice");
637print $form->selectarray(
'ADHERENT_BANK_USE', $arraychoices,
getDolGlobalString(
'ADHERENT_BANK_USE'), 0);
639 print
'<br><div style="padding-top: 5px;"><span class="opacitymedium">'.$langs->trans(
"ABankAccountMustBeDefinedOnPaymentModeSetup").
'</span></div>';
646 print
'<tr class="oddeven"><td>'.$langs->trans(
"VATToUseForSubscriptions").
'</td>';
649 print $form->selectarray(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS', array(
'0' => $langs->trans(
"NoVatOnSubscription"),
'defaultforfoundationcountry' => $langs->trans(
"Default")),
getDolGlobalString(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'0'), 0);
652 print
'<td class="right">';
653 print $langs->trans(
"WarningModuleNotActive", $langs->transnoentities(
"Module85Name"));
659 print
'<tr class="oddeven"><td>'.$langs->trans(
"ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").
'</td>';
662 print
img_picto(
'',
'product',
'class="pictofixedwidth"');
663 $form->select_produits((
int) $selected,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'', 0, 0, 1, 2,
'', 0, [], 0, 1, 0,
'minwidth100 maxwidth500 widthcentpercentminusx');
672print
'<div class="center">';
673print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"Update").
'" name="Button">';
685print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
686print
'<input type="hidden" name="token" value="'.newToken().
'">';
687print
'<input type="hidden" name="action" value="updatememberscards">';
688print
'<input type="hidden" name="page_y" value="">';
692$helptext = $langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
694$helptext .=
'<small>';
702$substitutionarray = array(
703 '__MEMBER_ID__' =>
'MemberID',
704 '__MEMBER_REF__' =>
'MemberRef',
705 '__MEMBER_LOGIN__' =>
'MemberLogin',
706 '__MEMBER_TITLE__' =>
'MemberLogin',
707 '__MEMBER_FIRSTNAME__' =>
'MemberFirstname',
708 '__MEMBER_LASTNAME__' =>
'MemberLastname',
709 '__MEMBER_FULLNAME__' =>
'MemberFullname',
710 '__MEMBER_COMPANY__' =>
'Company',
711 '__MEMBER_ADDRESS__' =>
'MemberAddress',
712 '__MEMBER_ZIP__' =>
'MemberZip',
713 '__MEMBER_TOWN__' =>
'MemberTown',
714 '__MEMBER_COUNTRY__' =>
'MemberCountry',
715 '__MEMBER_COUNTRY_CODE__' =>
'MemberCountryCode',
716 '__MEMBER_EMAIL__' =>
'MemberEmail',
717 '__MEMBER_BIRTH__' =>
'MemberBirthdate',
718 '__MEMBER_TYPE__' =>
'MemberType',
719 '__MEMBER_PHOTO__' =>
'MemberPhoto',
721 '__MONTH__' => $month,
723 '__DOL_MAIN_URL_ROOT__' => (
string) DOL_MAIN_URL_ROOT,
724 '__SERVER__' =>
"https://".$_SERVER[
"SERVER_NAME"].
"/"
726foreach ($substitutionarray as $key => $val) {
727 $helptext .= $key.
' => '.$val.
'<br>';
737$helptext .=
'</small>';
739print
'<div class="div-table-responsive-no-min">';
740print
'<table class="noborder centpercent">';
741print
'<tr class="liste_titre">';
742print
'<td>'.$langs->trans(
"Description").
'</td>';
743print
'<td class="soixantepercent">'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
747print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TYPE").
'</td><td>';
749require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
750$arrayoflabels = array();
751foreach (array_keys($_Avery_Labels) as $codecards) {
752 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
754print $form->selectarray(
'ADHERENT_CARD_TYPE', $arrayoflabels,
getDolGlobalString(
'ADHERENT_CARD_TYPE',
'CARD'), 1, 0, 0);
759print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_HEADER_TEXT").
'</td><td>';
760print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_HEADER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_HEADER_TEXT')).
'" spellcheck="false">';
764print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT").
'</td><td>';
765print
'<textarea class="flat" name="ADHERENT_CARD_TEXT" cols="50" rows="5" wrap="soft" spellcheck="false">'.
"\n";
771print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT_RIGHT").
'</td><td>';
772print
'<textarea class="flat" name="ADHERENT_CARD_TEXT_RIGHT" cols="50" rows="5" wrap="soft" spellcheck="false">'.
"\n";
778print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_FOOTER_TEXT").
'</td><td>';
779print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_FOOTER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_FOOTER_TEXT')).
'" spellcheck="false">';
785print
'<div class="center">';
786print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"Update").
'" name="Button">';
796print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
797print
'<input type="hidden" name="token" value="'.newToken().
'">';
798print
'<input type="hidden" name="action" value="updatememberstickets">';
799print
'<input type="hidden" name="page_y" value="">';
803print
'<div class="div-table-responsive-no-min">';
804print
'<table class="noborder centpercent">';
805print
'<tr class="liste_titre">';
806print
'<td>'.$langs->trans(
"Description").
'</td>';
807print
'<td class="soixantepercent">'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
811print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TYPE").
'</td><td>';
813require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
814$arrayoflabels = array();
815foreach (array_keys($_Avery_Labels) as $codecards) {
816 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
818print $form->selectarray(
'ADHERENT_ETIQUETTE_TYPE', $arrayoflabels,
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') ?
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') :
'CARD', 1, 0, 0);
823print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TEXT").
'</td><td>';
824print
'<textarea class="flat" name="ADHERENT_ETIQUETTE_TEXT" cols="50" rows="5" wrap="soft" spellcheck="false">'.
"\n";
832print
'<div class="center">';
833print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"Update").
'" name="Button">';
addDocumentModel($name, $type, $label='', $description='')
Add document model used by doc generator.
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).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
delDocumentModel($name, $type)
Delete document model used by doc generator.
llxFooter($comment='', $zone='private', $disabledoutputofmessages=0)
Empty footer.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage members of a foundation.
dol_now($mode='gmt')
Return date for now.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0, $morecssdiv='')
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $allowothertags=array())
Show a picto called object_picto (generic function)
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by the value of a given key, which produces ascending (default) or descending out...
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
yn($yesno, $format=1, $color=0)
Return yes or no in current language.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='', $morecssonpicto='widthpictotitle')
Load a title with picto.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
isModEnabled($module)
Is Dolibarr module enabled.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
member_admin_prepare_head()
Return array head with list of tabs to view object information.
$conf db name
Only used if Module[ID]Name translation string is not found.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.