35require
'../../main.inc.php';
36require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
37require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
40$langs->loadLangs(array(
"admin",
"members"));
47$choices = array(
'yesno',
'texte',
'chaine');
49$value =
GETPOST(
'value',
'alpha');
50$label =
GETPOST(
'label',
'alpha');
51$scandir =
GETPOST(
'scandir',
'alpha');
54$action =
GETPOST(
'action',
'aZ09');
55$modulepart =
GETPOST(
'modulepart',
'aZ09');
62include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
64if ($action ==
'set_default') {
67} elseif ($action ==
'del_default') {
75} elseif ($action ==
'setdoc') {
77 if (
dolibarr_set_const($db,
"MEMBER_ADDON_PDF_ODT", $value,
'chaine', 0,
'', $conf->entity)) {
80 $conf->global->MEMBER_ADDON_PDF_ODT = $value;
89} elseif (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
92 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
97} elseif (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
100 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
105} elseif ($action ==
'updatemainoptions') {
107 $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = $res7 = $res8 = $res9 = 0;
108 $res1 =
dolibarr_set_const($db,
'ADHERENT_LOGIN_NOT_REQUIRED',
GETPOST(
'ADHERENT_LOGIN_NOT_REQUIRED',
'alpha') ? 0 : 1,
'chaine', 0,
'', $conf->entity);
109 $res2 =
dolibarr_set_const($db,
'ADHERENT_MAIL_REQUIRED',
GETPOST(
'ADHERENT_MAIL_REQUIRED',
'alpha'),
'chaine', 0,
'', $conf->entity);
110 $res3 =
dolibarr_set_const($db,
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
GETPOST(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
'alpha'),
'chaine', 0,
'', $conf->entity);
111 $res3 =
dolibarr_set_const($db,
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
GETPOST(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
'alpha'),
'chaine', 0,
'', $conf->entity);
112 $res4 =
dolibarr_set_const($db,
'ADHERENT_BANK_USE',
GETPOST(
'ADHERENT_BANK_USE',
'alpha'),
'chaine', 0,
'', $conf->entity);
113 $res7 =
dolibarr_set_const($db,
'MEMBER_PUBLIC_ENABLED',
GETPOST(
'MEMBER_PUBLIC_ENABLED',
'alpha'),
'chaine', 0,
'', $conf->entity);
114 $res8 =
dolibarr_set_const($db,
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
GETPOST(
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
'alpha'),
'chaine', 0,
'', $conf->entity);
115 $res9 =
dolibarr_set_const($db,
'MEMBER_SUBSCRIPTION_START_AFTER',
GETPOST(
'MEMBER_SUBSCRIPTION_START_AFTER',
'alpha'),
'chaine', 0,
'', $conf->entity);
117 if (isModEnabled(
'facture')) {
118 $res4 =
dolibarr_set_const($db,
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
119 $res5 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
120 if (isModEnabled(
"product") || isModEnabled(
"service")) {
121 $res6 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
124 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0 || $res7 < 0) {
131} elseif ($action ==
'updatememberscards') {
133 $res1 = $res2 = $res3 = $res4 = 0;
135 $res2 =
dolibarr_set_const($db,
'ADHERENT_CARD_HEADER_TEXT',
GETPOST(
'ADHERENT_CARD_HEADER_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
136 $res3 =
dolibarr_set_const($db,
'ADHERENT_CARD_TEXT',
GETPOST(
'ADHERENT_CARD_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
137 $res3 =
dolibarr_set_const($db,
'ADHERENT_CARD_TEXT_RIGHT',
GETPOST(
'ADHERENT_CARD_TEXT_RIGHT',
'alpha'),
'chaine', 0,
'', $conf->entity);
138 $res4 =
dolibarr_set_const($db,
'ADHERENT_CARD_FOOTER_TEXT',
GETPOST(
'ADHERENT_CARD_FOOTER_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
140 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0) {
147} elseif ($action ==
'updatememberstickets') {
150 $res1 =
dolibarr_set_const($db,
'ADHERENT_ETIQUETTE_TYPE',
GETPOST(
'ADHERENT_ETIQUETTE_TYPE'),
'chaine', 0,
'', $conf->entity);
151 $res2 =
dolibarr_set_const($db,
'ADHERENT_ETIQUETTE_TEXT',
GETPOST(
'ADHERENT_ETIQUETTE_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
153 if ($res1 < 0 || $res2 < 0) {
160} elseif ($action ==
'setcodemember') {
161 $result =
dolibarr_set_const($db,
"MEMBER_CODEMEMBER_ADDON", $value,
'chaine', 0,
'', $conf->entity);
165} elseif ($action ==
'update' || $action ==
'add') {
167 $constname =
GETPOST(
'constname',
'alpha');
168 $constvalue = (
GETPOST(
'constvalue_'.$constname) ?
GETPOST(
'constvalue_'.$constname) :
GETPOST(
'constvalue'));
171 if (($constname ==
'ADHERENT_CARD_TYPE' || $constname ==
'ADHERENT_ETIQUETTE_TYPE' || $constname ==
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS') && $constvalue == -1) {
174 if ($constname ==
'ADHERENT_LOGIN_NOT_REQUIRED') {
182 $consttype =
GETPOST(
'consttype',
'alpha');
183 $constnote =
GETPOST(
'constnote');
184 $res =
dolibarr_set_const($db, $constname, $constvalue, $choices[$consttype], 0, $constnote, $conf->entity);
198if ($action ==
'set') {
206if ($action ==
'unset') {
219$form =
new Form($db);
221$help_url =
'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder';
223llxHeader(
'', $langs->trans(
"MembersSetup"), $help_url);
226$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
227print
load_fiche_titre($langs->trans(
"MembersSetup"), $linkback,
'title_setup');
234$dirModMember = array_merge(array(
'/core/modules/member/'), $conf->modules_parts[
'member']);
235foreach ($conf->modules_parts[
'models'] as $mo) {
237 $dirModMember[] = $mo.
'core/modules/member/';
244print
'<div class="div-table-responsive-no-min">';
245print
'<table class="noborder centpercent">'.
"\n";
246print
'<tr class="liste_titre">'.
"\n";
247print
' <td>'.$langs->trans(
"Name").
'</td>';
248print
' <td>'.$langs->trans(
"Description").
'</td>';
249print
' <td>'.$langs->trans(
"Example").
'</td>';
250print
' <td class="center" width="80">'.$langs->trans(
"Status").
'</td>';
251print
' <td class="center" width="60">'.$langs->trans(
"ShortInfo").
'</td>';
254$arrayofmodules = array();
256foreach ($dirModMember as $dirroot) {
259 $handle = @opendir($dir);
260 if (is_resource($handle)) {
262 while (($file = readdir($handle)) !==
false) {
264 if (substr($file, 0, 11) ==
'mod_member_' && substr($file, -3) ==
'php') {
265 $file = substr($file, 0,
dol_strlen($file) - 4);
272 $modCodeMember =
new $file();
274 if ($modCodeMember->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
277 if ($modCodeMember->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
281 $arrayofmodules[$file] = $modCodeMember;
290foreach ($arrayofmodules as $file => $modCodeMember) {
291 print
'<tr class="oddeven">'.
"\n";
292 print
'<td width="140">'.$modCodeMember->name.
'</td>'.
"\n";
293 print
'<td>'.$modCodeMember->info($langs).
'</td>'.
"\n";
294 print
'<td class="nowrap">'.$modCodeMember->getExample($langs).
'</td>'.
"\n";
297 print
'<td class="center">'.
"\n";
298 print
img_picto($langs->trans(
"Activated"),
'switch_on');
301 $disabled = (isModEnabled(
'multicompany') && (is_object($mc) && !empty($mc->sharings[
'referent']) && $mc->sharings[
'referent'] != $conf->entity) ?
true : false);
302 print
'<td class="center">';
304 print
'<a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=setcodemember&token='.newToken().
'&value='.urlencode($file).
'">';
306 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
313 print
'<td class="center">';
314 $s = $modCodeMember->getToolTip($langs,
null, -1);
315 print $form->textwithpicto(
'', $s, 1);
325print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
326print
'<input type="hidden" name="token" value="'.newToken().
'">';
327print
'<input type="hidden" name="action" value="updatemainoptions">';
334print
'<div class="div-table-responsive-no-min">';
335print
'<table class="noborder centpercent">';
336print
'<tr class="liste_titre">';
337print
'<td>'.$langs->trans(
"Description").
'</td>';
338print
'<td>'.$langs->trans(
"Value").
'</td>';
342$startpoint[0] = $langs->trans(
"SubscriptionPayment");
343$startpoint[
"m"] = $langs->trans(
"Month");
344$startpoint[
"Y"] = $langs->trans(
"Year");
345print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
346print $langs->trans(
"MemberSubscriptionStartFirstDayOf");
349print $form->selectarray(
"MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF", $startpoint, $startfirstdayof, 0);
353print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
354print $langs->trans(
"MemberSubscriptionStartAfter");
356print
'<input type="text" class="right width50" id="MEMBER_SUBSCRIPTION_START_AFTER" name="MEMBER_SUBSCRIPTION_START_AFTER" value="'.getDolGlobalString(
'MEMBER_SUBSCRIPTION_START_AFTER').
'">';
360print
'<tr class="oddeven"><td>'.$langs->trans(
"AdherentMailRequired").
'</td><td>';
361print $form->selectyesno(
'ADHERENT_MAIL_REQUIRED',
getDolGlobalInt(
'ADHERENT_MAIL_REQUIRED'), 1);
365print
'<tr class="oddeven"><td>';
366print $form->textwithpicto($langs->trans(
"AdherentLoginRequired"), $langs->trans(
"AdherentLoginRequiredDesc"));
368print $form->selectyesno(
'ADHERENT_LOGIN_NOT_REQUIRED', (
getDolGlobalString(
'ADHERENT_LOGIN_NOT_REQUIRED') ? 0 : 1), 1);
372print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberSendInformationByMailByDefault").
'</td><td>';
373print $form->selectyesno(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
getDolGlobalInt(
'ADHERENT_DEFAULT_SENDINFOBYMAIL', 0), 1);
377print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberCreateAnExternalUserForSubscriptionValidated").
'</td><td>';
378print $form->selectyesno(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
getDolGlobalInt(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN', 0), 1);
382$linkofpubliclist = DOL_MAIN_URL_ROOT.
'/public/members/public_list.php'.((isModEnabled(
'multicompany')) ?
'?entity='.((
int) $conf->entity) :
'');
383print
'<tr class="oddeven"><td>'.$langs->trans(
"Public",
getDolGlobalString(
'MAIN_INFO_SOCIETE_NOM'), $linkofpubliclist).
'</td><td>';
384print $form->selectyesno(
'MEMBER_PUBLIC_ENABLED',
getDolGlobalInt(
'MEMBER_PUBLIC_ENABLED', 0), 1);
395print
'<tr class="oddeven"><td>'.$langs->trans(
"MoreActionsOnSubscription").
'</td>';
396$arraychoices = array(
'0'=>$langs->trans(
"None"));
397if (isModEnabled(
"banque")) {
398 $arraychoices[
'bankdirect'] = $langs->trans(
"MoreActionBankDirect");
400if (isModEnabled(
"banque") && isModEnabled(
"societe") && isModEnabled(
'facture')) {
401 $arraychoices[
'invoiceonly'] = $langs->trans(
"MoreActionInvoiceOnly");
403if (isModEnabled(
"banque") && isModEnabled(
"societe") && isModEnabled(
'facture')) {
404 $arraychoices[
'bankviainvoice'] = $langs->trans(
"MoreActionBankViaInvoice");
407print $form->selectarray(
'ADHERENT_BANK_USE', $arraychoices,
getDolGlobalString(
'ADHERENT_BANK_USE'), 0);
409 print
'<br><div style="padding-top: 5px;"><span class="opacitymedium">'.$langs->trans(
"ABankAccountMustBeDefinedOnPaymentModeSetup").
'</span></div>';
415if (isModEnabled(
'facture')) {
416 print
'<tr class="oddeven"><td>'.$langs->trans(
"VATToUseForSubscriptions").
'</td>';
417 if (isModEnabled(
"banque")) {
419 print $form->selectarray(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS', array(
'0'=>$langs->trans(
"NoVatOnSubscription"),
'defaultforfoundationcountry'=>$langs->trans(
"Default")),
getDolGlobalString(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'0'), 0);
422 print
'<td class="right">';
423 print $langs->trans(
"WarningModuleNotActive", $langs->transnoentities(
"Module85Name"));
428 if (isModEnabled(
"product") || isModEnabled(
"service")) {
429 print
'<tr class="oddeven"><td>'.$langs->trans(
"ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").
'</td>';
432 print
img_picto(
'',
'product',
'class="pictofixedwidth"');
433 $form->select_produits($selected,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'', 0);
442print
'<div class="center">';
443print
'<input type="submit" class="button" value="'.$langs->trans(
"Update").
'" name="Button">';
454$dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
458$sql =
"SELECT nom as name";
459$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
460$sql .=
" WHERE type = '".$db->escape($type).
"'";
461$sql .=
" AND entity = ".$conf->entity;
462$resql = $db->query($sql);
465 $num_rows = $db->num_rows($resql);
466 while ($i < $num_rows) {
467 $obj = $db->fetch_object($resql);
468 array_push($def, $obj->name);
478print
'<div class="div-table-responsive-no-min">';
479print
'<table class="noborder centpercent">';
480print
'<tr class="liste_titre">';
481print
'<td>'.$langs->trans(
"Name").
'</td>';
482print
'<td>'.$langs->trans(
"Description").
'</td>';
483print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
484print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
485print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
486print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
491foreach ($dirmodels as $reldir) {
492 foreach (array(
'',
'/doc') as $valdir) {
495 $handle = opendir($dir);
496 if (is_resource($handle)) {
497 while (($file = readdir($handle)) !==
false) {
502 foreach ($filelist as $file) {
503 if (preg_match(
'/\.class\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
504 if (file_exists($dir.
'/'.$file)) {
505 $name = substr($file, 4,
dol_strlen($file) - 14);
506 $classname = substr($file, 0,
dol_strlen($file) - 10);
508 require_once $dir.
'/'.$file;
509 $module =
new $classname($db);
511 $modulequalified = 1;
512 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
513 $modulequalified = 0;
515 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
516 $modulequalified = 0;
519 if ($modulequalified) {
520 print
'<tr class="oddeven"><td width="100">';
521 print(empty($module->name) ? $name : $module->
name);
523 if (method_exists($module,
'info')) {
524 print $module->info($langs);
526 print $module->description;
531 if (in_array($name, $def)) {
532 print
'<td class="center">'.
"\n";
533 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del_default&token='.newToken().
'&value='.$name.
'">';
534 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
538 print
'<td class="center">'.
"\n";
539 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>';
544 print
'<td class="center">';
546 print
img_picto($langs->trans(
"Default"),
'on');
548 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>';
553 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
554 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
555 if ($module->type ==
'pdf') {
556 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
558 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
559 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn(!empty($module->option_logo) ? $module->option_logo : 0, 1, 1);
560 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn(!empty($module->option_multilang) ? $module->option_multilang : 0, 1, 1);
563 print
'<td class="center">';
564 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
568 print
'<td class="center">';
569 if ($module->type ==
'pdf') {
570 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'contract').
'</a>';
572 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
594print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
595print
'<input type="hidden" name="token" value="'.newToken().
'">';
596print
'<input type="hidden" name="action" value="updatememberscards">';
600$helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
601$helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
602$helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
603$helptext .=
'__YEAR__, __MONTH__, __DAY__';
605print
'<div class="div-table-responsive-no-min">';
606print
'<table class="noborder centpercent">';
607print
'<tr class="liste_titre">';
608print
'<td>'.$langs->trans(
"Description").
'</td>';
609print
'<td>'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
613print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TYPE").
'</td><td>';
615require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
616$arrayoflabels = array();
617foreach (array_keys($_Avery_Labels) as $codecards) {
618 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
625print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_HEADER_TEXT").
'</td><td>';
626print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_HEADER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_HEADER_TEXT')).
'">';
630print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT").
'</td><td>';
631print
'<textarea class="flat" name="ADHERENT_CARD_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
637print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT_RIGHT").
'</td><td>';
638print
'<textarea class="flat" name="ADHERENT_CARD_TEXT_RIGHT" cols="50" rows="5" wrap="soft">'.
"\n";
644print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_FOOTER_TEXT").
'</td><td>';
645print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_FOOTER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_FOOTER_TEXT')).
'">';
651print
'<div class="center">';
652print
'<input type="submit" class="button" value="'.$langs->trans(
"Update").
'" name="Button">';
661print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
662print
'<input type="hidden" name="token" value="'.newToken().
'">';
663print
'<input type="hidden" name="action" value="updatememberstickets">';
667$helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
668$helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
669$helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
670$helptext .=
'__YEAR__, __MONTH__, __DAY__';
672print
'<div class="div-table-responsive-no-min">';
673print
'<table class="noborder centpercent">';
674print
'<tr class="liste_titre">';
675print
'<td>'.$langs->trans(
"Description").
'</td>';
676print
'<td>'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
680print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TYPE").
'</td><td>';
682require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
683$arrayoflabels = array();
684foreach (array_keys($_Avery_Labels) as $codecards) {
685 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
687print $form->selectarray(
'ADHERENT_ETIQUETTE_TYPE', $arrayoflabels,
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') ?
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') :
'CARD', 1, 0, 0);
692print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TEXT").
'</td><td>';
693print
'<textarea class="flat" name="ADHERENT_ETIQUETTE_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
701print
'<div class="center">';
702print
'<input type="submit" class="button" 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.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_strlen($string, $stringencoding='UTF-8')
Make a strlen call.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
dol_sort_array(&$array, $index, $order='asc', $natsort=0, $case_sensitive=0, $keepindex=0)
Advanced sort array by second index function, which produces ascending (default) or descending output...
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_buildpath($path, $type=0, $returnemptyifnotfound=0)
Return path of url or filesystem.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
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 informations.
$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.