|
@@ -56,6 +56,8 @@ if ($action == 'update' && !$cancel) {
|
|
|
|
|
|
dolibarr_set_const($db, "MAIN_MAIL_SMS_FROM", GETPOST("MAIN_MAIL_SMS_FROM", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
|
|
|
+ dolibarr_set_const($db, "MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT", GETPOST("MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT", 'alphanohtml'), 'chaine', 0, '', $conf->entity);
|
|
|
+
|
|
|
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
|
|
exit;
|
|
|
}
|
|
@@ -192,6 +194,11 @@ if ($action == 'edit') {
|
|
|
print '<td><input class="flat" name="MAIN_MAIL_SMS_FROM" size="32" value="'.getDolGlobalString('MAIN_MAIL_SMS_FROM');
|
|
|
print '"></td></tr>';
|
|
|
|
|
|
+ // Default prefix
|
|
|
+ print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT", $langs->transnoentities("Undefined")).'</td>';
|
|
|
+ print '<td><input class="flat" name="MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT" size="5" value="'.getDolGlobalString('MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT');
|
|
|
+ print '"></td></tr>';
|
|
|
+
|
|
|
// Autocopy to
|
|
|
/*
|
|
|
print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_AUTOCOPY_TO").'</td>';
|
|
@@ -235,6 +242,14 @@ if ($action == 'edit') {
|
|
|
}
|
|
|
print '</td></tr>';
|
|
|
|
|
|
+ // Default prefix
|
|
|
+ print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT", $langs->transnoentities("Undefined")).'</td>';
|
|
|
+ print '<td>'.getDolGlobalString('MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT');
|
|
|
+ if (!empty($conf->global->MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT) && !isValidPhone($conf->global->MAIN_MAIL_SMS_INTL_PREFIX_DEFAULT)) {
|
|
|
+ print ' '.img_warning($langs->trans("ErrorBadPhone"));
|
|
|
+ }
|
|
|
+ print '</td></tr>';
|
|
|
+
|
|
|
// Autocopy to
|
|
|
/*
|
|
|
print '<tr class="oddeven"><td>'.$langs->trans("MAIN_MAIL_AUTOCOPY_TO").'</td>';
|