|
@@ -150,10 +150,10 @@ if ((!empty($foruserid) || !empty($foruserlogin) || !empty($mode)) && !$mesg) {
|
|
|
|
|
|
// For business cards
|
|
|
if (empty($mode) || $mode == 'card' || $mode == 'cardlogin') {
|
|
|
- $textleft = make_substitutions($conf->global->ADHERENT_CARD_TEXT, $substitutionarray);
|
|
|
- $textheader = make_substitutions($conf->global->ADHERENT_CARD_HEADER_TEXT, $substitutionarray);
|
|
|
- $textfooter = make_substitutions($conf->global->ADHERENT_CARD_FOOTER_TEXT, $substitutionarray);
|
|
|
- $textright = make_substitutions($conf->global->ADHERENT_CARD_TEXT_RIGHT, $substitutionarray);
|
|
|
+ $textleft = make_substitutions(getDolGlobalString('ADHERENT_CARD_TEXT'), $substitutionarray);
|
|
|
+ $textheader = make_substitutions(getDolGlobalString('ADHERENT_CARD_HEADER_TEXT'), $substitutionarray);
|
|
|
+ $textfooter = make_substitutions(getDolGlobalString('ADHERENT_CARD_FOOTER_TEXT'), $substitutionarray);
|
|
|
+ $textright = make_substitutions(getDolGlobalString('ADHERENT_CARD_TEXT_RIGHT'), $substitutionarray);
|
|
|
|
|
|
if (is_numeric($foruserid) || $foruserlogin) {
|
|
|
$nb = $_Avery_Labels[$model]['NX'] * $_Avery_Labels[$model]['NY']; // $_Avery_Labels is defined into an include
|
|
@@ -190,7 +190,7 @@ if ((!empty($foruserid) || !empty($foruserlogin) || !empty($mode)) && !$mesg) {
|
|
|
if (!getDolGlobalString('ADHERENT_ETIQUETTE_TEXT')) {
|
|
|
$conf->global->ADHERENT_ETIQUETTE_TEXT = "__FULLNAME__\n__ADDRESS__\n__ZIP__ __TOWN__\n__COUNTRY__";
|
|
|
}
|
|
|
- $textleft = make_substitutions($conf->global->ADHERENT_ETIQUETTE_TEXT, $substitutionarray);
|
|
|
+ $textleft = make_substitutions(getDolGlobalString('ADHERENT_ETIQUETTE_TEXT'), $substitutionarray);
|
|
|
$textheader = '';
|
|
|
$textfooter = '';
|
|
|
$textright = '';
|
|
@@ -275,7 +275,7 @@ dol_htmloutput_errors($mesg);
|
|
|
|
|
|
print '<br>';
|
|
|
|
|
|
-print img_picto('', 'card').' '.$langs->trans("DocForAllMembersCards", (getDolGlobalString('ADHERENT_CARD_TYPE') ? $conf->global->ADHERENT_CARD_TYPE : $langs->transnoentitiesnoconv("None"))).' ';
|
|
|
+print img_picto('', 'card').' '.$langs->trans("DocForAllMembersCards", getDolGlobalString('ADHERENT_CARD_TYPE', $langs->transnoentitiesnoconv("None"))).' ';
|
|
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
print '<input type="hidden" name="foruserid" value="all">';
|
|
@@ -288,13 +288,13 @@ foreach (array_keys($_Avery_Labels) as $codecards) {
|
|
|
$arrayoflabels[$codecards] = $_Avery_Labels[$codecards]['name'];
|
|
|
}
|
|
|
asort($arrayoflabels);
|
|
|
-print $form->selectarray('modelcard', $arrayoflabels, (GETPOST('modelcard') ? GETPOST('modelcard') : (!getDolGlobalString('ADHERENT_CARD_TYPE') ? '' : $conf->global->ADHERENT_CARD_TYPE)), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
+print $form->selectarray('modelcard', $arrayoflabels, (GETPOST('modelcard') ? GETPOST('modelcard') : getDolGlobalString('ADHERENT_CARD_TYPE')), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
print '<br><input type="submit" class="button small" value="'.$langs->trans("BuildDoc").'">';
|
|
|
print '</form>';
|
|
|
|
|
|
print '<br><br>';
|
|
|
|
|
|
-print img_picto('', 'card').' '.$langs->trans("DocForOneMemberCards", (getDolGlobalString('ADHERENT_CARD_TYPE') ? $conf->global->ADHERENT_CARD_TYPE : $langs->transnoentitiesnoconv("None"))).' ';
|
|
|
+print img_picto('', 'card').' '.$langs->trans("DocForOneMemberCards", getDolGlobalString('ADHERENT_CARD_TYPE', $langs->transnoentitiesnoconv("None"))).' ';
|
|
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
print '<input type="hidden" name="mode" value="cardlogin">';
|
|
@@ -306,14 +306,14 @@ foreach (array_keys($_Avery_Labels) as $codecards) {
|
|
|
$arrayoflabels[$codecards] = $_Avery_Labels[$codecards]['name'];
|
|
|
}
|
|
|
asort($arrayoflabels);
|
|
|
-print $form->selectarray('model', $arrayoflabels, (GETPOST('model') ? GETPOST('model') : (!getDolGlobalString('ADHERENT_CARD_TYPE') ? '' : $conf->global->ADHERENT_CARD_TYPE)), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
+print $form->selectarray('model', $arrayoflabels, (GETPOST('model') ? GETPOST('model') : getDolGlobalString('ADHERENT_CARD_TYPE')), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
print '<br>'.$langs->trans("Login").': <input class="with100" type="text" name="foruserlogin" value="'.GETPOST('foruserlogin').'">';
|
|
|
print '<br><input type="submit" class="button small" value="'.$langs->trans("BuildDoc").'">';
|
|
|
print '</form>';
|
|
|
|
|
|
print '<br><br>';
|
|
|
|
|
|
-print img_picto('', 'card').' '.$langs->trans("DocForLabels", (!getDolGlobalString('ADHERENT_ETIQUETTE_TYPE') ? '' : $conf->global->ADHERENT_ETIQUETTE_TYPE)).' ';
|
|
|
+print img_picto('', 'card').' '.$langs->trans("DocForLabels", getDolGlobalString('ADHERENT_ETIQUETTE_TYPE')).' ';
|
|
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
print '<input type="hidden" name="mode" value="label">';
|
|
@@ -325,7 +325,7 @@ foreach (array_keys($_Avery_Labels) as $codecards) {
|
|
|
$arrayoflabels[$codecards] = $_Avery_Labels[$codecards]['name'];
|
|
|
}
|
|
|
asort($arrayoflabels);
|
|
|
-print $form->selectarray('modellabel', $arrayoflabels, (GETPOST('modellabel') ? GETPOST('modellabel') : (!getDolGlobalString('ADHERENT_ETIQUETTE_TYPE') ? '' : $conf->global->ADHERENT_ETIQUETTE_TYPE)), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
+print $form->selectarray('modellabel', $arrayoflabels, (GETPOST('modellabel') ? GETPOST('modellabel') : getDolGlobalString('ADHERENT_ETIQUETTE_TYPE')), 1, 0, 0, '', 0, 0, 0, '', '', 1);
|
|
|
print '<br><input type="submit" class="button small" value="'.$langs->trans("BuildDoc").'">';
|
|
|
print '</form>';
|
|
|
|