7if (!\
Bitrix\Main\Loader::includeModule(
'messageservice'))
13Loc::loadMessages(__FILE__);
15include_once(__DIR__.
'/default_option.php');
26 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"MAIN_TAB_SET"),
"ICON" =>
"ib_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_SET")),
30if(
$_SERVER[
"REQUEST_METHOD"]==
"POST" && ($_POST[
'Update'] || $_POST[
'Apply'] || $_POST[
'RestoreDefaults'])>0 &&
check_bitrix_sessid())
32 if($_POST[
'RestoreDefaults'] <>
'')
35 foreach($arDefValues as
$key=>$value)
37 COption::RemoveOption(
"messageservice",
$key);
46 if($arOption[3][0]==
"checkbox" &&
$val!=
"Y")
51 if($_POST[
'Update'] <>
'' &&
$_REQUEST[
"back_url_settings"] <>
'')
60<form method=
"post" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=urlencode($mid)?>&lang=<?echo LANGUAGE_ID?>">
68 <td
width=
"40%" nowrap <?
if(
$type[0]==
"textarea") echo
'class="adm-detail-valign-top"'?>>
69 <label
for=
"<?echo htmlspecialcharsbx($arOption[0])?>"><?echo $arOption[1]?>:</label>
71 <?
if(
$type[0]==
"checkbox"):?>
72 <input type=
"checkbox" id=
"<?echo htmlspecialcharsbx($arOption[0])?>" name=
"<?echo htmlspecialcharsbx($arOption[0])?>" value=
"Y"<?
if(
$val==
"Y")echo
" checked";?>>
74 <input type=
"text" size=
"<?echo $type[1]?>" maxlength=
"255" value=
"<?echo htmlspecialcharsbx($val)?>" name=
"<?echo htmlspecialcharsbx($arOption[0])?>">
76 <textarea rows=
"<?echo $type[1]?>" cols=
"<?echo $type[2]?>" name=
"<?echo htmlspecialcharsbx($arOption[0])?>"><?echo
htmlspecialcharsbx(
$val)?></textarea>
78 <
select name=
"<?echo htmlspecialcharsbx($arOption[0])?>">
82 ?><option value=
"<?= $key ?>"<?= (
$key ==
$val) ?
" selected" :
"" ?>><?= $value ?></option><?
92 <td
width=
"40%" nowrap>
93 <label><?=
GetMessage(
"MESSAGESERVICE_SMS_SENDER_LINK")?>:</label>
94 <td
width=
"60%" valign=
"top">
97 foreach (
Bitrix\MessageService\Sender\SmsManager::getSenders() as $sender):
98 if (!$sender->isConfigurable())
104 if (!$sender::isSupported() && !$sender->isRegistered())
109 <li><a href=
"<?=htmlspecialcharsbx($sender->getManageUrl())?>"><?=
htmlspecialcharsbx($sender->getName())?></a></li>
115 <td
width=
"40%" nowrap>
116 <label><?=
GetMessage(
"MESSAGESERVICE_SMS_SENDER_LIMITS")?>:</label>
117 <td
width=
"60%" valign=
"top">
118 <a href=
"messageservice_sender_limits.php"><?=
GetMessage(
"MESSAGESERVICE_TUNE_LINK")?></a></li>
123 <input type=
"submit" name=
"Update" value=
"<?=GetMessage("MAIN_SAVE
")?>" title=
"<?=GetMessage("MAIN_OPT_SAVE_TITLE
")?>" class=
"adm-btn-save">
124 <input type=
"submit" name=
"Apply" value=
"<?=GetMessage("MAIN_OPT_APPLY
")?>" title=
"<?=GetMessage("MAIN_OPT_APPLY_TITLE
")?>">
125 <?
if(
$_REQUEST[
"back_url_settings"] <>
''):?>
126 <input type=
"button" name=
"Cancel" value=
"<?=GetMessage("MAIN_OPT_CANCEL
")?>" title=
"<?=GetMessage("MAIN_OPT_CANCEL_TITLE
")?>" onclick=
"window.location='<?echo htmlspecialcharsbx(CUtil::addslashes($_REQUEST["back_url_settings
"]))?>'">
127 <input type=
"hidden" name=
"back_url_settings" value=
"<?=htmlspecialcharsbx($_REQUEST["back_url_settings
"])?>">
129 <input type=
"submit" name=
"RestoreDefaults" title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"return confirm('<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING
"))?>')" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
static SetOptionString($module_id, $name, $value="", $desc=false, $site="")
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
foreach( $arCellTemplates as $key=> $value) foreach( $arCellTemplates as $key=> $value)
if(CIMConvert::ConvertCount() > 0) $arDefaultValues['default']
$_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")
$messageservice_default_option
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
if(empty($signedUserToken)) $key