11 [
'allow_anonymous',
GetMessage(
'opt_anonym'), [
'checkbox',
'Y']],
12 [
'show_auth_links',
GetMessage(
'opt_links'), [
'checkbox',
'Y']],
13 [
'subscribe_section',
GetMessage(
'opt_sect'), [
'text', 35]],
14 [
'posting_interval',
GetMessage(
'opt_interval'), [
'text', 5]],
15 [
'max_bcc_count',
GetMessage(
'opt_max_bcc_count'), [
'text', 5]],
16 [
'default_from',
GetMessage(
'opt_def_from'), [
'text', 35]],
17 [
'default_to',
GetMessage(
'opt_def_to'), [
'text', 35]],
18 [
'posting_charset',
GetMessage(
'opt_encoding'), [
'text-list', 3, 20]],
19 [
'allow_8bit_chars',
GetMessage(
'opt_allow_8bit'), [
'checkbox',
'Y']],
20 [
'mail_additional_parameters',
GetMessage(
'opt_mail_additional_parameters'), [
'text', 35]],
21 [
'attach_images',
GetMessage(
'opt_attach'), [
'checkbox',
'Y']],
22 [
'subscribe_confirm_period',
GetMessage(
'opt_delete'), [
'text', 5]],
23 [
'subscribe_auto_method',
GetMessage(
'opt_method'), [
'selectbox', [
'agent' =>
GetMessage(
'opt_method_agent'),
'cron' =>
GetMessage(
'opt_method_cron')]]],
24 [
'subscribe_max_emails_per_hit',
GetMessage(
'opt_max_per_hit'), [
'text', 5]],
25 [
'subscribe_template_method',
GetMessage(
'opt_template_method'), [
'selectbox', [
'agent' =>
GetMessage(
'opt_method_agent'),
'cron' =>
GetMessage(
'opt_method_cron')]]],
26 [
'subscribe_template_interval',
GetMessage(
'opt_template_interval'), [
'text', 10]],
27 [
'max_files_size',
GetMessage(
'opt_max_files_size'), [
'text', 5]],
30 [
'DIV' =>
'edit1',
'TAB' =>
GetMessage(
'MAIN_TAB_SET'),
'ICON' =>
'subscribe_settings',
'TITLE' =>
GetMessage(
'MAIN_TAB_TITLE_SET')],
31 [
'DIV' =>
'edit2',
'TAB' =>
GetMessage(
'MAIN_TAB_RIGHTS'),
'ICON' =>
'subscribe_settings',
'TITLE' =>
GetMessage(
'MAIN_TAB_TITLE_RIGHTS')],
36$request = \Bitrix\Main\Context::getCurrent()->getRequest();
43 || (
string)
$request[
'RestoreDefaults'] !==
''
49 if ((
string)
$request[
'RestoreDefaults'] !==
'')
51 COption::RemoveOption(
'subscribe');
53 while (
$zr =
$z->Fetch())
63 if ($arOption[2][0] ==
'text-list')
66 foreach ($_POST[
$name] as $postValue)
68 $postValue = trim($postValue);
69 if ($postValue !==
'')
71 $val .= (
$val !==
'' ?
',' :
'') . $postValue;
80 if ($arOption[2][0] ==
'checkbox' &&
$val !==
'Y')
85 if (
$name !=
'mail_additional_parameters' ||
$USER->IsAdmin())
91 CAgent::RemoveAgent(
'CPostingTemplate::Execute();',
'subscribe');
92 if (COption::GetOptionString(
'subscribe',
'subscribe_template_method') !==
'cron')
94 CAgent::AddAgent(
'CPostingTemplate::Execute();',
'subscribe',
'N', COption::GetOptionString(
'subscribe',
'subscribe_template_interval'));
99 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';
102 if (
$request[
'back_url_settings'] !==
'')
104 if (((
string)
$request[
'Apply'] !==
'') || ((
string)
$request[
'RestoreDefaults'] !==
''))
120<form method=
"post" action=
"<?php echo $APPLICATION->GetCurPage()?>?mid=<?=urlencode($module_id)?>&lang=<?=LANGUAGE_ID?>">
131 <td
width=
"40%" <?php echo (
$type[0] ==
'textarea' ||
$type[0] ==
'text-list') ?
'class="adm-detail-valign-top"' :
'';?>>
132 <label
for=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php echo
$Option[1]?></label>
135 if (
$type[0] ==
'checkbox')
137 ?><input type=
"checkbox" name=
"<?php echo htmlspecialcharsbx($Option[0])?>" id=
"<?php echo htmlspecialcharsbx($Option[0])?>" value=
"Y" <?php echo (
$val ==
'Y') ?
'checked' :
'';?>><?php
141 ?><input type=
"text" size=
"<?php echo $type[1]?>" maxlength=
"255" value=
"<?php echo htmlspecialcharsbx($val)?>" name=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php
145 ?><textarea rows=
"<?php echo $type[1]?>" cols=
"<?php echo $type[2]?>" name=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php echo
htmlspecialcharsbx(
$val)?></textarea><?php
149 $aVal = explode(
',',
$val);
150 foreach ($aVal as
$val)
152 ?><input type=
"text" size=
"<?php echo $type[2]?>" value=
"<?php echo htmlspecialcharsbx($val)?>" name=
"<?php echo htmlspecialcharsbx($Option[0]) . '[]'?>"><br><?php
154 for ($j = 0; $j <
$type[1]; $j++)
156 ?><input type=
"text" size=
"<?php echo $type[2]?>" value=
"" name=
"<?php echo htmlspecialcharsbx($Option[0]) . '[]'?>"><br><?php
161 ?><
select name=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php
174<?php require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';?>
176 <input <?php echo (
$POST_RIGHT <
'W') ?
'disabled' :
'';?> type=
"submit" name=
"Update" value=
"<?=GetMessage('MAIN_SAVE')?>" title=
"<?=GetMessage('MAIN_OPT_SAVE_TITLE')?>" class=
"adm-btn-save">
177 <input <?php echo (
$POST_RIGHT <
'W') ?
'disabled' :
'';?> type=
"submit" name=
"Apply" value=
"<?=GetMessage('MAIN_OPT_APPLY')?>" title=
"<?=GetMessage('MAIN_OPT_APPLY_TITLE')?>">
178 <?php
if (
$_REQUEST[
'back_url_settings'] <>
''):?>
179 <input <?php echo (
$POST_RIGHT <
'W') ?
'disabled' :
'';?> type=
"button" name=
"Cancel" value=
"<?=GetMessage('MAIN_OPT_CANCEL')?>" title=
"<?=GetMessage('MAIN_OPT_CANCEL_TITLE')?>" onclick=
"window.location='<?php echo htmlspecialcharsbx(CUtil::addslashes($_REQUEST['back_url_settings']))?>'">
180 <input type=
"hidden" name=
"back_url_settings" value=
"<?=htmlspecialcharsbx($_REQUEST['back_url_settings'])?>">
182 <input <?php echo (
$POST_RIGHT <
'W') ?
'disabled' :
'';?> type=
"submit" name=
"RestoreDefaults" title=
"<?php echo GetMessage('MAIN_HINT_RESTORE_DEFAULTS')?>" OnClick=
"return confirm('<?php echo addslashes(GetMessage('MAIN_HINT_RESTORE_DEFAULTS_WARNING'))?>')" value=
"<?php echo GetMessage('MAIN_RESTORE_DEFAULTS')?>">
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title