5require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/fileman/include.php");
9if (!
$USER->CanDoOperation(
'fileman_view_all_settings'))
15 $is_valid_lang =
false;
16 while ($arLang = $rsLang->Fetch())
18 if (
$lang==$arLang[
"LID"])
20 $is_valid_lang =
true;
24 return $is_valid_lang;
31 while(
$zr =
$z->Fetch())
40$script_files_default =
"php,php3,php4,php5,php6,phtml,pl,asp,aspx,cgi,exe,ico,shtm,shtml";
44 if($default_edit!=
"html" && $default_edit!=
"php")
46 COption::SetOptionString(
$module_id,
"default_edit", $default_edit);
48 COption::SetOptionString(
$module_id,
"use_medialib", ($use_medialib ??
null) ==
'Y' ?
'Y' :
'N');
50 COption::SetOptionString(
$module_id,
"use_editor_3", ($use_editor_3 ??
null) ==
'Y' ?
'Y' :
'N');
55 COption::SetOptionString(
$module_id,
"htmleditor_fullscreen", ($htmleditor_fullscreen ??
null) ==
"Y" ?
"Y" :
"N");
56 COption::SetOptionString(
$module_id,
"show_untitled_styles", ($show_untitled_styles ??
null));
57 COption::SetOptionString(
$module_id,
"render_styles_in_classlist", ($render_styles_in_classlist ??
null));
58 COption::SetOptionString(
$module_id,
"allow_render_components", ($allow_render_components ??
null) ==
'Y' ?
'Y' :
'N');
62 if (isset($_POST[
'tlbr']) && is_array($_POST[
'tlbr']))
64 foreach ($_POST[
'tlbr'] as
$type => $arToolbars)
66 if ($arToolbars ==
'clean')
72 &&
count($arToolbars) === 1
73 && is_array($arToolbars[
'global'] ??
null)
76 COption::SetOptionString(
$module_id,
"toolbar_config_".
$type, serialize($arToolbars[
'global']));
80 COption::SetOptionString(
$module_id,
"toolbar_config_".
$type, serialize($arToolbars));
86 COption::SetOptionString(
$module_id,
"use_lca", (($use_lca ??
null) ==
'Y' ?
'Y' :
'N'));
88 COption::SetOptionString(
$module_id,
"replace_new_lines", isset($_POST[
'replace_new_lines'])?
"Y" :
"N");
91 COption::SetOptionString(
$module_id,
"use_pspell", isset($_POST[
'use_pspell'])?
"Y" :
"N");
93 if (isset($_POST[
'user_dics_path']) && $_POST[
'user_dics_path']!=
'')
94 COption::SetOptionString(
$module_id,
"user_dics_path", $_POST[
'user_dics_path']);
96 COption::SetOptionString(
$module_id,
"user_dics_path",
"/bitrix/modules/fileman/u_dics");
99 if (isset($_POST[
'use_separeted_dics']))
100 COption::SetOptionString(
$module_id,
"use_separeted_dics",
"Y");
102 COption::SetOptionString(
$module_id,
"use_separeted_dics",
"N");
104 COption::SetOptionString(
$module_id,
"use_custom_spell",
"N");
108 if (isset($_POST[
'dic_lang']) && isset($_FILES[
'dic_aff']) && isset($_FILES[
'dic_base']) && $_FILES[
'dic_aff'][
'name'] !=
'' && $_FILES[
'dic_base'][
'name'] !=
'')
110 $dic_lang = $_POST[
'dic_lang'];
113 $lang_dir =
$_SERVER[
'DOCUMENT_ROOT'].$dicsRelPath.
'/'.$dic_lang;
114 $dics_dir =
$_SERVER[
'DOCUMENT_ROOT'].$dicsRelPath.
'/'.$dic_lang.
'/dics';
116 if (!file_exists($lang_dir))
117 mkdir($lang_dir, BX_DIR_PERMISSIONS);
119 $source=$_FILES[
'dic_base'][
'tmp_name'];
120 $target = $lang_dir.
'/'.$dic_lang.
'.dic';
121 if (file_exists($target))
123 move_uploaded_file($source, $target);
125 $source=$_FILES[
'dic_aff'][
'tmp_name'];
126 $target = $lang_dir.
'/'.$dic_lang.
'.aff';
127 if (file_exists($target))
129 move_uploaded_file($source, $target);
131 if (!file_exists($dics_dir))
132 mkdir($dics_dir, BX_DIR_PERMISSIONS);
133 COption::SetOptionString(
$module_id, $dic_lang.
"_dic_indexed",
"N");
138 if (isset($_POST[
'del_dic']))
140 $lang_dir =
$_SERVER[
'DOCUMENT_ROOT'].$dicsRelPath.
'/'.$_POST[
'del_dic'];
141 if (file_exists($lang_dir) && is_dir($lang_dir))
143 $dicDir = dir($lang_dir);
144 while (
false !== ($entry = $dicDir->read()))
146 $entry_path = $dicDir->path.
'/'.$entry;
147 if (is_dir($entry_path) && $entry==
'dics')
150 $dicsDir = dir($entry_path);
151 while (
false !== ($dic = $dicsDir->read()))
153 $dic_path = $dicsDir->path.
'/'.$dic;
154 if (is_file($dic_path))
161 elseif (is_file($entry_path))
163 unlink ($entry_path);
172 if (isset($_POST[
'index_dic']))
174 $lang_dir =
$_SERVER[
'DOCUMENT_ROOT'].$dicsRelPath.
'/'.$_POST[
'index_dic'];
175 if (file_exists($lang_dir) && is_dir($lang_dir))
177 $dicsDir = dir($lang_dir.
'/dics');
178 while (
false !== ($dic = $dicsDir->read()))
180 $dic_path = $dicsDir->path.
'/'.$dic;
181 if (is_file($dic_path))
186 require(
$_SERVER[
'DOCUMENT_ROOT'].
BX_ROOT.
'/modules/fileman/admin/spell_createDictionary.php');
188 $CD =
new createDictionary();
189 $lang = $_POST[
'index_dic'];
190 $CD->init(
$lang,$lang_dir);
192 COption::SetOptionString(
$module_id, $dic_lang.
"_dic_indexed",
"Y");
199 if (isset($_POST[
'ar_entities']))
201 $ar_entities = is_array($_POST[
'ar_entities']) ? $_POST[
'ar_entities'] : [];
209 $cur_ml_width = COption::GetOptionInt(
$module_id,
"ml_thumb_width", 140);
210 $cur_ml_height = COption::GetOptionInt(
$module_id,
"ml_thumb_height", 105);
212 $ml_width = intval($medialib_thumb_width, 10);
216 $ml_height = intval($medialib_thumb_height, 10);
220 if (abs($cur_ml_width - $ml_width) > 10 || abs($cur_ml_height - $ml_height) > 10)
221 CMedialib::DeleteThumbnails();
223 COption::SetOptionInt(
$module_id,
"ml_thumb_width", $ml_width);
224 COption::SetOptionInt(
$module_id,
"ml_thumb_height", $ml_height);
226 $arMLExt = explode(
',', $medialib_ext);
230 $ext = mb_strtolower(trim($arMLExt[
$i],
' .'));
234 $medialib_ext = implode(
',', $arMLExt_);
235 COption::SetOptionString(
$module_id,
"ml_media_extentions", $medialib_ext);
238 $ml_max_width = intval($medialib_max_width);
239 if ($ml_max_width <=0)
240 $ml_max_width = 1024;
242 $ml_max_height = intval($medialib_max_height);
243 if ($ml_max_height <=0)
244 $ml_max_height = 1024;
246 COption::SetOptionInt(
$module_id,
"ml_max_width", $ml_max_width);
247 COption::SetOptionInt(
$module_id,
"ml_max_height", $ml_max_height);
251 $arMLDelTypes =
array();
252 $strAvExt = $medialib_ext;
254 foreach ($_POST[
'ML_TYPE'] as
$key =>
$type)
256 if ((
$type[
"DEL"] ??
null) ==
"Y")
258 $arMLDelTypes[] =
$key;
263 if (
$type[
"SYS"] ==
"Y")
266 'EXT' =>
$type[
"EXT"],
267 'CODE' =>
$type[
"CODE"],
274 'NEW' => (
$type[
"NEW"] ??
null) ==
"Y",
276 'NAME' =>
$type[
"NAME"],
277 'CODE' =>
$type[
"CODE"],
278 'EXT' =>
$type[
"EXT"],
279 'DESCRIPTION' =>
$type[
"DESC"],
280 'SYSTEM' =>
$type[
"SYS"] ==
"Y" ?
"Y" :
"N"
284 $strAvExt .=
','.$type[
"EXT"];
288 CMedialib::DelTypes($arMLDelTypes);
291 $arExt_ = explode(
',', $strAvExt);
295 $ext = mb_strtolower(trim($arExt_[
$i],
' .'));
296 if ($ext <>
'' && !in_array($ext, $arAvExt))
299 $strAvExt = implode(
',', $arAvExt);
300 COption::SetOptionString(
$module_id,
"ml_media_available_ext", $strAvExt);
305 COption::SetOptionString(
$module_id,
"ml_use_default", ($medialib_use_default ??
null) ==
'Y');
308 if (
$USER->CanDoOperation(
'edit_php'))
310 COption::SetOptionString(
$module_id,
"~script_files", $script_files);
311 COption::SetOptionString(
$module_id,
"~allowed_components", $allowed_components);
315 $siteList_ID = unserialize($mSiteList, [
'allowed_classes' =>
false]);
317 if(isset($dif_settings))
319 COption::SetOptionString(
$module_id,
"different_set",
"Y");
322 while($j <
count($siteList_ID))
324 COption::SetOptionInt(
$module_id,
"num_menu_param", ${
"num_".$siteList_ID[$j][
"ID"].
"_menu_param"},
false, $siteList_ID[$j][
"ID"]);
328 for(
$i=0;
$i<${
"menutypes_".$siteList_ID[$j][
"ID"].
"_count"};
$i++)
330 if(${
"menutypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"} <>
'')
331 $armt[${
"menutypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"}] = ${
"menutypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_name"};
334 if(${
"menutypes_".$siteList_ID[$j][
"ID"].
"_new_type"} <>
'' &&
$USER->CanDoOperation(
'fileman_edit_menu_types'))
335 $armt[${
"menutypes_".$siteList_ID[$j][
"ID"].
"_new_type"}] = ${
"menutypes_".$siteList_ID[$j][
"ID"].
"_new_name"};
337 if (mb_strlen(addslashes(serialize(
$armt))) <= 2000)
340 $addError =
GetMessage(
"FILEMAN_OPTION_ADD_ERROR_MENU").
'<br />';
343 for(
$i=0;
$i<${
"propstypes_".$siteList_ID[$j][
"ID"].
"_count"};
$i++)
345 ${
"propstypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"} = ${
"propstypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"} ??
null;
346 if(${
"propstypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"} <>
'')
347 $arPT[${
"propstypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_type"}] = ${
"propstypes_".$siteList_ID[$j][
"ID"].
"_".
$i.
"_name"};
349 if(${
"propstypes_".$siteList_ID[$j][
"ID"].
"_new_type"} <>
'')
350 $arPT[${
"propstypes_".$siteList_ID[$j][
"ID"].
"_new_type"}] = ${
"propstypes_".$siteList_ID[$j][
"ID"].
"_new_name"};
353 $addError .=
GetMessage(
"FILEMAN_OPTION_ADD_ERROR_PROPS");
359 COption::SetOptionString(
$module_id,
"different_set",
"N");
360 COption::SetOptionInt(
$module_id,
"num_menu_param", $num_menu_param);
364 for(
$i=0;
$i<$menutypes_count;
$i++)
366 if(${
"menutypes_".$i.
"_type"} <>
'')
367 $armt[${
"menutypes_".$i.
"_type"}] = ${
"menutypes_".$i.
"_name"};
369 if($menutypes_new_type <>
'' &&
$USER->CanDoOperation(
'fileman_edit_menu_types'))
370 $armt[$menutypes_new_type] = $menutypes_new_name;
372 if (mb_strlen(addslashes(serialize(
$armt))) <= 2000)
375 $addError =
GetMessage(
"FILEMAN_OPTION_ADD_ERROR_MENU").
'<br />';
379 for(
$i=0;
$i<$propstypes_count;
$i++)
381 if((${
"propstypes_".$i.
"_type"} ??
null) <>
'')
382 $arPT[${
"propstypes_".$i.
"_type"}] = ${
"propstypes_".$i.
"_name"};
384 if($propstypes_new_type <>
'')
385 $arPT[$propstypes_new_type] = $propstypes_new_name;
388 $addError .=
GetMessage(
"FILEMAN_OPTION_ADD_ERROR_PROPS");
391 while($j <
count($siteList_ID))
393 COption::RemoveOption(
$module_id,
"menutypes", $siteList_ID[$j][
"ID"]);
394 COption::RemoveOption(
$module_id,
"propstypes", $siteList_ID[$j][
"ID"]);
395 COption::RemoveOption(
$module_id,
"num_menu_param", $siteList_ID[$j][
"ID"]);
402 $search_max_open_file_size = intval($_POST[
'search_max_open_file_size']);
403 if ($search_max_open_file_size <= 0)
404 $search_max_open_file_size = 1024;
405 COption::SetOptionString(
$module_id,
"search_max_open_file_size", $search_max_open_file_size);
407 $search_max_res_count = intval($_POST[
'search_max_res_count']);
408 if ($search_max_res_count <= 0)
409 $search_max_res_count =
'';
410 COption::SetOptionString(
$module_id,
"search_max_res_count", $search_max_res_count);
412 $search_time_step = intval($_POST[
'search_time_step']);
414 if ($search_time_step <= 0)
415 $search_time_step = 5;
417 COption::SetOptionString(
$module_id,
"search_time_step", $search_time_step);
419 $search_mask = $_POST[
'search_mask'];
421 if ($search_mask ==
"")
422 $search_mask =
"*.php";
424 COption::SetOptionString(
$module_id,
"search_mask", $search_mask);
425 COption::SetOptionString(
$module_id,
"show_inc_icons", (isset($_POST[
'show_inc_icons']) ?
'Y' :
'N'));
426 COption::SetOptionString(
$module_id,
"hide_physical_struc", (isset($_POST[
'hide_physical_struc'])));
427 COption::SetOptionString(
$module_id,
"use_translit", (isset($_POST[
'use_translit'])));
428 COption::SetOptionString(
$module_id,
"use_translit_google", (isset($_POST[
'use_translit_google'])));
429 COption::SetOptionString(
$module_id,
"log_menu", (isset($_POST[
'log_menu']) ?
'Y' :
'N'));
430 COption::SetOptionString(
$module_id,
"log_page", (isset($_POST[
'log_page']) ?
'Y' :
'N'));
431 COption::SetOptionString(
$module_id,
"use_code_editor", (isset($_POST[
'use_code_editor']) ?
'Y' :
'N'));
432 COption::SetOptionString(
$module_id,
"google_map_api_key", isset($_POST[
'google_map_api_key']) ? $_POST[
'google_map_api_key'] :
'');
433 COption::SetOptionString(
$module_id,
"yandex_map_api_key", isset($_POST[
'yandex_map_api_key']) ? $_POST[
'yandex_map_api_key'] :
'');
437 if(is_array($_POST[
"DEFAULT_EDIT_GROUPS"] ??
null))
438 foreach($_POST[
"DEFAULT_EDIT_GROUPS"] as
$gr)
439 $sGroups .= ($sGroups <>
''?
',':
'').intval(
$gr);
440 COption::SetOptionString(
'fileman',
'default_edit_groups', $sGroups);
442 $archive_step_time = intval($_POST[
'archive_step_time']);
443 if ($archive_step_time <= 0)
444 $archive_step_time = 30;
445 COption::SetOptionString(
$module_id,
"archive_step_time", $archive_step_time);
449if (
$_SERVER[
'REQUEST_METHOD']==
"GET" && isset($_GET[
'load_dic']) &&
450 $USER->CanDoOperation(
'fileman_edit_all_settings') &&
451 COption::GetOptionString(
$module_id,
"use_editor_3",
"N") ==
"Y")
455 $l_id = $_GET[
'load_dic'];
456 require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/classes/general/tar_gz.php");
457 $indexedDicPath =
$_SERVER[
'DOCUMENT_ROOT'].$gzDicsRelPath.
'/'.$l_id.
'.tar.gz';
458 $oArchiver =
new CArchiver($indexedDicPath);
460 if ($oArchiver->extractFiles(
$_SERVER[
'DOCUMENT_ROOT'].$dicsRelPath.
'/'.$l_id))
466 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"MAIN_TAB_SET"),
"ICON" =>
"fileman_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_SET")),
467 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"MAIN_TAB_VISUAL_EDITOR"),
"ICON" =>
"fileman_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_VIS_ED_SET")),
468 array(
"DIV" =>
"edit5",
"TAB" =>
GetMessage(
"MAIN_TAB_MEDIALIB"),
"ICON" =>
"fileman_settings",
"TITLE" =>
GetMessage(
"FILEMAN_SEC_MEDIALIB")),
473 $rightsTab =
array(
"DIV" =>
"edit3",
"TAB" =>
GetMessage(
"MAIN_TAB_RIGHTS"),
"ICON" =>
"fileman_settings",
"TITLE" =>
GetMessage(
"MAIN_TAB_TITLE_RIGHTS"));
490 if ($addError ??
null)
493 "DETAILS" => $addError,
505 function SelectSite(
id)
508 BX(
'<?= htmlspecialcharsbx($siteList[$i]["ID"]);?>_Propery').style.display=
'none';
510 BX(
id+
'_Propery').style.display=
'';
516 BX(
'<?= htmlspecialcharsbx($siteList[$i]["ID"]);?>_Propery').style.display=
'none';
522 var checker = BX(
id);
523 var customSpellSettings = BX(
'customSpellSettings');
526 customSpellSettings.style.display =
"block";
530 customSpellSettings.style.display =
"none";
535<form method=
"POST" enctype=
"multipart/form-data" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?echo LANG?>">
539 <td valign=
"top" width=
"40%"><?=
GetMessage(
'FILEMAN_OPTION_DEF_EDITOR')?></td>
540 <td valign=
"top" width=
"60%">
542 <
select name=
"default_edit">
543 <option value=
"text"><?=
GetMessage(
'FILEMAN_OPTION_EDITOR_TEXT')?></option>
544 <option value=
"php"<?
if(COption::GetOptionString(
$module_id,
"default_edit")==
"php")echo
" selected"?>><?=
GetMessage(
'FILEMAN_OPTION_EDITOR_PHP')?></option>
545 <option value=
"html"<?
if(COption::GetOptionString(
$module_id,
"default_edit")==
"html")echo
" selected"?>><?=
GetMessage(
'FILEMAN_OPTION_EDITOR_HTML')?></option>
549 <?
if (
$USER->CanDoOperation(
'edit_php')):?>
552 <?=
GetMessage(
'FILEMAN_OPTION_SCRIPT_FILES')?>:
555 <input type=
"text" name=
"script_files" id=
"script_files" size=
"40" value=
"<?= htmlspecialcharsbx(COption::GetOptionString($module_id, "~script_files
", $script_files_default));?>">
560 <?=
GetMessage(
'FILEMAN_OPTION_ALLOWED_COMPONENTS')?>:
563 <textarea cols=
"30" rows=
"4" name=
"allowed_components"><?=
htmlspecialcharsbx(COption::GetOptionString(
$module_id,
"~allowed_components",
''));?></textarea>
568 <td valign=
"top" width=
"40%"><label
for=
"hide_physical_struc"><?=
GetMessage(
'FILEMAN_HIDE_PHYSICAL_STRUC')?>:</label></td>
569 <td valign=
"top" width=
"60%">
570 <input type=
"checkbox" name=
"hide_physical_struc" id=
"hide_physical_struc" <?
if(COption::GetOptionString(
$module_id,
"hide_physical_struc",
false) ==
true) echo
" checked";?>>
574 <td valign=
"top" width=
"40%"><label
for=
"use_translit"><?=
GetMessage(
'FILEMAN_USE_TRANSLITE')?>:</label></td>
575 <td valign=
"top" width=
"60%">
576 <input type=
"checkbox" name=
"use_translit" id=
"use_translit" <?
if(COption::GetOptionString(
$module_id,
"use_translit",
true) ==
true) echo
" checked";?>>
581 <td valign=
"top" width=
"40%"><label
for=
"use_translit_google"><?=
GetMessage(
'FILEMAN_USE_TRANSLITE_EXTERNAL')?>:</label></td>
582 <td valign=
"top" width=
"60%">
583 <input type=
"checkbox" name=
"use_translit_google" id=
"use_translit_google" <?
if(COption::GetOptionString(
$module_id,
"use_translit_google",
true) ==
true) echo
" checked";?>>
587 <td
class=
"adm-detail-valign-top"><label
for=
"LOGS"><?=
GetMessage(
"FILEMAN_EVENT_LOG")?>:</label></td>
589 <?
$val = COption::GetOptionString(
"forum",
"LOGS",
"Q");?>
590 <div
class=
"adm-list">
591 <div
class=
"adm-list-item">
592 <div
class=
"adm-list-control"><input type=
"checkbox" name=
"log_menu" id=
"log_menu" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"log_menu",
"Y")==
"Y")echo
" checked"?>></div>
593 <div
class=
"adm-list-label"><label
for=
"log_menu"><?=
GetMessage(
"FILEMAN_EVENT_LOG_MENU")?></label></div>
595 <div
class=
"adm-list-item">
596 <div
class=
"adm-list-control"><input type=
"checkbox" name=
"log_page" ID=
"log_page" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"log_page",
"Y")==
"Y")echo
" checked"?>></div>
597 <div
class=
"adm-list-label"><label
for=
"log_page"><?=
GetMessage(
"FILEMAN_EVENT_LOG_PAGE")?></label></div>
605 <td valign=
"top" width=
"40%"><label
for=
"use_code_editor"><?=
GetMessage(
'FILEMAN_OPTION_USE_CODE_EDITOR')?>:</label></td>
606 <td valign=
"top" width=
"60%">
607 <input type=
"checkbox" name=
"use_code_editor" id=
"use_code_editor" <?
if(COption::GetOptionString(
$module_id,
"use_code_editor",
"Y") ==
"Y") echo
" checked";?>>
611 <td valign=
"top"><label
for=
"google_map_api_key"><?=
GetMessage(
'FILEMAN_OPTION_GOOGLE_MAP_API_KEY')?>:</label></td>
613 <a name=
"google_api_key"></a>
614 <input type=
"text" size=
"40" name=
"google_map_api_key" id=
"google_map_api_key" value=
"<?=htmlspecialcharsbx(COption::GetOptionString($module_id, "google_map_api_key
", ""));?>">
617 "FILEMAN_OPTION_GOOGLE_MAP_API_KEY_NOTE",
619 "#A#" =>
'<a href="https://developers.google.com/maps/documentation/javascript/get-api-key">https://developers.google.com/maps/documentation/javascript/get-api-key</a>'
627 <td valign=
"top"><label
for=
"yandex_map_api_key"><?=
GetMessage(
'FILEMAN_OPTION_YANDEX_MAP_API_KEY')?>:</label></td>
629 <a name=
"yandex_api_key"></a>
630 <input type=
"text" size=
"40" name=
"yandex_map_api_key" id=
"yandex_map_api_key" value=
"<?=htmlspecialcharsbx(COption::GetOptionString($module_id, "yandex_map_api_key
", ""));?>">
633 "FILEMAN_OPTION_YANDEX_MAP_API_KEY_NOTE",
635 "#A#" =>
'<a href="https://tech.yandex.ru/developer-help/doc/#new-key">https://tech.yandex.ru/developer-help/doc/#new-key</a>'
643 <td colspan=2>&
nbsp;</td>
646 <td colspan=2><?=
GetMessage(
'FILEMAN_OPTION_SPECIAL_SETTINGS')?></td>
649 <td><?=
GetMessage(
'FILEMAN_OPTION_DIFFERENT_SET')?></td>
650 <td><input type=
"checkbox" name=
"dif_settings" id=
"dif_settings_id" onClick=
"if(this.checked) {BX('comPropery').style.display='none'; BX('site_select_id').disabled=false; SelectSite(BX('site_select_id').value);} else { BX('site_select_id').disabled=true; BX('comPropery').style.display=''; hideSite();}" <?
if(COption::GetOptionString(
$module_id,
"different_set",
"N") ==
"Y") echo
" checked";?>></td>
653 <td><?=
GetMessage(
'FILEMAN_OPTION_FOR_SYTE')?></td>
655 <
select name=
"site_select" id=
"site_select_id" onChange=
"SelectSite(this.value)" <?
if(COption::GetOptionString(
$module_id,
"different_set",
"N") !=
"Y") echo
" disabled"; ?>>
663 <tr
id=
"comPropery" <?
if(COption::GetOptionString(
$module_id,
"different_set",
"N") ==
"Y") echo
" style=\"display: none;\""; ?>>
665 <table cellspacing=
"4" cellpadding=
"0" width=
"100%">
667 <td valign=
"top" width=
"40%" class=
"adm-detail-content-cell-l" style=
"padding: 4px;"><?=
GetMessage(
'FILEMAN_OPTION_MENU_TYPES')?></td>
668 <td valign=
"top" width=
"60%" class=
"adm-detail-content-cell-r">
669 <table cellPadding=
"2" cellSpacing=
"2" border=
"0" width=
"100%">
680 if (
$USER->CanDoOperation(
'fileman_edit_menu_types')):
683 <td
style=
"padding: 2px;"><input type=
"text" name=
"menutypes_<?echo $i?>_type" value=
"<?= htmlspecialcharsbx($key)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
684 <td
style=
"padding: 2px;"><input type=
"text" name=
"menutypes_<?echo $i?>_name" value=
"<?= htmlspecialcharsbx($title)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
688 <td
style=
"padding-left: 5px">
690 <input type=
"hidden" name=
"menutypes_<?echo $i?>_type" value=
"<?echo htmlspecialcharsbx($key)?>">
692 <td
style=
"padding-left: 5px">
694 <input type=
"hidden" name=
"menutypes_<?echo $i?>_name" value=
"<?echo htmlspecialcharsbx($title)?>">
702 <input type=
"hidden" name=
"menutypes_count" value=
"<?echo $i?>">
703 <?
if (
$USER->CanDoOperation(
'fileman_edit_menu_types')):?>
705 <td><input type=
"text" name=
"menutypes_new_type" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
706 <td><input type=
"text" name=
"menutypes_new_name" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
713 <td
class=
"adm-detail-content-cell-l"><?=
GetMessage(
'FILEMAN_OPTION_MENU_PARAMS')?></td>
714 <td
class=
"adm-detail-content-cell-r"><input type=
"text" name=
"num_menu_param" size=
"5" value=
"<?echo COption::GetOptionInt($module_id, "num_menu_param
", 1, "")?>"></td>
717 <td valign=
"top" class=
"adm-detail-content-cell-l"><?=
GetMessage(
'FILEMAN_OPTION_PROPS_TYPES')?></td>
718 <td valign=
"top" class=
"adm-detail-content-cell-r">
719 <table cellpadding=
"2" cellspacing=
"2" border=
"0" width=
"100%">
731 <td><input type=
"text" name=
"propstypes_<?= $i?>_type" value=
"<?= htmlspecialcharsbx($key)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
732 <td><input type=
"text" name=
"propstypes_<?= $i?>_name" value=
"<?= htmlspecialcharsbx($val)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
738 <input type=
"hidden" name=
"propstypes_count" value=
"<?echo $i+1;?>">
740 <td><input type=
"text" name=
"propstypes_new_type" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
741 <td><input type=
"text" name=
"propstypes_new_name" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
751 <input type=
"hidden" name=
"mSiteList" value=
"<?=htmlspecialcharsbx(serialize($siteList))?>">
756 <tr
id=
"<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_Propery" style=
"<? if(((COption::GetOptionString($module_id, "different_set
", "N
") == "Y
") && ($j != 0)) || (COption::GetOptionString($module_id, "different_set
", "N
") == "N
")) echo "display: none;
"?>">
758 <table cellspacing=
"4" cellpadding=
"0" width=
"100%">
760 <td valign=
"top" width=
"40%" class=
"adm-detail-content-cell-l"><?=
GetMessage(
'FILEMAN_OPTION_MENU_TYPES')?></td>
761 <td valign=
"top" width=
"60%" class=
"adm-detail-content-cell-r">
762 <table cellPadding=
"2" cellSpacing=
"2" border=
"0" width=
"100%">
772 if (
$USER->CanDoOperation(
'fileman_edit_menu_types')):
775 <td><input type=
"text" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?= $i?>_type" value=
"<?= htmlspecialcharsbx($key)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
776 <td><input type=
"text" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?= $i?>_name" value=
"<?= htmlspecialcharsbx($title)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
782 <input type=
"hidden" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?= $i?>_type" value=
"<?= htmlspecialcharsbx($key)?>">
786 <input type=
"hidden" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?= $i?>_name" value=
"<?= htmlspecialcharsbx($title)?>">
794 <input type=
"hidden" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_count" value=
"<?= $i?>">
795 <?
if(
$USER->CanDoOperation(
'fileman_edit_menu_types')):?>
797 <td><input type=
"text" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_new_type" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
798 <td><input type=
"text" name=
"menutypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_new_name" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
805 <td
class=
"adm-detail-content-cell-l"><?=
GetMessage(
'FILEMAN_OPTION_MENU_PARAMS')?></td>
806 <td
class=
"adm-detail-content-cell-r"><input type=
"text" name=
"num_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_menu_param" size=
"5" value=
"<?= COption::GetOptionInt($module_id, "num_menu_param
", 1, $siteList[$j]["ID
"])?>"></td>
809 <td valign=
"top" class=
"adm-detail-content-cell-l"><?=
GetMessage(
'FILEMAN_OPTION_PROPS_TYPES')?></td>
810 <td
class=
"adm-detail-content-cell-r">
811 <table cellPadding=
"2" cellSpacing=
"2" border=
"0" width=
"100%">
821 <td><input type=
"text" name=
"propstypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?echo $i?>_type" value=
"<?= htmlspecialcharsbx($key)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
822 <td><input type=
"text" name=
"propstypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_<?echo $i?>_name" value=
"<?= htmlspecialcharsbx($val)?>" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
828 <input type=
"hidden" name=
"propstypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_count" value=
"<?echo $i+1?>">
830 <td><input type=
"text" name=
"propstypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_new_type" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
831 <td><input type=
"text" name=
"propstypes_<?= htmlspecialcharsbx($siteList[$j]["ID
"])?>_new_name" value=
"" style=
"width:100%; -moz-box-sizing: border-box; box-sizing: border-box;"></td>
842 <td colspan=
"2"><?=
GetMessage(
"FILEMAN_SEARCH_TITLE")?></td>
845 <td><label
for=
"search_max_open_file_size"><?=
GetMessage(
"FILEMAN_SEARCH_MAX_FILE_SIZE")?> (<?=
GetMessage(
"FILEMAN_SEARCH_KB")?>):</label></td>
846 <td><input type=
"text" name=
"search_max_open_file_size" id=
"search_max_open_file_size" value=
"<?= COption::GetOptionString($module_id, "search_max_open_file_size
", "1024
")?>"></td>
849 <td><label
for=
"search_max_res_count"><?=
GetMessage(
"FILEMAN_SEARCH_MAX_RES_CNT")?>:</label></td>
851 $val = COption::GetOptionString(
$module_id,
"search_max_res_count",
"");
852 $def_val =
' - '.GetMessage(
'FILEMAN_SEARCH_NO_LIMITS').
' -';
854 <td><input type=
"text" name=
"search_max_res_count" id=
"search_max_res_count" value=
"<? echo $val != "" ? $val : $def_val; ?>" <?
if (
$val ==
""): ?>
class=
"def-val"<?
endif;?> onfocus=
"if (this.value == '<?= $def_val?>' || this.value == ''){this.value = ''; BX.removeClass(this, 'def-val');}" onblur=
"if (this.value == ''){this.value = '<?= $def_val?>'; BX.addClass(this, 'def-val');}" />
858 <td><label
for=
"search_time_step"><?=
GetMessage(
"FILEMAN_SEARCH_TIME_STEP")?>:</label></td>
859 <td><input type=
"text" name=
"search_time_step" id=
"search_time_step" value=
"<?= COption::GetOptionString($module_id, "search_time_step
", "5
"); ?>"></td>
862 <td><label
for=
"search_mask"><?=
GetMessage(
"FILEMAN_SEARCH_MASK_DEF")?>:</label></td>
863 <td><input type=
"text" name=
"search_mask" id=
"search_mask" value=
"<?= htmlspecialcharsbx(COption::GetOptionString($module_id, "search_mask
", "*.php
"))?>"></td>
866 <td colspan=
"2"><?=
GetMessage(
"FILEMAN_ARCHIVE_TITLE")?></td>
869 <td><label
for=
"archive_step_time"><?=
GetMessage(
"FILEMAN_ARCHIVE_STEP_TIME")?>:</label></td>
870 <td><input type=
"text" name=
"archive_step_time" id=
"archive_step_time" value=
"<?= htmlspecialcharsbx(COption::GetOptionString($module_id, "archive_step_time
", "30
"))?>"></td>
873 <!--end of archive-->
876 <td valign=
"top"><label
for=
"use_editor_3"><?=
GetMessage(
'FILEMAN_OPTION_USE_EDITOR_3')?></label></td>
877 <td><input type=
"checkbox" name=
"use_editor_3" id=
"use_editor_3" value=
"Y" <?
if(
$useEditor3) echo
" checked"?>></td>
882 <td valign=
"top"><label
for=
"show_untitled_styles"><?=
GetMessage(
'FILEMAN_OPTION_USE_ONLY_DEFINED_STYLES')?></label></td>
883 <td><input type=
"checkbox" name=
"show_untitled_styles" id=
"show_untitled_styles" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"show_untitled_styles",
"N")==
"Y")echo
" checked"?>></td>
886 <td valign=
"top"><label
for=
"render_styles_in_classlist"><?=
GetMessage(
'FILEMAN_OPTION_RENDER_CLASSLIST_STYLE')?>:</label></td>
887 <td><input type=
"checkbox" name=
"render_styles_in_classlist" id=
"render_styles_in_classlist" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"render_styles_in_classlist",
"N") ==
"Y") echo
" checked"?>></td>
890 <td valign=
"top"><label
for=
"htmleditor_fullscreen"><?=
GetMessage(
'FILEMAN_OPT_FULLSCREEN')?></label></td>
891 <td><input type=
"checkbox" name=
"htmleditor_fullscreen" id=
"htmleditor_fullscreen" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"htmleditor_fullscreen",
"N")==
"Y")echo
" checked"?>></td>
894 <td valign=
"top"><label
for=
"allow_render_components"><?=
GetMessage(
'FILEMAN_OPT_ALLOW_RENDER_COMPONENTS')?>:</label></td>
895 <td><input type=
"checkbox" name=
"allow_render_components" id=
"allow_render_components" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"allow_render_components",
"N") ==
"Y") echo
" checked"?>></td>
899 <td valign=
"top"><label
for=
"editor_body_id"><?=
GetMessage(
'FILEMAN_OPTION_EDITOR_BODY_ID')?>:</label></td>
900 <td><input type=
"text" id=
"editor_body_id" name=
"editor_body_id" value=
"<?= COption::GetOptionString($module_id, "editor_body_id
", "")?>" /></td>
903 <td valign=
"top"><label
for=
"editor_body_class"><?=
GetMessage(
'FILEMAN_OPTION_EDITOR_BODY_CLASS')?>:</label></td>
904 <td><input type=
"text" id=
"editor_body_class" name=
"editor_body_class" value=
"<?= COption::GetOptionString($module_id, "editor_body_class
", "")?>" /></td>
909 <td colspan=
"2"><?=
GetMessage(
"FILEMAN_EDITOR_TOOLBAR_SETTINGS");?></td>
914 "code" =>
"filesrc_pub",
915 "editors"=>
array(
"filesrc_pub"),
916 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_PUBLIC"),
921 "editors"=>
array(
"filesrc"),
922 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_ADMIN"),
925 "code" =>
"template_edit",
926 "editors"=>
array(
"CONTENT"),
927 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_TEMPLATE"),
934 $arEdTypes[] =
array(
935 "code" =>
"iblock_public",
936 "editors"=>
array(
"PREVIEW_TEXT",
"DETAIL_TEXT"),
937 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_IBLOCK_PUBLIC"),
940 $arEdTypes[] =
array(
941 "code" =>
"iblock_admin",
942 "editors"=>
array(
"PREVIEW_TEXT",
"DETAIL_TEXT"),
943 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_IBLOCK_ADMIN"),
950 $arEdTypes[] =
array(
951 "code" =>
"subscribe",
953 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_SUBSCRIBE"),
960 $arEdTypes[] =
array(
961 "code" =>
"learning_public",
963 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_LEARNING_PUBLIC"),
966 $arEdTypes[] =
array(
967 "code" =>
"learning_admin",
969 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_LEARNING_ADMIN"),
976 $arEdTypes[] =
array(
977 "code" =>
"form_edit",
978 "editors"=>
array(
"FORM_TEMPLATE"),
979 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_FORM"),
982 $arEdTypes[] =
array(
983 "code" =>
"form_edit_public",
984 "editors"=>
array(
"FORM_TEMPLATE"),
985 "title" =>
GetMessage(
"FILEMAN_EDITOR_TYPE_FORM_PUBLIC"),
990$arCurConfig =
array();
1016 <td
width=
"50%"><label
for=
'ed_toolbar_type'><?=
GetMessage(
"FILEMAN_EDITOR_TYPE");?>:</td>
1018 <
select name=
"ed_toolbar_type" id=
"ed_toolbar_type">
1020 <option value=
"<?= $arEdTypes[$i]["code
"]?>"><?= $arEdTypes[
$i][
"title"]?></option>
1032table.bxopt-tbl td{padding: 0!important;}
1033table.bxopt-tbl td.bxopt-toolbar-
title{background-
color: #E0E8EA; font-weight: bold; padding: 4px 0!important;}
1034table.bxopt-tbl td.bxopt-toolbar-sep{
height: 10px;}
1035table.bxopt-tbl td.bxopt-toolbar-
title label{margin-
left:31px; cursor:
default;}
1036table.bxopt-tbl td.bxopt-check-sell{
width: 20px; padding-
left: 5px!important;}
1037table.bxopt-tbl td.bxopt-separator{
color: #808080;font-
style:italic;font-
size: 11px;text-
align: center;}
1038table.bxopt-tbl td.bxopt-but-icon{
width: 25px; padding: 2px 0 0 5px !important;}
1039table.bxopt-tbl td.bxopt-but-icon .bxed-button{
width: 20px;
height: 20px; background-image: url(/bitrix/images/fileman/htmledit2/_global_iconkit.gif); background-
repeat: norepeat;}
1040table.bxopt-list{border-
collapse:
collapse; border:1px solid #A5ACB2 !important; margin-
left: 3px;}
1041table.bxopt-list td{background: #FFFFFF !important;}
1042table.bxopt-list .bxopt-listtitle{background:#FFFFFF!important; font-family:Tahoma,Courier New !important; font-
size:11px !important; margin:2px 4px 0!important;
overflow:hidden; white-
space:nowrap;}
1043table.bxopt-list td.bx-listbutton{background:url(
"/bitrix/images/fileman/htmledit2/_global_iconkit.gif") no-
repeat scroll -63px -59px
#E0DEDA !important; border-left:1px solid #A5ACB2 !important; font-size:1pt !important; height:18px !important; width:14px !important;}
1044table.bxopt-tbl td.bxopt-but-
title{}
1045table.bxopt-tbl td.bxopt-but-
title label{margin: 3px 2px; cursor:
default;}
1047 <div
id=
"bxopt_but_title" class=
"bxopt-cont-title"></div>
1048 <div
id=
"bxopt_but_div" class=
"bxopt-cont">
1055 if(file_exists(
$_SERVER[
'DOCUMENT_ROOT'].
'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.
'/admin/fileman_js.php'))
1056 include(
$_SERVER[
'DOCUMENT_ROOT'].
'/bitrix/modules/fileman/lang/'.LANGUAGE_ID.
'/admin/fileman_js.php');
1058 include(
$_SERVER[
'DOCUMENT_ROOT'].
'/bitrix/modules/fileman/lang/en/admin/fileman_js.php');
1064$aMess = array_keys($aMess);
1069 if(mb_substr($aMess[
$i], 0, mb_strlen(
"FILEMAN_JS_")) ==
"FILEMAN_JS_")
1070 $sMess .=
"'".mb_substr($aMess[
$i], mb_strlen(
"FILEMAN_JS_")).
"': '".CUtil::addslashes(
GetMessage($aMess[
$i])).
"',";
1072$sMess = rtrim($sMess,
',');
1077var BX_MESS = {<?=$sMess?>};
1078function BXButtonConfig()
1083BXButtonConfig.prototype =
1087 this.pEditorType = BX(
"ed_toolbar_type");
1088 this.pTitle = BX(
"bxopt_but_title");
1089 this.pWnd = BX(
"bxopt_but_div");
1095 curCode =
'<?= isset($_REQUEST['ed_toolbar_type
']) ? CUtil::JSEscape($_REQUEST['ed_toolbar_type
']) : ''?>',
1096 _this =
this, i, l = this.types.length;
1098 this.pEditorType.onchange =
function(){_this.ChangeEditorType(this.value);};
1100 window.pPropertybarHandlers = {};
1101 window.oBXEditorUtils = {addDOMHandler:
function(){}, appendButton:
function(){}};
1102 window._showAllButtons =
true;
1105 for (i = 0; i < l; i++)
1106 this.oTypes[this.types[i].code] = {oType: this.types[i]};
1109 BX.loadScript(
'/bitrix/admin/htmleditor2/toolbarbuttons.js',
function()
1111 _this.buttons = arButtons;
1112 _this.toolbars = window.arToolbars;
1113 _this.globalToolbar = window.arGlobalToolbar;
1114 _this.ChangeEditorType(curCode || _this.types[0].code);
1118 BX.loadCSS(
'/bitrix/admin/htmleditor2/editor.css');
1121 BuildButtons:
function(typeCode)
1123 var tableCont = this.pWnd.appendChild(BX.create(
"TABLE", {props: {className:
"bxopt-tbl"},
style: {display:
'none'}}));
1124 this.oTypes[typeCode].pTable = tableCont;
1125 this.oTypes[typeCode].arChecks = {};
1126 this.oTypes[typeCode].arTlbrChecks = {};
1128 this.oTypes[typeCode].pInputCont = this.pWnd.appendChild(BX.create(
"DIV"));
1130 var k, i, l, row, chId, checkCell, checkBox, but, chBox, j, val, n;
1133 if (this.oTypes[typeCode].oType[
'public'])
1135 toolbarId =
'global';
1136 this.AddButton(typeCode,
'new_line', -1, toolbarId);
1139 for (i = 0, l = this.globalToolbar.length; i < l; i++)
1140 this.AddButton(typeCode, this.globalToolbar[i], i, toolbarId);
1142 if (this.curConfig[typeCode])
1144 for(j = 0, n = this.curConfig[typeCode].length; j < n ; j++)
1146 val = this.curConfig[typeCode][j];
1147 if (val.indexOf(
"-") != -1 && (chBox = BX(
"bxbut~" + typeCode +
"~" +
'global' +
"~" + val.substr(1))))
1148 chBox.checked =
false;
1154 for (k in this.toolbars)
1156 if (typeof this.toolbars[k] !=
'object')
1160 chId =
"bxedtlbr~" + typeCode +
"~" + k;
1161 row = tableCont.insertRow(-1);
1163 checkCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-check-sell bxopt-toolbar-title"}});
1164 checkBox = checkCell.appendChild(BX.create(
"INPUT", {props: {type:
"checkbox", id: chId, checked: true}}));
1165 this.oTypes[typeCode].arTlbrChecks[k] = checkBox;
1168 checkBox.onclick =
function()
1171 bCheck = !!this.checked,
1172 _id = this.
id.split(
"~"),
1175 arCh = _this.oTypes[typeCode].arChecks[tlbrCode],
1178 for (j = 0; j < k; j++)
1179 arCh[j].checked = bCheck;
1180 _this.SaveConfig(typeCode);
1183 BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-toolbar-title", colSpan: 2}, html:
"<label for=\"" + chId +
"\">" + this.toolbars[k][0] +
"</label>"});
1186 for (i = 0, l = this.toolbars[k][1].length; i < l; i++)
1187 this.AddButton(typeCode, this.toolbars[k][1][i], i, k);
1190 BX.adjust(tableCont.insertRow(-1).insertCell(-1),{props: {className:
"bxopt-toolbar-sep", colSpan: 3}});
1192 if (this.curConfig[typeCode] && this.curConfig[typeCode][k])
1194 for(j = 0, n = this.curConfig[typeCode][k].length; j < n ; j++)
1196 val = this.curConfig[typeCode][k][j];
1197 if (val.indexOf(
"-") != -1 && (chBox = BX(
"bxbut~" + typeCode +
"~" + k +
"~" + val.substr(1))))
1198 chBox.checked =
false;
1202 this.CheckToolbar(typeCode, k);
1207 AddButton:
function(typeCode, but, ind, toolbarId)
1209 if (typeof but ==
'undefined')
1213 tableCont = this.oTypes[typeCode].pTable,
1214 row = tableCont.insertRow(-1),
1215 chId =
"bxbut~" + typeCode +
"~" + toolbarId +
"~" + (but ==
'line_begin' ? but : ind),
1218 if (!this.oTypes[typeCode].arChecks[toolbarId])
1219 this.oTypes[typeCode].arChecks[toolbarId] = [];
1221 if (but ==
'new_line' && ind >= 0)
1224 BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-toolbar-sep", colSpan: 3}});
1225 row = tableCont.insertRow(-1);
1229 checkCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-check-sell"}}),
1230 checkBox = checkCell.appendChild(BX.create(
"INPUT", {props: {type:
"checkbox", id: chId}}));
1232 checkBox.checked =
true;
1236 this.oTypes[typeCode].arChecks[toolbarId].push(checkBox);
1238 checkBox.onclick =
function()
1240 var _id = this.
id.split(
"~");
1241 _this.CheckToolbar(_id[1], _id[2]);
1242 _this.SaveConfig(typeCode);
1247 checkBox.checked =
true;
1248 checkBox.disabled =
true;
1251 if (but ==
'new_line')
1253 BX.addClass(checkCell,
"bxopt-toolbar-title");
1254 var sepCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-toolbar-title", colSpan: 2}, html:
"<label for=\"" + chId +
"\">" +
'<?= GetMessage('FILEMAN_EDITOR_BUT_CONF_NEW_LINE
')?>' +
"</label>"});
1256 else if (but ==
'separator')
1258 var sepCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-separator", colSpan: 2}, html:
"<label for=\"" + chId +
"\">" +
'------------ <?= GetMessage('FILEMAN_EDITOR_BUT_CONF_SEP
')?> ------------' +
"</label>"});
1262 var iconCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-but-icon"}});
1263 var text = but[1].name || but[1].title || but[1].id;
1265 if (but[0] ==
'BXButton' || but[0] ==
'BXEdColorPicker')
1267 var pIcon = iconCell.appendChild(BX.create(
"IMG", {props: {id:
"bx_btn_" + but[1].id, src:
"/bitrix/images/1.gif", className:
"bxed-button"}}));
1269 var titleCell = BX.adjust(row.insertCell(-1), {props: {className:
"bxopt-but-title"}, html:
"<label for=\"" + chId +
"\">" + text +
"</label>"});
1272 else if (but[0] ==
'BXEdList' || but[0] ==
'BXStyleList')
1274 iconCell.colSpan =
"2";
1275 var listTable = iconCell.appendChild(BX.create(
"TABLE", {props: {className:
"bxopt-list"},
style: {width: (but[1].field_size || 120) +
"px"}}));
1277 var r = listTable.insertRow(-1);
1278 r.insertCell(-1).appendChild(BX.create(
"DIV", {props: {className:
"bxopt-listtitle"}, html:
"<label for=\"" + chId +
"\">" + text +
"</label>"}));
1279 BX.adjust(r.insertCell(-1), {props: {className:
"bx-listbutton"}, html:
" "});
1284 ChangeEditorType:
function(type)
1286 this.pEditorType.value = type;
1287 for (var k in this.oTypes)
1289 if (typeof this.oTypes[k] ==
'object' )
1293 if (!this.oTypes[k].pTable)
1294 this.BuildButtons(k);
1296 this.oTypes[k].pTable.style.display =
'';
1300 if (this.oTypes[k].pTable)
1301 this.oTypes[k].pTable.style.display =
'none';
1307 SaveConfig:
function(typeCode)
1310 BX.cleanNode(this.oTypes[typeCode].pInputCont);
1313 if (this.oTypes[typeCode].oType[
'public'])
1319 arCh = this.oTypes[typeCode].arChecks[
'global'],
1322 for (i = 0; i < l; i++)
1324 ind = arCh[i].id.split(
"~")[3];
1325 but = this.globalToolbar[ind];
1326 value.push((arCh[i].checked ?
"" :
"-") + ind.toString());
1328 if (!arCh[i].checked)
1335 for(i = 0; i < l; i++)
1337 this.oTypes[typeCode].pInputCont.appendChild(BX.create(
"INPUT", {props: {type:
'hidden', name:
'tlbr[' + typeCode +
'][global][' + i +
']', value: value[i]}}));
1342 this.oTypes[typeCode].pInputCont.appendChild(BX.create(
"INPUT", {props: {type:
'hidden', name:
'tlbr[' + typeCode +
']', value:
'clean'}}));
1351 arCh = this.oTypes[typeCode].arChecks,
1357 if (typeof arCh[k] !=
'object')
1361 for (i = 0; i < l; i++)
1363 ind = arCh[k][i].id.split(
"~")[3];
1365 this.oTypes[typeCode].pInputCont.appendChild(BX.create(
"INPUT", {props: {type:
'hidden', name:
'tlbr[' + typeCode +
'][' + k +
'][' + i +
']', value: (arCh[k][i].checked ?
"" :
"-") + ind.toString()}}));
1367 if (!arCh[k][i].checked)
1374 BX.cleanNode(this.oTypes[typeCode].pInputCont);
1375 this.oTypes[typeCode].pInputCont.appendChild(BX.create(
"INPUT", {props: {type:
'hidden', name:
'tlbr[' + typeCode +
']', value:
'clean'}}));
1380 CheckToolbar:
function(typeCode, tlbr)
1382 if (this.oTypes[typeCode].oType.public)
1386 tlbrCh = BX(
"bxedtlbr~" + typeCode +
"~" + tlbr),
1388 arCh = this.oTypes[typeCode].arChecks[tlbr],
1391 for (i = 0; i < l; i++)
1393 if (arCh[i].checked)
1401 tlbrCh.checked = !!bCheck;
1405new BXButtonConfig();
1412 <tr
class=
"heading">
1413 <td colspan=
"2"><? echo
GetMessage(
"FILEMAN_EDITOR_CONVERT_SETTINGS");?></td>
1418 <td
width=
"50%" valign=
"top"><label
for=
'replace_new_lines'><?echo
GetMessage(
"FILEMAN_REPLACE_NEW_LINES_WITH_BR");?>:</td>
1420 <input type=
"checkbox" name=
"replace_new_lines" id=
'replace_new_lines' value=
"Y" <?
if (COption::GetOptionString(
$module_id,
"replace_new_lines",
'Y') ==
'Y') echo
'checked';?>>
1425 <td
width=
"50%" valign=
"top"><label
for=
'use_lca'><?echo
GetMessage(
"FILEMAN_USE_LCA");?>:</td>
1427 <input type=
"checkbox" name=
"use_lca" id=
'use_lca' value=
"Y" <?
if (COption::GetOptionString(
$module_id,
"use_lca",
'N') ==
'Y') echo
'checked';?>>
1431 <td
width=
"50%" valign=
"top"><?echo
GetMessage(
"FILEMAN_ENTITIES_GROUPS");?>:</td>
1440 <table border=
"0" style=
"width:100%">
1442 <td><input type=
"checkbox" name=
"ar_entities[]" id=
'ent_umlya' value=
"umlya" <?
if(in_array(
'umlya',
$ar_entities)) echo
'checked';?>></td>
1443 <td><label
for=
'ent_umlya'><?echo
GetMessage(
"FILEMAN_ENTITIES_UMLYA");?></label></td>
1446 <td><input type=
"checkbox" name=
"ar_entities[]" id=
"ent_greek" value=
"greek" <?
if(in_array(
'greek',
$ar_entities)) echo
'checked';?>></td>
1447 <td><label
for=
'ent_greek'><?echo
GetMessage(
"FILEMAN_ENTITIES_GREEK");?></label></td>
1450 <td><input type=
"checkbox" name=
"ar_entities[]" value=
"other" id=
"ent_other" <?
if(in_array(
'other',
$ar_entities)) echo
'checked';?>></td>
1451 <td><label
for=
'ent_other'><?echo
GetMessage(
"FILEMAN_ENTITIES_OTHER");?></label></td>
1460 <tr
class=
"heading">
1461 <td colspan=
"2"><? echo
GetMessage(
"FILEMAN_OPTION_SPELL_SET");?></td>
1465 if (function_exists(
'pspell_config_create')):
1466 $use_pspell_checked = (COption::GetOptionString(
$module_id,
"use_pspell",
"Y")==
"Y") ?
"checked" :
"";
1469 <td valign=
"top"><label
for=
"use_pspell"><?echo
GetMessage(
"FILEMAN_OPTION_USE_PSPELL");?></label><br>
1470 <a
title=
"<?echo GetMessage("FILEMAN_OPTION_ADDISH_DICS_TITLE
");?>" href=
"http://aspell.sourceforge.net/" target=
"blank"><?echo
GetMessage(
"FILEMAN_OPTION_ADDISH_DICS");?></a><br>
1473 <input type=
"checkbox" name=
"use_pspell" id=
"use_pspell" value=
"Y" <?echo $use_pspell_checked;?>>
1477 <td><? echo
GetMessage(
"FILEMAN_OPTION_USER_DIC_DIR");?></td>
1479 <input type=
"text" name=
"user_dics_path" style=
"width: 100%" value=
"<?= htmlspecialcharsbx(COption::GetOptionString($module_id, "user_dics_path
", "/bitrix/modules/fileman/u_dics
"))?>">
1483 <td><label
for=
"use_separeted_dics"><?=
GetMessage(
"FILEMAN_OPTION_USE_SEP_DICS");?></label></td>
1485 <input type=
"checkbox" name=
"use_separeted_dics" id=
"use_separeted_dics" value=
"Y" <?= (COption::GetOptionString(
$module_id,
"use_separeted_dics",
"Y")==
"Y") ?
"checked" :
"";?>>
1489 COption::SetOptionString(
$module_id,
"use_pspell",
"N");
1492 <td valign=
"top"><?echo
GetMessage(
"FILEMAN_OPTION_USE_PSPELL");?><br>
1493 <a
title=
"<?echo GetMessage("FILEMAN_OPTION_INSTALL_PSPELL_TITLE
");?>" href=
"http://php.net/manual/en/ref.pspell.php" target=
"blank"><?echo
GetMessage(
"FILEMAN_OPTION_INSTALL_PSPELL");?></a><br>
1494 <a
title=
"<?echo GetMessage("FILEMAN_OPTION_ADDISH_DICS_TITLE
");?>" href=
"http://aspell.sourceforge.net/" target=
"blank"><?echo
GetMessage(
"FILEMAN_OPTION_ADDISH_DICS");?></a><br>
1497 <?echo
GetMessage(
"FILEMAN_OPTION_NOT_INSTALLED");?>
1512<div
class=
"bx-ml-type" id=
"type_cont_<?= $type["id"]?>">
1513<div
class=
"bx-ml-type-label">
1514 <?
if (
$type[
"b_new"] ??
false):?>
1515 <input type=
"hidden" name=
"<?= $name."[NEW]
"?>" value=
"Y" />
1518 <input type=
"hidden" name=
"<?= $name."[SYS]
"?>" value=
"<?= $type["system
"] ?? false ? "Y
" : "N
"?>" />
1520 <?
if(
$type[
"system"] ??
false):?>
1521 <div><?= htmlspecialcharsex(
$type[
"name"])?></div>
1523 <div
id=
"type_name_<?= $type["id"]?>" class=
"bx-ml-editable"><?= htmlspecialcharsex(
$type[
"name"])?></div>
1526 <?
if(
$type[
"code"] !=
"image" || !
$type[
"system"]):?>
1527 <a
id=
"type_del_<?= $type["id"]?>" class=
"bx-ml-type-del" href=
"javascript:void(0);"><?=
GetMessage(
"FILEMAN_OPTION_DELETE")?></a>
1531<?
if(
$type[
"code"] !=
"image" || !
$type[
"system"]):?>
1532 <div
class=
"bx-ml-type-label-deleted">
1533 <input
id=
"type_empty_<?= $type["id"]?>" type=
"hidden" value=
"<?= $type['empty'] ? 'Y' : 'N'?>" />
1534 <input
id=
"type_del_inp_<?= $type["id"]?>" type=
"hidden" name=
"<?= $name."[DEL]
"?>" value=
"N" />
1535 <div
id=
"type_del_name_<?= $type["id"]?>"><?= htmlspecialcharsex(
$type[
"name"])?></div>
1536 <a
id=
"type_restore_<?= $type["id"]?>" class=
"bx-ml-type-restore" href=
"javascript:void(0);"><?=
GetMessage(
"FILEMAN_ML_TYPE_RESTORE")?></a>
1540<div
class=
"bx-ml-type-params">
1541 <table border=
"0" width=
"100%">
1542 <tr<?
if(!(
$type[
"system"] ??
null)):?>
class=
"adm-detail-required-field"<?
endif;?>><td
class=
"adm-detail-content-cell-l bx-ml-td-left" width=
"40%">
1543 <label
for=
"type_name_inp_<?= $type["id"]?>"><?=
GetMessage(
'FILEMAN_OPTION_PROPS_NAME')?>:</label>
1544 </td><td
class=
"adm-detail-content-cell-r" width=
"60%">
1545 <?
if(
$type[
"system"] ??
false):?>
1546 <span
class=
"bx-sys-value"><?= htmlspecialcharsex(
$type[
"name"])?></span>
1547 <input type=
"hidden" id=
"type_name_inp_<?= $type["id"]?>" value=
"<?= htmlspecialcharsbx($type["name
"])?>" />
1550 <input type=
"text" name=
"<?= $name."[NAME]
"?>" id=
"type_name_inp_<?= htmlspecialcharsbx($type["id"])?>" value=
"<?= htmlspecialcharsbx($type["name
"])?>" size=
"40" />
1554 <tr<?
if(!(
$type[
"system"] ??
null)):?>
class=
"adm-detail-content-cell-l adm-detail-required-field"<?
endif;?>><td
class=
"bx-ml-td-left" width=
"40%">
1555 <input type=
"hidden" name=
"<?= $name."[CODE]
"?>" value=
"<?= $type["code
"]?>" />
1556 <label
for=
"type_code_inp_<?= htmlspecialcharsbx($type["id"])?>"><?=
GetMessage(
'FILEMAN_ML_ADD_TYPE_CODE')?><?
if(!(
$type[
"system"] ??
null)):?><span
class=
"required"><sup>1</sup></span><?
endif;?>:</label>
1557 </td><td
class=
"adm-detail-content-cell-r" width=
"60%">
1558 <?
if(
$type[
"system"] ??
false):?>
1559 <span
class=
"bx-sys-value"><?= htmlspecialcharsex(
$type[
"code"])?></span>
1560 <input type=
"hidden" name=
"<?= $name."[CODE]
"?>" value=
"<?= htmlspecialcharsbx($type["code
"])?>" />
1562 <input type=
"text" name=
"<?= $name."[CODE]
"?>" id=
"type_code_inp_<?= htmlspecialcharsbx($type["id"])?>" value=
"<?= htmlspecialcharsbx($type["code
"])?>" size=
"40" />
1566 <tr
class=
"adm-detail-required-field"><td
class=
"adm-detail-content-cell-l bx-ml-td-left" width=
"40%">
1567 <label
for=
"type_ext_inp_<?= htmlspecialcharsbx($type["id"])?>"><?=
GetMessage(
'FILEMAN_ML_ADD_TYPE_EXT')?><span
class=
"required"><sup>1</sup></span>:</label>
1568 </td><td
class=
"adm-detail-content-cell-r" width=
"60%">
1569 <input type=
"text" name=
"<?= $name."[EXT]
"?>" id=
"type_ext_inp_<?= htmlspecialcharsbx($type["id"])?>" value=
"<?= $type["ext
"]?>" size=
"40" />
1571 <tr><td
class=
"adm-detail-content-cell-l bx-ml-td-left" width=
"40%">
1572 <label
for=
"type_desc_inp_<?= htmlspecialcharsbx($type["id"])?>"><?=
GetMessage(
'FILEMAN_ML_ADD_TYPE_DESC')?>:</label>
1573 </td><td
class=
"adm-detail-content-cell-r" style=
"height: 50px;" width=
"60%">
1574 <?
if(
$type[
"system"] ??
false):?>
1575 <input name=
"<?= $name."[DESC]
"?>" type=
"hidden" value=
"<?= htmlspecialcharsbx($type["desc
"])?>" />
1578 <textarea name=
"<?= $name."[DESC]
"?>" id=
"type_desc_inp_<?= htmlspecialcharsbx($type["id"])?>" style=
"width: 260px;" rows=
"2" cols=
"30"><?=
htmlspecialcharsbx(
$type[
"desc"])?></textarea>
1585 $s = ob_get_contents();
1597 <label
for=
"use_medialib"><?=
GetMessage(
"FILEMAN_OPTION_USE_MEDIALIB")?>:</label></td>
1598 <td
width=
"60%"><input type=
"checkbox" name=
"use_medialib" id=
"use_medialib" value=
"Y" <?
if(
$useML) echo
" checked";?> onclick=
"BX('edit5_edit_table').className = 'edit-table' + (this.checked ? '' : ' edit-table-ml-hidden');">
1599 <img src=
"/bitrix/images/1.gif" style=
"width: 110px; height: 1px;" />
1602 <tr <?= $displ?>
class=
"bx-ml-hidden-row">
1603 <td><label
for=
"medialib_thumb_width"><?=
GetMessage(
"FILEMAN_MEDIALIB_THUMB_SIZE")?>:</label></td>
1604 <td><input type=
"text" name=
"medialib_thumb_width" id=
"medialib_thumb_width" value=
"<?= COption::GetOptionInt($module_id, "ml_thumb_width
", 140)?>" size=
"6"/> x <input type=
"text" name=
"medialib_thumb_height" value=
"<?= COption::GetOptionInt($module_id, "ml_thumb_height
", 105)?>" size=
"6"/></td>
1606 <tr <?= $displ?>
class=
"bx-ml-hidden-row">
1607 <td><label
for=
"medialib_ext"><?=
GetMessage(
"FILEMAN_MEDIA_EXT")?>:</label></td>
1608 <td><input type=
"text" value=
"<?= htmlspecialcharsbx(COption::GetOptionString($module_id, "ml_media_extentions
", CMedialib::GetDefaultMediaExtentions()))?>" size=
"40" id=
"medialib_ext" name=
"medialib_ext"/></td>
1610 <tr <?= $displ?>
class=
"bx-ml-hidden-row">
1611 <td><label
for=
"medialib_max_width"><?=
GetMessage(
"FILEMAN_MEDIALIB_MAX_SIZE")?>:</label></td>
1612 <td><input type=
"text" name=
"medialib_max_width" id=
"medialib_max_width" value=
"<?= COption::GetOptionInt($module_id, "ml_max_width
", 1024)?>" size=
"6"/> x <input type=
"text" name=
"medialib_max_height" value=
"<?= intval(COption::GetOptionInt($module_id, "ml_max_height
", 1024))?>" size=
"6"/></td>
1614 <tr <?= $displ?>
class=
"bx-ml-hidden-row">
1615 <td><label
for=
"medialib_use_default"><?=
GetMessage(
"FILEMAN_MEDIA_USE_DEF")?>:</label></td>
1616 <td><input type=
"checkbox" value=
"Y" <?
if(COption::GetOptionString(
$module_id,
"ml_use_default",
true)) echo
" checked";?>
id=
"medialib_use_default" name=
"medialib_use_default"/></td>
1624 <tr
class=
"heading bx-ml-hidden-row" <?=
$displ?>>
1625 <td colspan=2><?=
GetMessage(
"FILEMAN_SEC_MEDIALIB_TYPES")?></td>
1627 <tr <?= $displ?>
class=
"bx-ml-hidden-row"><td colspan=
"2" align=
"center">
1629 <table
id=
"bxml_type_tbl">
1639 <tr><td
align=
"right">
1640 <input onclick=
"addType();" type=
"button" value=
"<?= GetMessage("FILEMAN_ML_ADD_TYPE
")?> >>" title=
"<?= GetMessage("FILEMAN_ML_ADD_TYPE_TITLE
")?>" />
1642 <tr><td
align=
"left">
1644 <span
class=
"required"><sup>1</sup></span><?=
GetMessage(
"FILEMAN_ONLY_LATIN")?><br>
1650window.onload =
function(){setTimeout(
function()
1653 pTypeTbl: BX(
"bxml_type_tbl"),
1665 var
id = window.oMLSet.curCount++;
1666 var newCell = window.oMLSet.pTypeTbl.insertRow(window.oMLSet.pTypeTbl.rows.length - 1).insertCell(-1);
1667 var typeHtml =
'<?= CUtil::JSEscape(_MLGetTypeHTML(array("id" => "tmp_ml_type_id", "name" => "", "code" => "", "ext" => "", "icon" => "", "desc" => "", "b_new" => true, "empty" => true)));?>';
1670 typeHtml = typeHtml.replace(/tmp_ml_type_id/ig,
id);
1672 var code = [], start, end, i, cnt;
1673 while((start = typeHtml.indexOf(
'<' +
'script>')) != -1)
1675 var end = typeHtml.indexOf(
'</' +
'script>', start);
1678 code[code.length] = typeHtml.substr(start + 8, end - start - 8);
1679 typeHtml = typeHtml.substr(0, start) + typeHtml.substr(end + 9);
1682 for(var i = 0, cnt = code.length; i < cnt; i++)
1684 jsUtils.EvalGlobal(code[i]);
1685 newCell.innerHTML = typeHtml;
1694 pCont: BX(
'type_cont_' +
id),
1695 pName: BX(
'type_name_' +
id),
1696 pNameInp: BX(
'type_name_inp_' +
id),
1697 pDelLink: BX(
'type_del_' +
id),
1698 pRestoreLink: BX(
'type_restore_' +
id),
1699 pDelInput: BX(
'type_del_inp_' +
id),
1700 pEmpty: BX(
'type_empty_' +
id)
1703 if (oType.pName && oType.pNameInp)
1705 oType.pNameInp.onkeyup =
function()
1707 while (oType.pName.firstChild)
1708 oType.pName.removeChild(oType.pName.firstChild);
1710 oType.pName.appendChild(document.createTextNode(oType.pNameInp.value));
1713 if (oType.pNameInp.value ==
"")
1715 oType.pNameInp.value =
"<?= GetMessage("FILEMAN_ML_ADD_TYPE_NEW
")?>";
1716 oType.pName.innerHTML =
"<?= GetMessage("FILEMAN_ML_ADD_TYPE_NEW
")?>";
1717 oType.pNameInp.focus();
1718 oType.pNameInp.select();
1724 oType.pDelLink.onclick =
function()
1726 if (oType.pEmpty.value ==
"N")
1727 return alert(
"<?= GetMessage("FILEMAN_ML_TYPE_CANT_DEL
")?>");
1729 oType.pCont.className =
"bx-ml-type bx-ml-type-deleted";
1731 if (!oType.pDelName)
1732 oType.pDelName = BX(
"type_del_name_" +
id);
1734 while (oType.pDelName.firstChild)
1735 oType.pDelName.removeChild(oType.pDelName.firstChild);
1737 oType.pDelName.appendChild(document.createTextNode(oType.pNameInp.value));
1738 oType.pDelInput.value =
"Y";
1742 if (oType.pRestoreLink)
1744 oType.pRestoreLink.onclick =
function()
1746 oType.pCont.className =
"bx-ml-type";
1747 oType.pDelInput.value =
"N";
1755<?
if (
$USER->IsAdmin()):?>
1757<?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights2.php");?>
1759 <tr
class=
"heading">
1760 <td colspan=
"2"><a name=
"limitaccess"></a><?=
GetMessage(
'fileman_opt_restricted')?></td>
1763 <td valign=
"top"><?=
GetMessage(
'fileman_opt_restricted_rights')?></td>
1766$arGroups = explode(
",", COption::GetOptionString(
'fileman',
'default_edit_groups',
''));
1770while($group =
$gr->Fetch())
1772 $sel = in_array($group[
"ID"],
$arGroups);
1775 $sOptions .=
'<option value="'.$group[
"ID"].
'"'.($sel?
" selected":
"").
'>'.
htmlspecialcharsbx($group[
"NAME"]).
" [".$group[
"ID"].
"]".
'</option>'.
"\n";
1781 <
select name=
"DEFAULT_EDIT_GROUPS[]" size=
"7" multiple>
1790 function RestoreDefaults()
1792 if(confirm(
'<?= AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>'))
1793 window.location =
"<?= $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?echo LANG?>&mid=<?echo urlencode($mid)?>&<?=bitrix_sessid_get()?>";
1796<input type=
"submit" class=
"adm-btn-save" <?
if (!
$USER->CanDoOperation(
'fileman_edit_all_settings')) echo
"disabled" ?> name=
"Update" value=
"<?= GetMessage('FILEMAN_OPTION_SAVE')?>">
1797<input type=
"reset" name=
"reset" onClick=
"BX('site_select_id').disabled=<? if(COption::GetOptionString($module_id, "different_set
", "N
") != "Y
") echo "true"; else echo "false"; ?>; SelectSite('<?echo htmlspecialcharsbx($siteList[0]["ID
"])?>');" value=
"<?= GetMessage('FILEMAN_OPTION_RESET')?>">
1798<input type=
"hidden" name=
"Update" value=
"Y">
1799<input <?
if (!
$USER->CanDoOperation(
'fileman_edit_all_settings')) echo
"disabled" ?> type=
"button" title=
"<?= GetMessage('MAIN_HINT_RESTORE_DEFAULTS')?>" OnClick=
"RestoreDefaults();" value=
"<?= GetMessage('MAIN_RESTORE_DEFAULTS')?>">
static ShowMessage($message)
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static GetList($by="sort", $order="asc", $arFilter=[])
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
static RemoveOption($module_id, $name="", $site=false)
static SetOptionString($module_id, $name, $value="", $desc=false, $site="")
static GetPropstypes($site="")
static SetPropstypes($arPT=Array(), $desc=false, $site="")
static GetEditorToolbarConfig($editorType)
static PhpToJSObject($arData, $bWS=false, $bSkipTilda=false, $bExtType=false)
hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> height
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
bx popup label bx hidden PROPERTY[<?=$propertyIndex?>][CODE]<?=htmlspecialcharsEx( $propertyCode)?> bx_view_property_<?=$propertyIndex?> overflow
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
INPUT INPUT INPUT INPUT bxedtlbr heading FILEMAN_EDITOR_CONVERT_SETTINGS top FILEMAN_REPLACE_NEW_LINES_WITH_BR top checkbox replace_new_lines Y replace_new_lines top FILEMAN_USE_LCA top checkbox use_lca Y use_lca top FILEMAN_ENTITIES_GROUPS top ar_entities $ar_entities
hidden mSiteList<?=htmlspecialcharsbx(serialize( $siteList))?><?=htmlspecialcharsbx( $siteList[ $j]["ID"])?> _Propery<? if(((COption::GetOptionString( $module_id, "different_set", "N")=="Y") &&( $j !=0))||(COption::GetOptionString( $module_id, "different_set", "N")=="N")) echo "display: none;"?> top adm detail content cell l top adm detail content cell r heading center center ID left
_MLGetTypeHTML($type=array())
showCustomSpellSettings(id)
$_SERVER["DOCUMENT_ROOT"]
if(!defined('SITE_ID')) $lang
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
SetMenuTypes($armt, $site='', $description=false)
GetMenuTypes($site=false, $default_value=false)
IsModuleInstalled($module_id)
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
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
</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."%"
for( $i=0, $max=count( $arShownFieldsParams);$i< $max;$i++)
adm detail iblock types adm detail iblock list tr_SITE_ID display