34 require
'../../main.inc.php';
35 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
36 require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
39 $langs->loadLangs(array(
"admin",
"members"));
46 $choices = array(
'yesno',
'texte',
'chaine');
48 $value =
GETPOST(
'value',
'alpha');
49 $label =
GETPOST(
'label',
'alpha');
50 $scandir =
GETPOST(
'scandir',
'alpha');
53 $action =
GETPOST(
'action',
'aZ09');
60 include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
62 if ($action ==
'set_default') {
65 } elseif ($action ==
'del_default') {
73 } elseif ($action ==
'setdoc') {
75 if (
dolibarr_set_const($db,
"MEMBER_ADDON_PDF_ODT", $value,
'chaine', 0,
'', $conf->entity)) {
78 $conf->global->MEMBER_ADDON_PDF_ODT = $value;
87 } elseif (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
90 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
95 } elseif (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
98 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
103 } elseif ($action ==
'updatemainoptions') {
105 $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = $res7 = 0;
106 $res1 =
dolibarr_set_const($db,
'ADHERENT_LOGIN_NOT_REQUIRED',
GETPOST(
'ADHERENT_LOGIN_NOT_REQUIRED',
'alpha') ? 0 : 1,
'chaine', 0,
'', $conf->entity);
107 $res2 =
dolibarr_set_const($db,
'ADHERENT_MAIL_REQUIRED',
GETPOST(
'ADHERENT_MAIL_REQUIRED',
'alpha'),
'chaine', 0,
'', $conf->entity);
108 $res3 =
dolibarr_set_const($db,
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
GETPOST(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
'alpha'),
'chaine', 0,
'', $conf->entity);
109 $res3 =
dolibarr_set_const($db,
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
GETPOST(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
'alpha'),
'chaine', 0,
'', $conf->entity);
110 $res4 =
dolibarr_set_const($db,
'ADHERENT_BANK_USE',
GETPOST(
'ADHERENT_BANK_USE',
'alpha'),
'chaine', 0,
'', $conf->entity);
111 $res7 =
dolibarr_set_const($db,
'MEMBER_PUBLIC_ENABLED',
GETPOST(
'MEMBER_PUBLIC_ENABLED',
'alpha'),
'chaine', 0,
'', $conf->entity);
114 $res4 =
dolibarr_set_const($db,
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
115 $res5 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
117 $res6 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'', $conf->entity);
120 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0 || $res7 < 0) {
127 } elseif ($action ==
'updatememberscards') {
129 $res1 = $res2 = $res3 = $res4 = 0;
131 $res2 =
dolibarr_set_const($db,
'ADHERENT_CARD_HEADER_TEXT',
GETPOST(
'ADHERENT_CARD_HEADER_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
132 $res3 =
dolibarr_set_const($db,
'ADHERENT_CARD_TEXT',
GETPOST(
'ADHERENT_CARD_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
133 $res3 =
dolibarr_set_const($db,
'ADHERENT_CARD_TEXT_RIGHT',
GETPOST(
'ADHERENT_CARD_TEXT_RIGHT',
'alpha'),
'chaine', 0,
'', $conf->entity);
134 $res4 =
dolibarr_set_const($db,
'ADHERENT_CARD_FOOTER_TEXT',
GETPOST(
'ADHERENT_CARD_FOOTER_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
136 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0) {
143 } elseif ($action ==
'updatememberstickets') {
146 $res1 =
dolibarr_set_const($db,
'ADHERENT_ETIQUETTE_TYPE',
GETPOST(
'ADHERENT_ETIQUETTE_TYPE'),
'chaine', 0,
'', $conf->entity);
147 $res2 =
dolibarr_set_const($db,
'ADHERENT_ETIQUETTE_TEXT',
GETPOST(
'ADHERENT_ETIQUETTE_TEXT',
'alpha'),
'chaine', 0,
'', $conf->entity);
149 if ($res1 < 0 || $res2 < 0) {
156 } elseif ($action ==
'setcodemember') {
157 $result =
dolibarr_set_const($db,
"MEMBER_CODEMEMBER_ADDON", $value,
'chaine', 0,
'', $conf->entity);
161 } elseif ($action ==
'update' || $action ==
'add') {
163 $constname =
GETPOST(
'constname',
'alpha');
164 $constvalue = (
GETPOST(
'constvalue_'.$constname) ?
GETPOST(
'constvalue_'.$constname) :
GETPOST(
'constvalue'));
167 if (($constname ==
'ADHERENT_CARD_TYPE' || $constname ==
'ADHERENT_ETIQUETTE_TYPE' || $constname ==
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS') && $constvalue == -1) {
170 if ($constname ==
'ADHERENT_LOGIN_NOT_REQUIRED') {
178 $consttype =
GETPOST(
'consttype',
'alpha');
179 $constnote =
GETPOST(
'constnote');
180 $res =
dolibarr_set_const($db, $constname, $constvalue, $choices[$consttype], 0, $constnote, $conf->entity);
194 if ($action ==
'set') {
202 if ($action ==
'unset') {
217 $help_url =
'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder';
222 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
223 print
load_fiche_titre($langs->trans(
"MembersSetup"), $linkback,
'title_setup');
230 $dirModMember = array_merge(array(
'/core/modules/member/'), $conf->modules_parts[
'member']);
231 foreach ($conf->modules_parts[
'models'] as $mo) {
233 $dirModMember[] = $mo.
'core/modules/member/';
240 print
'<div class="div-table-responsive-no-min">';
241 print
'<table class="noborder centpercent">'.
"\n";
242 print
'<tr class="liste_titre">'.
"\n";
243 print
' <td>'.$langs->trans(
"Name").
'</td>';
244 print
' <td>'.$langs->trans(
"Description").
'</td>';
245 print
' <td>'.$langs->trans(
"Example").
'</td>';
246 print
' <td class="center" width="80">'.$langs->trans(
"Status").
'</td>';
247 print
' <td class="center" width="60">'.$langs->trans(
"ShortInfo").
'</td>';
250 $arrayofmodules = array();
252 foreach ($dirModMember as $dirroot) {
255 $handle = @opendir($dir);
256 if (is_resource($handle)) {
258 while (($file = readdir($handle)) !==
false) {
260 if (substr($file, 0, 11) ==
'mod_member_' && substr($file, -3) ==
'php') {
261 $file = substr($file, 0,
dol_strlen($file) - 4);
268 $modCodeMember =
new $file;
270 if ($modCodeMember->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
273 if ($modCodeMember->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
277 $arrayofmodules[$file] = $modCodeMember;
286 foreach ($arrayofmodules as $file => $modCodeMember) {
287 print
'<tr class="oddeven">'.
"\n";
288 print
'<td width="140">'.$modCodeMember->name.
'</td>'.
"\n";
289 print
'<td>'.$modCodeMember->info($langs).
'</td>'.
"\n";
290 print
'<td class="nowrap">'.$modCodeMember->getExample($langs).
'</td>'.
"\n";
293 print
'<td class="center">'.
"\n";
294 print
img_picto($langs->trans(
"Activated"),
'switch_on');
297 $disabled = (
isModEnabled(
'multicompany') && (is_object($mc) && !empty($mc->sharings[
'referent']) && $mc->sharings[
'referent'] != $conf->entity) ?
true :
false);
298 print
'<td class="center">';
300 print
'<a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=setcodemember&token='.
newToken().
'&value='.urlencode($file).
'">';
302 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
309 print
'<td class="center">';
310 $s = $modCodeMember->getToolTip($langs,
null, -1);
311 print
$form->textwithpicto(
'', $s, 1);
321 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
322 print
'<input type="hidden" name="token" value="'.newToken().
'">';
323 print
'<input type="hidden" name="action" value="updatemainoptions">';
330 print
'<div class="div-table-responsive-no-min">';
331 print
'<table class="noborder centpercent">';
332 print
'<tr class="liste_titre">';
333 print
'<td>'.$langs->trans(
"Description").
'</td>';
334 print
'<td>'.$langs->trans(
"Value").
'</td>';
338 print
'<tr class="oddeven"><td>'.$langs->trans(
"AdherentMailRequired").
'</td><td>';
339 print
$form->selectyesno(
'ADHERENT_MAIL_REQUIRED', (!empty($conf->global->ADHERENT_MAIL_REQUIRED) ? $conf->global->ADHERENT_MAIL_REQUIRED : 0), 1);
340 print
"</td></tr>\n";
343 print
'<tr class="oddeven"><td>'.$langs->trans(
"AdherentLoginRequired").
'</td><td>';
344 print
$form->selectyesno(
'ADHERENT_LOGIN_NOT_REQUIRED', (!empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED) ? 0 : 1), 1);
345 print
"</td></tr>\n";
348 print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberSendInformationByMailByDefault").
'</td><td>';
349 print
$form->selectyesno(
'ADHERENT_DEFAULT_SENDINFOBYMAIL', (!empty($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL) ? $conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL : 0), 1);
350 print
"</td></tr>\n";
353 print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberCreateAnExternalUserForSubscriptionValidated").
'</td><td>';
354 print
$form->selectyesno(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN', (!empty($conf->global->ADHERENT_CREATE_EXTERNAL_USER_LOGIN) ? $conf->global->ADHERENT_CREATE_EXTERNAL_USER_LOGIN : 0), 1);
355 print
"</td></tr>\n";
358 $linkofpubliclist = DOL_MAIN_URL_ROOT.
'/public/members/public_list.php'.((
isModEnabled(
'multicompany')) ?
'?entity='.$conf->entity :
'');
359 print
'<tr class="oddeven"><td>'.$langs->trans(
"Public",
getDolGlobalString(
'MAIN_INFO_SOCIETE_NOM'), $linkofpubliclist).
'</td><td>';
360 print
$form->selectyesno(
'MEMBER_PUBLIC_ENABLED', (!empty($conf->global->MEMBER_PUBLIC_ENABLED) ? $conf->global->MEMBER_PUBLIC_ENABLED : 0), 1);
361 print
"</td></tr>\n";
371 print
'<tr class="oddeven"><td>'.$langs->trans(
"MoreActionsOnSubscription").
'</td>';
372 $arraychoices = array(
'0'=>$langs->trans(
"None"));
374 $arraychoices[
'bankdirect'] = $langs->trans(
"MoreActionBankDirect");
377 $arraychoices[
'invoiceonly'] = $langs->trans(
"MoreActionInvoiceOnly");
380 $arraychoices[
'bankviainvoice'] = $langs->trans(
"MoreActionBankViaInvoice");
385 print
'<br><div style="padding-top: 5px;"><span class="opacitymedium">'.$langs->trans(
"ABankAccountMustBeDefinedOnPaymentModeSetup").
'</span></div>';
392 print
'<tr class="oddeven"><td>'.$langs->trans(
"VATToUseForSubscriptions").
'</td>';
395 print
$form->selectarray(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS', array(
'0'=>$langs->trans(
"NoVatOnSubscription"),
'defaultforfoundationcountry'=>$langs->trans(
"Default")), (empty($conf->global->ADHERENT_VAT_FOR_SUBSCRIPTIONS) ?
'0' : $conf->global->ADHERENT_VAT_FOR_SUBSCRIPTIONS), 0);
398 print
'<td class="right">';
399 print $langs->trans(
"WarningModuleNotActive", $langs->transnoentities(
"Module85Name"));
405 print
'<tr class="oddeven"><td>'.$langs->trans(
"ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").
'</td>';
407 $selected = (empty($conf->global->ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS) ?
'' : $conf->global->ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS);
408 print
img_picto(
'',
'product',
'class="pictofixedwidth"');
409 $form->select_produits($selected,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'', 0);
418 print
'<div class="center">';
419 print
'<input type="submit" class="button" value="'.$langs->trans(
"Update").
'" name="Button">';
430 $dirmodels = array_merge(array(
'/'), (array) $conf->modules_parts[
'models']);
434 $sql =
"SELECT nom as name";
435 $sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
436 $sql .=
" WHERE type = '".$db->escape($type).
"'";
437 $sql .=
" AND entity = ".$conf->entity;
438 $resql = $db->query(
$sql);
441 $num_rows = $db->num_rows($resql);
442 while ($i < $num_rows) {
443 $obj = $db->fetch_object($resql);
444 array_push($def, $obj->name);
454 print
'<div class="div-table-responsive-no-min">';
455 print
'<table class="noborder centpercent">';
456 print
'<tr class="liste_titre">';
457 print
'<td>'.$langs->trans(
"Name").
'</td>';
458 print
'<td>'.$langs->trans(
"Description").
'</td>';
459 print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
460 print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
461 print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
462 print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
467 foreach ($dirmodels as $reldir) {
468 foreach (array(
'',
'/doc') as $valdir) {
471 $handle = opendir($dir);
472 if (is_resource($handle)) {
473 while (($file = readdir($handle)) !==
false) {
478 foreach ($filelist as $file) {
479 if (preg_match(
'/\.class\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
480 if (file_exists($dir.
'/'.$file)) {
481 $name = substr($file, 4,
dol_strlen($file) - 14);
482 $classname = substr($file, 0,
dol_strlen($file) - 10);
484 require_once $dir.
'/'.$file;
485 $module =
new $classname($db);
487 $modulequalified = 1;
488 if ($module->version ==
'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) {
489 $modulequalified = 0;
491 if ($module->version ==
'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) {
492 $modulequalified = 0;
495 if ($modulequalified) {
496 print
'<tr class="oddeven"><td width="100">';
497 print (empty($module->name) ? $name : $module->name);
499 if (method_exists($module,
'info')) {
500 print $module->info($langs);
502 print $module->description;
507 if (in_array($name, $def)) {
508 print
'<td class="center">'.
"\n";
509 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del_default&token='.
newToken().
'&value='.$name.
'">';
510 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
514 print
'<td class="center">'.
"\n";
515 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>';
520 print
'<td class="center">';
522 print
img_picto($langs->trans(
"Default"),
'on');
524 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>';
529 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
530 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
531 if ($module->type ==
'pdf') {
532 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
534 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
535 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn(!empty($module->option_logo) ? $module->option_logo : 0, 1, 1);
536 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn(!empty($module->option_multilang) ? $module->option_multilang : 0, 1, 1);
539 print
'<td class="center">';
540 print
$form->textwithpicto(
'', $htmltooltip, 1, 0);
544 print
'<td class="center">';
545 if ($module->type ==
'pdf') {
546 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'contract').
'</a>';
548 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
570 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
571 print
'<input type="hidden" name="token" value="'.newToken().
'">';
572 print
'<input type="hidden" name="action" value="updatememberscards">';
576 $helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
577 $helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
578 $helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
579 $helptext .=
'__YEAR__, __MONTH__, __DAY__';
581 print
'<div class="div-table-responsive-no-min">';
582 print
'<table class="noborder centpercent">';
583 print
'<tr class="liste_titre">';
584 print
'<td>'.$langs->trans(
"Description").
'</td>';
585 print
'<td>'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
589 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TYPE").
'</td><td>';
591 require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
592 $arrayoflabels = array();
593 foreach (array_keys($_Avery_Labels) as $codecards) {
594 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
598 print
"</td></tr>\n";
601 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_HEADER_TEXT").
'</td><td>';
602 print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_HEADER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_HEADER_TEXT')).
'">';
603 print
"</td></tr>\n";
606 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT").
'</td><td>';
607 print
'<textarea class="flat" name="ADHERENT_CARD_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
610 print
"</td></tr>\n";
613 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT_RIGHT").
'</td><td>';
614 print
'<textarea class="flat" name="ADHERENT_CARD_TEXT_RIGHT" cols="50" rows="5" wrap="soft">'.
"\n";
617 print
"</td></tr>\n";
620 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_FOOTER_TEXT").
'</td><td>';
621 print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_FOOTER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_FOOTER_TEXT')).
'">';
622 print
"</td></tr>\n";
627 print
'<div class="center">';
628 print
'<input type="submit" class="button" value="'.$langs->trans(
"Update").
'" name="Button">';
637 print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
638 print
'<input type="hidden" name="token" value="'.newToken().
'">';
639 print
'<input type="hidden" name="action" value="updatememberstickets">';
643 $helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
644 $helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
645 $helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
646 $helptext .=
'__YEAR__, __MONTH__, __DAY__';
648 print
'<div class="div-table-responsive-no-min">';
649 print
'<table class="noborder centpercent">';
650 print
'<tr class="liste_titre">';
651 print
'<td>'.$langs->trans(
"Description").
'</td>';
652 print
'<td>'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
656 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TYPE").
'</td><td>';
658 require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
659 $arrayoflabels = array();
660 foreach (array_keys($_Avery_Labels) as $codecards) {
661 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
665 print
"</td></tr>\n";
668 print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TEXT").
'</td><td>';
669 print
'<textarea class="flat" name="ADHERENT_ETIQUETTE_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
672 print
"</td></tr>\n";
677 print
'<div class="center">';
678 print
'<input type="submit" class="button" value="'.$langs->trans(
"Update").
'" name="Button">';