5if(!defined(
"B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==
true)
die();
9if (!isset($adminFormParams) || !is_array($adminFormParams))
11 $adminFormParams =
array(
12 'tabPrefix' =>
'cedit'
21 if(!array_key_exists(
"CUSTOM", $arTab) || $arTab[
"CUSTOM"] !==
"Y")
24 if(is_array($arTab[
"FIELDS"]))
26 foreach($arTab[
"FIELDS"] as
$i => $arField)
37 if(!array_key_exists(
"CUSTOM", $arTab) || $arTab[
"CUSTOM"] !==
"Y")
46 if(!array_key_exists(
"CUSTOM", $arTab) || $arTab[
"CUSTOM"] !==
"Y")
48 if(is_array($arTab[
"FIELDS"]))
50 foreach($arTab[
"FIELDS"] as $arField)
54 if (!empty($arField[
"delimiter"]))
57 $arSystemFields[$id] = ($arField[
"required"]?
"*":
" ").$label;
67foreach($this->tabs as $arTab)
69 if(!array_key_exists(
"CUSTOM", $arTab) || $arTab[
"CUSTOM"] !==
"Y")
72 "TAB" => $arTab[
"TAB"],
75 if(is_array($arTab[
"FIELDS"]))
77 foreach($arTab[
"FIELDS"] as $arField)
81 if($arField[
"delimiter"])
82 $ar[
"FIELDS"][$id] =
"--".$label;
84 $ar[
"FIELDS"][$id] = ($arField[
"required"]?
"*":
" ").$label;
94 "admin_lib_sett_tab_prompt" =>
GetMessage(
"admin_lib_sett_tab_prompt"),
95 "admin_lib_sett_tab_default_name" =>
GetMessage(
"admin_lib_sett_tab_default_name"),
96 "admin_lib_sett_sec_prompt" =>
GetMessage(
"admin_lib_sett_sec_prompt"),
97 "admin_lib_sett_sec_default_name" =>
GetMessage(
"admin_lib_sett_sec_default_name"),
98 "admin_lib_sett_sec_rename" =>
GetMessage(
"admin_lib_sett_sec_rename"),
99 "admin_lib_sett_tab_rename" =>
GetMessage(
"admin_lib_sett_tab_rename"),
114<form enctype=
"multipart/form-data" name=
"form_settings" action=
"<?echo $APPLICATION->GetCurPageParam()?>" method=
"POST">
115<div
class=
"settings-form">
116<h2 ondblclick=
"exportSettingsToPhp(event, '<?echo $this->name;?>')"><?echo
GetMessage(
"admin_lib_sett_tab_fields")?></h2>
117<table
width=
"100%" cellspacing=
"0">
119 <td colspan=
"2"><?echo
GetMessage(
"admin_lib_sett_tab_available_tabs")?>:</td>
120 <td colspan=
"2"><?echo
GetMessage(
"admin_lib_sett_tab_selected_tabs")?>:</td>
124 <
select class=
"select" name=
"available_tabs" id=
"available_tabs" onchange=
"Sync();" size=
"8" style=
"height: 190px;">
128 echo
'<option value="'.htmlspecialcharsbx($id).
'">'.
htmlspecialcharsbx($label).
'</option>';
134 <input type=
"button" name=
"tabs_copy" id=
"tabs_copy" value=
" > " title=
"<?echo GetMessage("admin_lib_sett_tab_copy
")?>" disabled onclick=
"OnAdd(this.id, <? echo htmlspecialcharsbx($jsAdminFormParams); ?>);">
137 <
select class=
"select" name=
"selected_tabs" id=
"selected_tabs" size=
"8" onchange=
"Sync();" style=
"height: 190px;">
141 echo
'<option value="'.htmlspecialcharsbx($tab_id).
'">'.
htmlspecialcharsbx($arTab[
"TAB"]).
'</option>';
147 <input type=
"button" name=
"tabs_up" id=
"tabs_up" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_up
")?>" title=
"<?echo GetMessage("admin_lib_sett_up_title
")?>" disabled onclick=
"BX.selectUtils.moveOptionsUp(document.form_settings.selected_tabs);"><br>
148 <input type=
"button" name=
"tabs_down" id=
"tabs_down" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_down
")?>" title=
"<?echo GetMessage("admin_lib_sett_down_title
")?>" disabled onclick=
"BX.selectUtils.moveOptionsDown(document.form_settings.selected_tabs);"><br>
149 <input type=
"button" name=
"tabs_rename" id=
"tabs_rename" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_tab_rename
")?>" title=
"<?echo GetMessage("admin_lib_sett_tab_rename_title
")?>" disabled onclick=
"OnRename(this.id);"><br>
150 <input type=
"button" name=
"tabs_add" id=
"tabs_add" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_tab_add
")?>" title=
"<?echo GetMessage("admin_lib_sett_tab_add_title
")?>" onclick=
"OnAdd(this.id, <? echo htmlspecialcharsbx($jsAdminFormParams); ?>);"><br>
151 <input type=
"button" name=
"tabs_delete" id=
"tabs_delete" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_del
")?>" title=
"<?echo GetMessage("admin_lib_sett_del_title
")?>" disabled onclick=
"OnDelete(this.id);"><br>
155 <td colspan=
"2"><?echo
GetMessage(
"admin_lib_sett_tab_available_fields")?>:</td>
156 <td colspan=
"2"><?echo
GetMessage(
"admin_lib_sett_tab_selected_fields")?>:</td>
160 <
select class=
"select" name=
"available_fields" id=
"available_fields" size=
"12" multiple onchange=
"Sync();" style=
"height: 255px;">
164 echo
'<option value="'.$id.
'">'.$label.
'</option>';
170 <input type=
"button" name=
"fields_copy" id=
"fields_copy" value=
" > " title=
"<?echo GetMessage("admin_lib_sett_fields_copy
")?>" disabled onclick=
"OnAdd(this.id, <? echo htmlspecialcharsbx($jsAdminFormParams); ?>);"><br><br>
172 <td
id=
"selected_fields">
173 <
select style=
"display:block; height: 255px;" disabled class=
"select" name=
"selected_fields[undef]" id=
"selected_fields[undef]" size=
"12" multiple></
select>
177 if(is_array($arTab[
"FIELDS"]))
179 echo
'<select style="display:none; height:255px;" class="select" name="selected_fields['.$tab_id.
']" id="selected_fields['.$tab_id.
']" size="12" multiple onchange="Sync();">';
180 foreach($arTab[
"FIELDS"] as $field_id => $label)
182 echo
'<option value="'.$field_id.
'">'.$label.
'</option>';
190 <input type=
"button" name=
"fields_up" id=
"fields_up" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_up
")?>" title=
"<?echo GetMessage("admin_lib_sett_up_title
")?>" disabled onclick=
"FieldsUpAndDown('up');"><br>
191 <input type=
"button" name=
"fields_down" id=
"fields_down" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_down
")?>" title=
"<?echo GetMessage("admin_lib_sett_down_title
")?>" disabled onclick=
"FieldsUpAndDown('down');"><br>
192 <input type=
"button" name=
"fields_rename" id=
"fields_rename" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_field_rename
")?>" title=
"<?echo GetMessage("admin_lib_sett_field_rename_title
")?>" disabled onclick=
"OnRename(this.id);"><br>
193 <input type=
"button" name=
"fields_add" id=
"fields_add" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_field_add
")?>" title=
"<?echo GetMessage("admin_lib_sett_field_add_title
")?>" onclick=
"OnAdd(this.id, <? echo htmlspecialcharsbx($jsAdminFormParams); ?>);"><br>
194 <input type=
"button" name=
"fields_delete" id=
"fields_delete" class=
"button" value=
"<?echo GetMessage("admin_lib_sett_del
")?>" title=
"<?echo GetMessage("admin_lib_sett_fields_delete
")?>" disabled onclick=
"OnDelete(this.id);">
199if(
$GLOBALS[
"USER"]->CanDoOperation(
'edit_other_settings')):
201<h2><?echo
GetMessage(
"admin_lib_sett_common")?></h2>
202<table cellspacing=
"0" width=
"100%">
204 <td><input type=
"checkbox" name=
"set_default" id=
"set_default" value=
"Y"></td>
205 <td><label
for=
"set_default"><?echo
GetMessage(
"admin_lib_sett_common_set")?></label></td>
206 <td><a
class=
"delete-icon" title=
"<?echo GetMessage("admin_lib_sett_common_del
")?>" href=
"javascript:if(confirm('<?echo GetMessage("admin_lib_sett_common_del_conf
")?>'))<?echo $this->name?>.DeleteSettings(true)"></a></td>
212 <div
id=
"save_settings_error" class=
"settings-error">
213 <p
class=
"settings-error-header"><?=
GetMessage(
'SAVE_SETTINGS_ERROR_TITLE'); ?></p>
214 <p
class=
"settings-error-message"><?=
GetMessage(
'SAVE_SETTINGS_ERROR'); ?></p>
215 <div
id=
"absent_required_fields" class=
"absent-fields"></div>
222<input type=
"button" id=
"save_settings" value=
"<?echo GetMessage("admin_lib_sett_save
")?>" onclick=
"<?echo $this->name?>.SaveSettings(this);" title=
"<?echo GetMessage("admin_lib_sett_save_title
")?>" class=
"adm-btn-save">
223<input type=
"button" value=
"<?echo GetMessage("admin_lib_sett_cancel
")?>" onclick=
"<?echo $this->name?>.CloseSettings()" title=
"<?echo GetMessage("admin_lib_sett_cancel_title
")?>">
224<input type=
"button" value=
"<?echo GetMessage("admin_lib_sett_reset
")?>" onclick=
"if(confirm('<?echo GetMessage("admin_lib_sett_reset_ask
")?>'))<?echo $this->name?>.DeleteSettings()" title=
"<?echo GetMessage("admin_lib_sett_reset_title
")?>">
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)
Form FILTER_ACTION disabled
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
<? endif;?> window document title
$GLOBALS['_____370096793']