27 array(
'DIV' =>
'edit1',
'TAB' => Loc::getMessage(
'LOCATION_OPT_TAB_OPTIONS'),
'ICON' =>
"",
'TITLE' => Loc::getMessage(
'LOCATION_OPT_TAB_OPTIONS')),
28 array(
'DIV' =>
'edit2',
'TAB' => Loc::getMessage(
'LOCATION_OPT_TAB_SOURCES_OPTIONS'),
'ICON' =>
"",
'TITLE' => Loc::getMessage(
'LOCATION_OPT_TAB_SOURCES_OPTIONS')),
29 array(
'DIV' =>
'edit3',
'TAB' => Loc::getMessage(
'MAIN_TAB_RIGHTS'),
'ICON' =>
"",
'TITLE' => Loc::getMessage(
'MAIN_TAB_TITLE_RIGHTS')),
42 if(isset(
$_REQUEST[
'address_format_code']))
49 Option::set(
'location',
'log_level', (
string)
$_REQUEST[
'log_level']);
57 $sourceCode = $source->getCode();
58 $sourceConfig = $source->getConfig() ??
new Config();
60 if (!isset(
$_REQUEST[
'SOURCE'][$sourceCode]))
64 $sourceRequest =
$_REQUEST[
'SOURCE'][$sourceCode];
69 $sourceConfigRequest =
$_REQUEST[
'SOURCE'][$sourceCode][
'CONFIG'] ?? [];
71 foreach ($sourceConfig as $configItem)
73 if (!$configItem->isVisible())
77 if (!isset($sourceConfigRequest[$configItem->getCode()]))
83 if ($configItem->getType() === ConfigItem::STRING_TYPE)
85 $value = $sourceConfigRequest[$configItem->getCode()];
87 elseif ($configItem->getType() === ConfigItem::BOOL_TYPE)
89 $value = $sourceConfigRequest[$configItem->getCode()] ===
'Y';
92 $configItem->setValue($value);
94 $source->setConfig($sourceConfig);
103 require_once(
$_SERVER[
'DOCUMENT_ROOT'].
'/bitrix/modules/main/admin/group_rights.php');
117 foreach(FormatService::getInstance()->findAll(LANGUAGE_ID) as $format)
119 $formatList[$format->getCode()] = $format->getName();
130 LogLevel::NONE => loc::getMessage(
'LOCATION_OPT_LOG_LEVEL_NONE'),
131 LogLevel::ERROR => loc::getMessage(
'LOCATION_OPT_LOG_LEVEL_ERROR'),
132 LogLevel::INFO => loc::getMessage(
'LOCATION_OPT_LOG_LEVEL_INFO'),
133 LogLevel::DEBUG => loc::getMessage(
'LOCATION_OPT_LOG_LEVEL_DEBUG')
138 <form method=
"post" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=urlencode($module_id)?>&lang=<?=LANGUAGE_ID?>">
141 <td
width=
"40%" valign=
"top"><?=Loc::getMessage(
"LOCATION_OPT_FORMAT")?>:</td>
143 <
select name=
"address_format_code" onchange=
"onLocationOptionFormatChanged(this.value);">
146 value=
"<?=htmlspecialcharsbx($code)?>"
153 <div
id=
"location_address_format_description">
160 <td
width=
"40%" valign=
"top"><?=Loc::getMessage(
"LOCATION_OPT_LOG_LEVEL")?>:</td>
171 $sourceCode = $source->getCode();
173 $sourceCode === \
Bitrix\Location\Entity\Source\Factory::OSM_SOURCE_CODE
174 && !\
Bitrix\Main\ModuleManager::isModuleInstalled(
'bitrix24')
189 foreach (
$config as $configItem):
190 if (!$configItem->isVisible())
198 'SOURCE[%s][CONFIG][%s]',
204 'LOCATION_OPT_SOURCE_%s_%s',
211 'LOCATION_OPT_SOURCE_%s_%s_NOTE',
220 <?
if ($configItem->getType() == ConfigItem::STRING_TYPE):?>
221 <input type=
"text" name=
"<?=htmlspecialcharsbx($inputName)?>" size=
"40" value=
"<?=htmlspecialcharsbx($configItem->getValue())?>">
222 <?
elseif ($configItem->getType() == ConfigItem::BOOL_TYPE):?>
223 <input type=
"hidden" name=
"<?=htmlspecialcharsbx($inputName)?>" value=
"N">
224 <input type=
"checkbox" name=
"<?=htmlspecialcharsbx($inputName)?>" value=
"Y" <?=($configItem->getValue() ?
' checked' :
'')?> >
235 <?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");?>
238 <input type=
"submit" name=
"Update" value=
"<?=GetMessage("MAIN_SAVE
")?>" title=
"<?=GetMessage("MAIN_OPT_SAVE_TITLE
")?>" class=
"adm-btn-save">
240 <?
if(
$_REQUEST[
"back_url_settings"] <>
''):?>
241 <input type=
"button" name=
"Cancel" value=
"<?=GetMessage("MAIN_OPT_CANCEL
")?>" onclick=
"window.location="<?echo
htmlspecialcharsbx(CUtil::addslashes(
$_REQUEST[
"back_url_settings"]))?>
''>
242 <input type=
"hidden" name=
"back_url_settings" value=
"<?=htmlspecialcharsbx($_REQUEST["back_url_settings
"])?>">
248 function onLocationOptionFormatChanged(formatCode)
251 var note = document.getElementById(
'location_address_format_description');
252 note.innerHTML = formatDescriptionsList[formatCode];
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)
$_SERVER["DOCUMENT_ROOT"]
if(!is_null($config))($config as $configItem)(! $configItem->isVisible()) $code
foreach(FormatService::getInstance() ->findAll(LANGUAGE_ID) as $format) $currentLogLevel
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)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
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