37require
'../../main.inc.php';
38require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
39require_once DOL_DOCUMENT_ROOT.
'/core/lib/member.lib.php';
52$langs->loadLangs(array(
"admin",
"members"));
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';
81if ($action ==
'set_default') {
84} elseif ($action ==
'del_default') {
92} elseif ($action ==
'setdoc') {
97 $conf->global->MEMBER_ADDON_PDF_ODT = $value;
106} elseif (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
109 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
114} elseif (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
117 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
122} elseif ($action ==
'updatemainoptions') {
124 $res1 = $res2 = $res3 = $res4 = $res5 = $res6 = $res7 = $res8 = $res9 = 0;
125 $res1 =
dolibarr_set_const($db,
'ADHERENT_LOGIN_NOT_REQUIRED',
GETPOST(
'ADHERENT_LOGIN_NOT_REQUIRED',
'alpha') ? 0 : 1,
'chaine', 0,
'',
$conf->entity);
127 $res3 =
dolibarr_set_const($db,
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
GETPOST(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
'alpha'),
'chaine', 0,
'',
$conf->entity);
128 $res3 =
dolibarr_set_const($db,
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
GETPOST(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
'alpha'),
'chaine', 0,
'',
$conf->entity);
130 if (GETPOSTISSET(
'MEMBER_PUBLIC_ENABLED')) {
133 $res8 =
dolibarr_set_const($db,
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
GETPOST(
'MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF',
'alpha'),
'chaine', 0,
'',
$conf->entity);
134 $res9 =
dolibarr_set_const($db,
'MEMBER_SUBSCRIPTION_START_AFTER',
GETPOST(
'MEMBER_SUBSCRIPTION_START_AFTER',
'alpha'),
'chaine', 0,
'',
$conf->entity);
136 if (isModEnabled(
'invoice')) {
137 $res4 =
dolibarr_set_const($db,
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'',
$conf->entity);
138 $res5 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'',
$conf->entity);
139 if (isModEnabled(
"product") || isModEnabled(
"service")) {
140 $res6 =
dolibarr_set_const($db,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
GETPOST(
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'alpha'),
'chaine', 0,
'',
$conf->entity);
143 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0 || $res5 < 0 || $res6 < 0 || $res7 < 0 || $res8 < 0 || $res9 < 0) {
150} elseif ($action ==
'updatememberscards') {
152 $res1 = $res2 = $res3 = $res4 = 0;
159 if ($res1 < 0 || $res2 < 0 || $res3 < 0 || $res4 < 0) {
166} elseif ($action ==
'updatememberstickets') {
172 if ($res1 < 0 || $res2 < 0) {
179} elseif ($action ==
'setcodemember') {
184} elseif ($action ==
'update' || $action ==
'add') {
186 $constname =
GETPOST(
'constname',
'alpha');
187 $constvalue = (
GETPOST(
'constvalue_'.$constname) ?
GETPOST(
'constvalue_'.$constname) :
GETPOST(
'constvalue'));
190 if (($constname ==
'ADHERENT_CARD_TYPE' || $constname ==
'ADHERENT_ETIQUETTE_TYPE' || $constname ==
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS') && $constvalue == -1) {
193 if ($constname ==
'ADHERENT_LOGIN_NOT_REQUIRED') {
202 $constnote =
GETPOST(
'constnote');
217if ($action ==
'set') {
225if ($action ==
'unset') {
238$form =
new Form($db);
240$title = $langs->trans(
"MembersSetup");
241$help_url =
'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros|DE:Modul_Mitglieder';
243llxHeader(
'', $title, $help_url,
'', 0, 0,
'',
'',
'',
'mod-member page-admin');
246$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
247print
load_fiche_titre($langs->trans(
"MembersSetup"), $linkback,
'title_setup');
254$dirModMember = array_merge(array(
'/core/modules/member/'),
$conf->modules_parts[
'member']);
255foreach (
$conf->modules_parts[
'models'] as $mo) {
257 $dirModMember[] = $mo.
'core/modules/member/';
264print
'<div class="div-table-responsive-no-min">';
265print
'<table class="noborder centpercent">'.
"\n";
266print
'<tr class="liste_titre">'.
"\n";
267print
' <td>'.$langs->trans(
"Name").
'</td>';
268print
' <td>'.$langs->trans(
"Description").
'</td>';
269print
' <td>'.$langs->trans(
"Example").
'</td>';
270print
' <td class="center" width="80">'.$langs->trans(
"Status").
'</td>';
271print
' <td class="center" width="60">'.$langs->trans(
"ShortInfo").
'</td>';
274$arrayofmodules = array();
276foreach ($dirModMember as $dirroot) {
279 $handle = @opendir($dir);
280 if (is_resource($handle)) {
282 while (($file = readdir($handle)) !==
false) {
284 if (substr($file, 0, 11) ==
'mod_member_' && substr($file, -3) ==
'php') {
285 $file = substr($file, 0,
dol_strlen($file) - 4);
292 $modCodeMember =
new $file();
294 if ($modCodeMember->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
297 if ($modCodeMember->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
301 $arrayofmodules[$file] = $modCodeMember;
309'@phan-var-force array<string,ModeleNumRefMembers> $arrayofmodules';
311foreach ($arrayofmodules as $file => $modCodeMember) {
312 print
'<tr class="oddeven">'.
"\n";
313 print
'<td width="140">'.$modCodeMember->name.
'</td>'.
"\n";
314 print
'<td>'.$modCodeMember->info($langs).
'</td>'.
"\n";
315 print
'<td class="nowrap">'.$modCodeMember->getExample().
'</td>'.
"\n";
318 print
'<td class="center">'.
"\n";
319 print
img_picto($langs->trans(
"Activated"),
'switch_on');
322 $disabled = isModEnabled(
'multicompany') && ((is_object($mc) && !empty($mc->sharings[
'referent']) && $mc->sharings[
'referent'] !=
$conf->entity));
323 print
'<td class="center">';
325 print
'<a class="reposition" href="'.$_SERVER[
'PHP_SELF'].
'?action=setcodemember&token='.
newToken().
'&value='.urlencode($file).
'">';
327 print
img_picto($langs->trans(
"Disabled"),
'switch_off');
334 print
'<td class="center">';
335 $s = $modCodeMember->getToolTip($langs,
null);
336 print $form->textwithpicto(
'', $s, 1);
352$dirmodels = array_merge(array(
'/'), (array)
$conf->modules_parts[
'models']);
356$sql =
"SELECT nom as name";
357$sql .=
" FROM ".MAIN_DB_PREFIX.
"document_model";
358$sql .=
" WHERE type = '".$db->escape($type).
"'";
359$sql .=
" AND entity = ".$conf->entity;
360$resql = $db->query($sql);
363 $num_rows = $db->num_rows($resql);
364 while ($i < $num_rows) {
365 $obj = $db->fetch_object($resql);
366 array_push($def, $obj->name);
376print
'<div class="div-table-responsive-no-min">';
377print
'<table class="noborder centpercent">';
378print
'<tr class="liste_titre">';
379print
'<td>'.$langs->trans(
"Name").
'</td>';
380print
'<td>'.$langs->trans(
"Description").
'</td>';
381print
'<td align="center" width="60">'.$langs->trans(
"Status").
"</td>\n";
382print
'<td align="center" width="60">'.$langs->trans(
"Default").
"</td>\n";
383print
'<td align="center" width="80">'.$langs->trans(
"ShortInfo").
'</td>';
384print
'<td align="center" width="80">'.$langs->trans(
"Preview").
'</td>';
389foreach ($dirmodels as $reldir) {
390 foreach (array(
'',
'/doc') as $valdir) {
393 $handle = opendir($dir);
394 if (is_resource($handle)) {
396 while (($file = readdir($handle)) !==
false) {
401 foreach ($filelist as $file) {
402 if (preg_match(
'/\.class\.php$/i', $file) && preg_match(
'/^(pdf_|doc_)/', $file)) {
403 if (file_exists($dir.
'/'.$file)) {
404 $name = substr($file, 4,
dol_strlen($file) - 14);
405 $classname = substr($file, 0,
dol_strlen($file) - 10);
407 require_once $dir.
'/'.$file;
408 $module =
new $classname($db);
409 '@phan-var-force doc_generic_member_odt|pdf_standard_member $module';
411 $modulequalified = 1;
412 if ($module->version ==
'development' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 2) {
413 $modulequalified = 0;
415 if ($module->version ==
'experimental' &&
getDolGlobalInt(
'MAIN_FEATURES_LEVEL') < 1) {
416 $modulequalified = 0;
419 if ($modulequalified) {
420 print
'<tr class="oddeven"><td width="100">';
421 print(empty($module->name) ? $name : $module->
name);
423 if (method_exists($module,
'info')) {
424 print $module->info($langs);
426 print $module->description;
431 if (in_array($name, $def)) {
432 print
'<td class="center">'.
"\n";
433 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=del_default&token='.
newToken().
'&value='.$name.
'">';
434 print
img_picto($langs->trans(
"Enabled"),
'switch_on');
438 print
'<td class="center">'.
"\n";
439 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>';
444 print
'<td class="center">';
446 print
img_picto($langs->trans(
"Default"),
'on');
448 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>';
453 $htmltooltip =
''.$langs->trans(
"Name").
': '.$module->name;
454 $htmltooltip .=
'<br>'.$langs->trans(
"Type").
': '.($module->type ? $module->type : $langs->trans(
"Unknown"));
455 if ($module->type ==
'pdf') {
456 $htmltooltip .=
'<br>'.$langs->trans(
"Width").
'/'.$langs->trans(
"Height").
': '.$module->page_largeur.
'/'.$module->page_hauteur;
458 $htmltooltip .=
'<br><br><u>'.$langs->trans(
"FeaturesSupported").
':</u>';
459 $htmltooltip .=
'<br>'.$langs->trans(
"Logo").
': '.
yn(!empty($module->option_logo) ? $module->option_logo : 0, 1, 1);
460 $htmltooltip .=
'<br>'.$langs->trans(
"MultiLanguage").
': '.
yn(!empty($module->option_multilang) ? $module->option_multilang : 0, 1, 1);
463 print
'<td class="center">';
464 print $form->textwithpicto(
'', $htmltooltip, 1, 0);
468 print
'<td class="center">';
469 if ($module->type ==
'pdf') {
470 print
'<a href="'.$_SERVER[
"PHP_SELF"].
'?action=specimen&module='.$name.
'">'.
img_object($langs->trans(
"Preview"),
'contract').
'</a>';
472 print
img_object($langs->trans(
"PreviewNotAvailable"),
'generic');
493print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
494print
'<input type="hidden" name="token" value="'.newToken().
'">';
495print
'<input type="hidden" name="action" value="updatemainoptions">';
496print
'<input type="hidden" name="page_y" value="">';
503print
'<div class="div-table-responsive-no-min">';
504print
'<table class="noborder centpercent">';
505print
'<tr class="liste_titre">';
506print
'<td>'.$langs->trans(
"Description").
'</td>';
507print
'<td class="soixantepercent">'.$langs->trans(
"Value").
'</td>';
511print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
512print $form->textwithpicto($langs->trans(
"MemberSubscriptionStartAfter"), $langs->trans(
"MemberSubscriptionStartAfterDesc").
'<br>'.$langs->trans(
"MemberSubscriptionStartAfterDesc2"));
514print
'<input type="text" class="right width50" id="MEMBER_SUBSCRIPTION_START_AFTER" name="MEMBER_SUBSCRIPTION_START_AFTER" value="'.getDolGlobalString(
'MEMBER_SUBSCRIPTION_START_AFTER').
'">';
518$startpoint = array();
519$startpoint[0] = $langs->trans(
"NoCorrection");
520$startpoint[
"m"] = $langs->trans(
"Month");
521$startpoint[
"3m"] = $langs->trans(
"Quarter");
522$startpoint[
"Y"] = $langs->trans(
"Year");
523print
'<tr class="oddeven drag" id="startfirstdayof"><td>';
524print $langs->trans(
"MemberSubscriptionStartFirstDayOf");
527print $form->selectarray(
"MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF", $startpoint, $startfirstdayof, 0);
531print
'<tr class="oddeven"><td>'.$langs->trans(
"AdherentMailRequired").
'</td><td>';
532print $form->selectyesno(
'ADHERENT_MAIL_REQUIRED',
getDolGlobalInt(
'ADHERENT_MAIL_REQUIRED'), 1,
false, 0, 1);
536print
'<tr class="oddeven"><td>';
537print $form->textwithpicto($langs->trans(
"AdherentLoginRequired"), $langs->trans(
"AdherentLoginRequiredDesc"));
539print $form->selectyesno(
'ADHERENT_LOGIN_NOT_REQUIRED', (
getDolGlobalString(
'ADHERENT_LOGIN_NOT_REQUIRED') ? 0 : 1), 1, false, 0, 1);
544print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberCreateAnExternalUserForSubscriptionValidated").
'</td><td>';
545print $form->selectyesno(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN',
getDolGlobalInt(
'ADHERENT_CREATE_EXTERNAL_USER_LOGIN'), 1,
false, 0, 1);
549print
'<tr class="oddeven"><td>'.$langs->trans(
"MemberSendInformationByMailByDefault").
'</td><td>';
550print $form->selectyesno(
'ADHERENT_DEFAULT_SENDINFOBYMAIL',
getDolGlobalInt(
'ADHERENT_DEFAULT_SENDINFOBYMAIL'), 1,
false, 0, 1);
569print
'<tr class="oddeven"><td>'.$langs->trans(
"MoreActionsOnSubscription").
'</td>';
570$arraychoices = array(
'0' => $langs->trans(
"None"));
571if (isModEnabled(
"bank")) {
572 $arraychoices[
'bankdirect'] = $langs->trans(
"MoreActionBankDirect");
574if (isModEnabled(
"bank") && isModEnabled(
"societe") && isModEnabled(
'invoice')) {
575 $arraychoices[
'invoiceonly'] = $langs->trans(
"MoreActionInvoiceOnly");
577if (isModEnabled(
"bank") && isModEnabled(
"societe") && isModEnabled(
'invoice')) {
578 $arraychoices[
'bankviainvoice'] = $langs->trans(
"MoreActionBankViaInvoice");
581print $form->selectarray(
'ADHERENT_BANK_USE', $arraychoices,
getDolGlobalString(
'ADHERENT_BANK_USE'), 0);
583 print
'<br><div style="padding-top: 5px;"><span class="opacitymedium">'.$langs->trans(
"ABankAccountMustBeDefinedOnPaymentModeSetup").
'</span></div>';
589if (isModEnabled(
'invoice')) {
590 print
'<tr class="oddeven"><td>'.$langs->trans(
"VATToUseForSubscriptions").
'</td>';
591 if (isModEnabled(
"bank")) {
593 print $form->selectarray(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS', array(
'0' => $langs->trans(
"NoVatOnSubscription"),
'defaultforfoundationcountry' => $langs->trans(
"Default")),
getDolGlobalString(
'ADHERENT_VAT_FOR_SUBSCRIPTIONS',
'0'), 0);
596 print
'<td class="right">';
597 print $langs->trans(
"WarningModuleNotActive", $langs->transnoentities(
"Module85Name"));
602 if (isModEnabled(
"product") || isModEnabled(
"service")) {
603 print
'<tr class="oddeven"><td>'.$langs->trans(
"ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").
'</td>';
606 print
img_picto(
'',
'product',
'class="pictofixedwidth"');
607 $form->select_produits($selected,
'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS',
'', 0, 0, 1, 2,
'', 0, [], 0, 1, 0,
'minwidth100 maxwidth500 widthcentpercentminusx');
616print
'<div class="center">';
617print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"Update").
'" name="Button">';
629print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
630print
'<input type="hidden" name="token" value="'.newToken().
'">';
631print
'<input type="hidden" name="action" value="updatememberscards">';
632print
'<input type="hidden" name="page_y" value="">';
636$helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
637$helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
638$helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
639$helptext .=
'__YEAR__, __MONTH__, __DAY__';
641print
'<div class="div-table-responsive-no-min">';
642print
'<table class="noborder centpercent">';
643print
'<tr class="liste_titre">';
644print
'<td>'.$langs->trans(
"Description").
'</td>';
645print
'<td class="soixantepercent">'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
649print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TYPE").
'</td><td>';
651require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
652$arrayoflabels = array();
653foreach (array_keys($_Avery_Labels) as $codecards) {
654 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
661print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_HEADER_TEXT").
'</td><td>';
662print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_HEADER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_HEADER_TEXT')).
'">';
666print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT").
'</td><td>';
667print
'<textarea class="flat" name="ADHERENT_CARD_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
673print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_TEXT_RIGHT").
'</td><td>';
674print
'<textarea class="flat" name="ADHERENT_CARD_TEXT_RIGHT" cols="50" rows="5" wrap="soft">'.
"\n";
680print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_CARD_FOOTER_TEXT").
'</td><td>';
681print
'<input type="text" class="flat minwidth300" name="ADHERENT_CARD_FOOTER_TEXT" value="'.dol_escape_htmltag(
getDolGlobalString(
'ADHERENT_CARD_FOOTER_TEXT')).
'">';
687print
'<div class="center">';
688print
'<input type="submit" class="button reposition" value="'.$langs->trans(
"Update").
'" name="Button">';
698print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
699print
'<input type="hidden" name="token" value="'.newToken().
'">';
700print
'<input type="hidden" name="action" value="updatememberstickets">';
701print
'<input type="hidden" name="page_y" value="">';
705$helptext =
'*'.$langs->trans(
"FollowingConstantsWillBeSubstituted").
'<br>';
706$helptext .=
'__DOL_MAIN_URL_ROOT__, __ID__, __FIRSTNAME__, __LASTNAME__, __FULLNAME__, __LOGIN__, __PASSWORD__, ';
707$helptext .=
'__COMPANY__, __ADDRESS__, __ZIP__, __TOWN__, __COUNTRY__, __EMAIL__, __BIRTH__, __PHOTO__, __TYPE__, ';
708$helptext .=
'__YEAR__, __MONTH__, __DAY__';
710print
'<div class="div-table-responsive-no-min">';
711print
'<table class="noborder centpercent">';
712print
'<tr class="liste_titre">';
713print
'<td>'.$langs->trans(
"Description").
'</td>';
714print
'<td class="soixantepercent">'.$form->textwithpicto($langs->trans(
"Value"), $helptext, 1,
'help',
'', 0, 2,
'idhelptext').
'</td>';
718print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TYPE").
'</td><td>';
720require_once DOL_DOCUMENT_ROOT.
'/core/lib/format_cards.lib.php';
721$arrayoflabels = array();
722foreach (array_keys($_Avery_Labels) as $codecards) {
723 $arrayoflabels[$codecards] = $_Avery_Labels[$codecards][
'name'];
725print $form->selectarray(
'ADHERENT_ETIQUETTE_TYPE', $arrayoflabels,
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') ?
getDolGlobalString(
'ADHERENT_ETIQUETTE_TYPE') :
'CARD', 1, 0, 0);
730print
'<tr class="oddeven"><td>'.$langs->trans(
"DescADHERENT_ETIQUETTE_TEXT").
'</td><td>';
731print
'<textarea class="flat" name="ADHERENT_ETIQUETTE_TEXT" cols="50" rows="5" wrap="soft">'.
"\n";
739print
'<div class="center">';
740print
'<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.
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.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
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)
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)
Show tabs of a record.
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.
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.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
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_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
getDolGlobalString($key, $default='')
Return a 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 information.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
$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.