';
-print '';
-print '| '.$langs->trans("Description").' | ';
-print ''.$langs->trans("Value").' | ';
-print "
\n";
-
-// Start date of new membership
-$startpoint = array();
-$startpoint[0] = $langs->trans("SubscriptionPayment");
-$startpoint["m"] = $langs->trans("Month");
-$startpoint["Y"] = $langs->trans("Year");
-print '| ';
-print $langs->trans("MemberSubscriptionStartFirstDayOf");
-print ' | ';
-$startfirstdayof = !getDolGlobalString('MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF') ? 0 : getDolGlobalString('MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF');
-print $form->selectarray("MEMBER_SUBSCRIPTION_START_FIRST_DAY_OF", $startpoint, $startfirstdayof, 0);
-print " |
\n";
-
-// Delay to start the new membership ([+/-][0-99][Y/m/d], for instance, with "+4m", the subscription will start in 4 month.)
-print '| ';
-print $langs->trans("MemberSubscriptionStartAfter");
-print ' | ';
-print '';
-print " |
\n";
-
-// Mail required for members
-print '| '.$langs->trans("AdherentMailRequired").' | ';
-print $form->selectyesno('ADHERENT_MAIL_REQUIRED', getDolGlobalInt('ADHERENT_MAIL_REQUIRED'), 1);
-print " |
\n";
-
-// Login/Pass required for members
-print '| ';
-print $form->textwithpicto($langs->trans("AdherentLoginRequired"), $langs->trans("AdherentLoginRequiredDesc"));
-print ' | ';
-print $form->selectyesno('ADHERENT_LOGIN_NOT_REQUIRED', (getDolGlobalString('ADHERENT_LOGIN_NOT_REQUIRED') ? 0 : 1), 1);
-print " |
\n";
-
-// Send mail information is on by default
-print '| '.$langs->trans("MemberSendInformationByMailByDefault").' | ';
-print $form->selectyesno('ADHERENT_DEFAULT_SENDINFOBYMAIL', getDolGlobalInt('ADHERENT_DEFAULT_SENDINFOBYMAIL', 0), 1);
-print " |
\n";
-
-// Create an external user login for each new member subscription validated
-print '| '.$langs->trans("MemberCreateAnExternalUserForSubscriptionValidated").' | ';
-print $form->selectyesno('ADHERENT_CREATE_EXTERNAL_USER_LOGIN', getDolGlobalInt('ADHERENT_CREATE_EXTERNAL_USER_LOGIN', 0), 1);
-print " |
\n";
-
-// Create an external user login for each new member subscription validated
-$linkofpubliclist = DOL_MAIN_URL_ROOT.'/public/members/public_list.php'.((isModEnabled('multicompany')) ? '?entity='.((int) $conf->entity) : '');
-print '| '.$langs->trans("Public", getDolGlobalString('MAIN_INFO_SOCIETE_NOM'), $linkofpubliclist).' | ';
-print $form->selectyesno('MEMBER_PUBLIC_ENABLED', getDolGlobalInt('MEMBER_PUBLIC_ENABLED', 0), 1);
-print " |
\n";
-
-// Allow members to change type on renewal forms
-/* To test during next beta
-print '| '.$langs->trans("MemberAllowchangeOfType").' | ';
-print $form->selectyesno('MEMBER_ALLOW_CHANGE_OF_TYPE', (getDolGlobalInt('MEMBER_ALLOW_CHANGE_OF_TYPE') ? 0 : 1), 1);
-print " |
\n";
-*/
-
-// Insert subscription into bank account
-print '| '.$langs->trans("MoreActionsOnSubscription").' | ';
-$arraychoices = array('0' => $langs->trans("None"));
-if (isModEnabled("bank")) {
- $arraychoices['bankdirect'] = $langs->trans("MoreActionBankDirect");
-}
-if (isModEnabled("bank") && isModEnabled("societe") && isModEnabled('invoice')) {
- $arraychoices['invoiceonly'] = $langs->trans("MoreActionInvoiceOnly");
-}
-if (isModEnabled("bank") && isModEnabled("societe") && isModEnabled('invoice')) {
- $arraychoices['bankviainvoice'] = $langs->trans("MoreActionBankViaInvoice");
-}
-print '';
-print $form->selectarray('ADHERENT_BANK_USE', $arraychoices, getDolGlobalString('ADHERENT_BANK_USE'), 0);
-if (getDolGlobalString('ADHERENT_BANK_USE') == 'bankdirect' || getDolGlobalString('ADHERENT_BANK_USE') == 'bankviainvoice') {
- print '
'.$langs->trans("ABankAccountMustBeDefinedOnPaymentModeSetup").' ';
-}
-print ' | ';
-print "
\n";
-
-// Use vat for invoice creation
-if (isModEnabled('invoice')) {
- print '| '.$langs->trans("VATToUseForSubscriptions").' | ';
- if (isModEnabled("bank")) {
- print '';
- print $form->selectarray('ADHERENT_VAT_FOR_SUBSCRIPTIONS', array('0' => $langs->trans("NoVatOnSubscription"), 'defaultforfoundationcountry' => $langs->trans("Default")), getDolGlobalString('ADHERENT_VAT_FOR_SUBSCRIPTIONS', '0'), 0);
- print ' | ';
- } else {
- print '';
- print $langs->trans("WarningModuleNotActive", $langs->transnoentities("Module85Name"));
- print ' | ';
- }
- print "
\n";
-
- if (isModEnabled("product") || isModEnabled("service")) {
- print '| '.$langs->trans("ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS").' | ';
- print '';
- $selected = getDolGlobalString('ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS');
- print img_picto('', 'product', 'class="pictofixedwidth"');
- $form->select_produits($selected, 'ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS', '', 0);
- print ' | ';
- }
- print "
\n";
-}
-
-print '