8$request = Main\Context::getCurrent()->getRequest();
19 [
'max_display_url',
GetMessage(
'PERFMON_OPTIONS_MAX_DISPLAY_URL'), [
'text', 6]],
20 [
'warning_log',
GetMessage(
'PERFMON_OPTIONS_WARNING_LOG'), [
'checkbox']],
21 [
'cache_log',
GetMessage(
'PERFMON_OPTIONS_CACHE_LOG'), [
'checkbox']],
22 [
'large_cache_log',
GetMessage(
'PERFMON_OPTIONS_LARGE_CACHE_LOG'), [
'checkbox'],
GetMessage(
'PERFMON_OPTIONS_LARGE_CACHE_NOTE')],
23 [
'large_cache_size',
GetMessage(
'PERFMON_OPTIONS_LARGE_CACHE_SIZE'), [
'text', 6]],
24 [
'sql_log',
GetMessage(
'PERFMON_OPTIONS_SQL_LOG'), [
'checkbox']],
25 [
'sql_backtrace',
GetMessage(
'PERFMON_OPTIONS_SQL_BACKTRACE'), [
'checkbox']],
26 [
'slow_sql_log',
GetMessage(
'PERFMON_OPTIONS_SLOW_SQL_LOG'), [
'checkbox'],
GetMessage(
'PERFMON_OPTIONS_SLOW_SQL_NOTE')],
27 [
'slow_sql_time',
GetMessage(
'PERFMON_OPTIONS_SLOW_SQL_TIME'), [
'text', 6]],
32 'enable_tablet_generator',
33 GetMessage(
'PERFMON_OPTIONS_ENABLE_TABLET_GENERATOR'),
38 GetMessage(
'PERFMON_OPTIONS_SECTION_GENERATOR_SETTINGS'),
40 'tablet_short_aliases',
41 GetMessage(
'PERFMON_OPTIONS_TABLET_SHORT_ALIASES'),
47 'tablet_object_settings',
48 GetMessage(
'PERFMON_OPTIONS_TABLET_OBJECT_SETTINGS'),
54 'tablet_use_map_index',
55 GetMessage(
'PERFMON_OPTIONS_TABLET_USE_MAP_INDEX'),
61 'tablet_validation_closure',
62 GetMessage(
'PERFMON_OPTIONS_TABLET_VALIDATION_CLOSURE'),
70 [
'DIV' =>
'edit1',
'TAB' =>
GetMessage(
'MAIN_TAB_SET'),
'ICON' =>
'perfmon_settings',
'TITLE' =>
GetMessage(
'MAIN_TAB_TITLE_SET')],
71 [
'DIV' =>
'edit3',
'TAB' =>
GetMessage(
'PERFMON_TAB_ORM'),
'ICON' =>
'perfmon_settings',
'TITLE' =>
GetMessage(
'PERFMON_TAB_TITLE_ORM')],
72 [
'DIV' =>
'edit2',
'TAB' =>
GetMessage(
'MAIN_TAB_RIGHTS'),
'ICON' =>
'perfmon_settings',
'TITLE' =>
GetMessage(
'MAIN_TAB_TITLE_RIGHTS')],
79 if (
$request->getPost(
'RestoreDefaults') !==
null)
96 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/perfmon/prolog.php';
98 if (
$request->getPost(
'clear_data') ===
'y')
107 $active =
$request->getPost(
'ACTIVE');
108 if ($active !==
null)
110 $active = (int)$active;
116 Option::delete(
'perfmon', []);
122 $name = $arOption[0];
124 if ($arOption[2][0] ==
'checkbox' &&
$val !==
'Y')
139 if (
$option[2][0] ==
'checkbox')
141 if ($value !==
'N' && $value !==
'Y')
146 Option::set(
'perfmon',
$name, $value,
'');
153 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';
162 .
'&lang=' . urlencode(LANGUAGE_ID)
163 .
'&back_url_settings=' . urlencode(
$backUrl)
177 .
'&lang=' . urlencode(LANGUAGE_ID)
184 <form method=
"post" action=
"<?= $APPLICATION->GetCurPage() ?>?mid=<?= urlencode($module_id)?>&lang=<?= LANGUAGE_ID?>">
190 $val = Option::get(
'perfmon', $arOption[0]);
192 if (isset($arOption[3]))
198 <td
width=
"40%" nowrap <?= (
$type[0] ===
'textarea' ?
'class="adm-detail-valign-top"' :
''); ?>>
199 <?php
if (isset($arOption[3])): ?>
200 <span
class=
"required"><sup><?=
count(
$arNotes); ?></sup></span>
202 <label
for=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"><?= $arOption[1] ?>:</label>
205 <?php
if (
$type[0] ==
'checkbox'): ?>
208 name=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"
209 id=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"
210 value=
"Y"<?php echo
$val ===
'Y' ?
' checked' :
'';?>>
214 size=
"<?php echo $type[1] ?>"
216 value=
"<?php echo htmlspecialcharsbx($val) ?>"
217 name=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"
218 id=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>">
220 if ($arOption[0] ==
'slow_sql_time')
222 echo
GetMessage(
'PERFMON_OPTIONS_SLOW_SQL_TIME_SEC');
226 if ($arOption[0] ==
'large_cache_size')
228 echo
GetMessage(
'PERFMON_OPTIONS_LARGE_CACHE_SIZE_KB');
234 rows=
"<?php echo $type[1] ?>"
235 cols=
"<?php echo $type[2] ?>"
236 name=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"
237 id=
"<?php echo htmlspecialcharsbx($arOption[0]) ?>"
245 <td valign=
"top" width=
"50%">
246 <?php echo
GetMessage(
'PERFMON_OPT_ACTIVE') ?>:
248 <td valign=
"middle" width=
"50%">
249 <?php
if ($ACTIVE): ?>
250 <?php echo
GetMessage(
'PERFMON_OPT_ACTIVE_Y') ?>
252 <?php echo
GetMessage(
'PERFMON_OPT_ACTIVE_N') ?>
256 <?php
if ($ACTIVE): ?>
258 <td valign=
"top" width=
"50%">
259 <?php echo
GetMessage(
'PERFMON_OPT_ACTIVE_TO') ?>:
261 <td valign=
"top" width=
"50%">
263 $interval = max(0, COption::GetOptionInt(
'perfmon',
'end_time') - time());
264 $hours = sprintf(
'%02d', intval($interval / 3600));
265 $interval -=
$hours * 3600;
266 $minutes = sprintf(
'%02d', intval($interval / 60));
267 $interval -= $minutes * 60;
268 $seconds = sprintf(
'%02d', intval($interval));
269 echo
GetMessage(
'PERFMON_OPT_MINUTES', [
'#HOURS#' =>
$hours,
'#MINUTES#' => $minutes,
'#SECONDS#' => $seconds]);
274 <td valign=
"top" width=
"50%">
275 <label
for=
"ACTIVE"><?php echo
GetMessage(
'PERFMON_OPT_SET_IN_ACTIVE') ?></label>:
277 <td valign=
"top" width=
"50%">
278 <input type=
"checkbox" name=
"ACTIVE" value=
"0" id=
"ACTIVE_CKBOX">
283 <td valign=
"top" width=
"50%">
284 <?php echo
GetMessage(
'PERFMON_OPT_SET_ACTIVE') ?>:
286 <td valign=
"top" width=
"50%">
287 <
select name=
"ACTIVE" id=
"ACTIVE_LIST">
288 <option value=
"0"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_NO') ?></option>
289 <option value=
"60"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_60_SEC') ?></option>
290 <option value=
"300"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_300_SEC') ?></option>
291 <option value=
"600"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_600_SEC') ?></option>
292 <option value=
"1800"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_1800_SEC') ?></option>
293 <option value=
"3600"><?php echo
GetMessage(
'PERFMON_OPT_INTERVAL_3600_SEC') ?></option>
298 <td valign=
"top" width=
"50%">
299 <label
for=
"clear_data"><?php echo
GetMessage(
'PERFMON_OPT_CLEAR_DATA') ?></label>
301 <td valign=
"top" width=
"50%">
302 <input type=
"checkbox" name=
"clear_data" id=
"clear_data" value=
"y">
321 <td
style=
"width: 40%; white-space: nowrap" <?php echo
$type[0] ==
'textarea' ?
'class="adm-detail-valign-top"' :
'';?>>
322 <label
for=
"<?php echo htmlspecialcharsbx($option[0]) ?>"><?php echo
$option[1] ?></label>
324 <td
style=
"width: 60%;"><?php
329 <input type=
"hidden" name=
"<?=$name; ?>" value=
"N">
330 <input type=
"checkbox" name=
"<?=$name; ?>" id=
"<?=$name; ?>" value=
"Y"<?=($value ===
'Y' ?
' checked' :
''); ?>>
335 <input type=
"text" size=
"<?=$type[1]; ?>" maxlength=
"255" value=
"<?=htmlspecialcharsbx($value); ?>" name=
"<?=$name; ?>" id=
"<?=$name; ?>">
340 <textarea rows=
"<?=$type[1]; ?>" cols=
"<?=$type[2]; ?>" name=
"<?=$name; ?>" id=
"<?=$name; ?>"><?php echo
htmlspecialcharsbx(
$val ??
'') ?></textarea>
349 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';
351 <input <?php echo
$RIGHT <
'W' ?
'disabled' :
'';?> type=
"submit" name=
"Update" value=
"<?=GetMessage('MAIN_SAVE')?>" title=
"<?=GetMessage('MAIN_OPT_SAVE_TITLE')?>" class=
"adm-btn-save">
352 <input <?php echo
$RIGHT <
'W' ?
'disabled' :
'';?> type=
"submit" name=
"Apply" value=
"<?=GetMessage('MAIN_OPT_APPLY')?>" title=
"<?=GetMessage('MAIN_OPT_APPLY_TITLE')?>">
353 <?php
if (
$_REQUEST[
'back_url_settings'] <>
''): ?>
355 <?php echo
$RIGHT <
'W' ?
'disabled' :
'';?>
358 value=
"<?=GetMessage('MAIN_OPT_CANCEL')?>"
359 title=
"<?=GetMessage('MAIN_OPT_CANCEL_TITLE')?>"
360 onclick=
"window.location='<?php echo htmlspecialcharsbx(CUtil::addslashes($_REQUEST['back_url_settings'])) ?>'"
364 name=
"back_url_settings"
365 value=
"<?=htmlspecialcharsbx($_REQUEST['back_url_settings'])?>"
370 name=
"RestoreDefaults"
371 title=
"<?php echo GetMessage('MAIN_HINT_RESTORE_DEFAULTS') ?>"
372 onclick=
"return confirm('<?php echo addslashes(GetMessage('MAIN_HINT_RESTORE_DEFAULTS_WARNING')) ?>')"
373 value=
"<?php echo GetMessage('MAIN_RESTORE_DEFAULTS') ?>"
379 function slow_sql_log_check()
381 var activeCheckbox = BX(
'ACTIVE_LIST');
384 jsSelectUtils.deleteAllOptions(activeCheckbox);
385 jsSelectUtils.addNewOption(activeCheckbox,
'0',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_NO
')?>');
387 (!BX(
'sql_log').checked || BX(
'sql_log').checked && BX(
'slow_sql_log').checked)
388 && (!BX(
'cache_log').checked || BX(
'cache_log').checked && BX(
'large_cache_log').checked)
391 jsSelectUtils.addNewOption(activeCheckbox,
'3600',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_3600_SEC
')?>');
392 jsSelectUtils.addNewOption(activeCheckbox,
'14400',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_4_HOURS
')?>');
393 jsSelectUtils.addNewOption(activeCheckbox,
'28800',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_8_HOURS
')?>');
394 jsSelectUtils.addNewOption(activeCheckbox,
'86400',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_24_HOURS
')?>');
395 jsSelectUtils.addNewOption(activeCheckbox,
'604800',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_7_DAYS
')?>');
399 jsSelectUtils.addNewOption(activeCheckbox,
'60',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_60_SEC
')?>');
400 jsSelectUtils.addNewOption(activeCheckbox,
'300',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_300_SEC
')?>');
401 jsSelectUtils.addNewOption(activeCheckbox,
'600',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_600_SEC
')?>');
402 jsSelectUtils.addNewOption(activeCheckbox,
'1800',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_1800_SEC
')?>');
403 jsSelectUtils.addNewOption(activeCheckbox,
'3600',
'<?php echo GetMessageJS('PERFMON_OPT_INTERVAL_3600_SEC
')?>');
409 BX.bind(BX(
'sql_log'),
'click', slow_sql_log_check);
410 BX.bind(BX(
'slow_sql_log'),
'click', slow_sql_log_check);
411 BX.bind(BX(
'cache_log'),
'click', slow_sql_log_check);
412 BX.bind(BX(
'large_cache_log'),
'click', slow_sql_log_check);
413 slow_sql_log_check();
422 ?><span
class=
"required"><sup><?php echo
$i + 1 ?></sup></span><?php echo
$str ?><br><?php
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 get($moduleId, $name, $default="", $siteId=false)
static SetActive($bActive=false, $end_time=0)
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
if($request->getPost('Update') !==null) elseif( $request->getPost( 'Apply') !==null) elseif($request->getPost('RestoreDefaults') !==null) $backUrl
$_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($request->getPost('RestoreDefaults') !==null) elseif( $request->getPost( 'Update') !==null) elseif($request->getPost('Apply')) $actionClear
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
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"