2require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/prolog_admin_before.php");
8 [
"SUFFIX" => (isset($_GET[
'subdialog']) && $_GET[
'subdialog'] ===
'Y' ?
'subdialog' :
'')]
13 if (!
$USER->CanDoOperation(
'fileman_edit_existent_folders') && !
$USER->CanDoOperation(
'fileman_admin_folders'))
21 $obSite = CSite::GetByID(
$_REQUEST[
"site"]);
22 if ($arSite = $obSite->Fetch())
38 $position = mb_strrpos(
$path,
"/");
39 if ($position ===
false)
63if(!
$USER->CanDoFileOperation(
'fm_edit_existent_folder',Array(
$site,
$path)))
75 $bNeedSectionFile =
false;
77 if (isset($_POST[
"sSectionName"]) && $_POST[
"sSectionName"] <>
'')
79 $strSectionName =
"\$sSectionName = \"".EscapePHPString($_POST[
"sSectionName"]).
"\";\n";
80 $bNeedSectionFile =
true;
83 $strDirProperties =
"\$arDirProperties = Array(\n";
85 if (isset($_POST[
"PROPERTY"]) && is_array($_POST[
"PROPERTY"]))
88 foreach ($_POST[
"PROPERTY"] as $arProperty)
90 $arProperty[
"CODE"] = (isset($arProperty[
"CODE"]) ? trim($arProperty[
"CODE"]) :
"");
91 $arProperty[
"VALUE"] = (isset($arProperty[
"VALUE"]) ? trim($arProperty[
"VALUE"]) :
"");
93 if ($arProperty[
"VALUE"] <>
'' && preg_match(
"/[a-zA-Z_-~]+/i", $arProperty[
"CODE"]) )
96 $strDirProperties .=
",\n";
98 $strDirProperties .=
" \"".EscapePHPString($arProperty[
"CODE"]).
"\" => \"".
EscapePHPString($arProperty[
"VALUE"]).
"\"";
100 $bNeedSectionFile =
true;
105 $strDirProperties .=
"\n);\n";
108 $arUndoParams =
array(
109 'module' =>
'fileman',
110 'undoType' =>
'edit_section',
111 'undoHandler' =>
'CFileman::UndoEditFile',
112 'arContent' =>
array(
114 'content' =>
$f->GetContents()
119 if($bNeedSectionFile)
123 if(COption::GetOptionString(
"fileman",
"log_page",
"Y")==
"Y")
139 if (isset($_GET[
'subdialog']) && $_GET[
'subdialog'] ==
'Y')
140 echo
"<script>structReload('".urlencode(
$_REQUEST[
"path"]).
"');</script>";
149if (CModule::IncludeModule(
"fileman") && is_callable(Array(
"CFileMan",
"GetPropstypes")))
158 $sSectionName = (isset($_POST[
"sSectionName"]) && $_POST[
"sSectionName"] <>
'' ? $_POST[
"sSectionName"] :
"");
160 if (isset($_POST[
"PROPERTY"]) && is_array($_POST[
"PROPERTY"]))
162 foreach ($_POST[
"PROPERTY"] as $arProperty)
164 if (isset($arProperty[
"VALUE"]) && $arProperty[
"VALUE"] <>
'')
205 <p><a href=
"/bitrix/admin/fileman_folder.php?lang=<?=urlencode($lang)?>&site=<?=urlencode($site)?>&path=<?=urlencode($path)?>&back_url=<?=urlencode($back_url)?>"><?=
GetMessage(
"FOLDER_EDIT_IN_ADMIN_SECTION")?></a></p>
213<table
class=
"bx-width100" id=
"bx_folder_properties">
217 <table cellspacing=
"0">
219 <td><?=
GetMessage(
"FOLDER_EDIT_FOLDER_NAME")?></td>
220 <td
id=
"bx_folder_name">&
nbsp;</td>
227 <td
class=
"bx-popup-label bx-width30"><?=
GetMessage(
"FOLDER_EDIT_NAME")?>:</td>
228 <td><input type=
"text" style=
"width:90%;" name=
"sSectionName" value=
"<?=htmlspecialcharsEx($sSectionName)?>"></td>
232 <td colspan=
"2"><div
class=
"empty"></div></td>
239 <table cellspacing=
"0">
241 <td><?=
GetMessage(
"FOLDER_EDIT_WINDOW_TITLE");?></td>
242 <td
id=
"bx_folder_prop_name">&
nbsp;</td>
257 <tr
style=
"height:30px;">
258 <td
class=
"bx-popup-label bx-width30"><?=(
271 <input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
273 <div
id=
"bx_view_property_<?=$propertyIndex?>" style=
"overflow:hidden;padding:2px 12px 2px 2px; border:1px solid white; width:90%; cursor:text; box-sizing:border-box; -moz-box-sizing:border-box;background-color:transparent; background-position:right; background-repeat:no-repeat;" onclick=
"BXEditProperty(<?=$propertyIndex?>)" onmouseover=
"this.style.borderColor = '#434B50 #ADC0CF #ADC0CF #434B50';" onmouseout=
"this.style.borderColor = 'white'" class=
"edit-field"><?=
htmlspecialcharsEx($inheritValue)?></div>
275 <div
id=
"bx_edit_property_<?=$propertyIndex?>" style=
"display:none;"></div>
279 <input type=
"text" name=
"PROPERTY[<?=$propertyIndex?>][VALUE]" value=
"<?=htmlspecialcharsEx($propertyValue)?>" style=
"width:90%;"><input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
299 <input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx($propertyCode)?>" />
301 <div
id=
"bx_view_property_<?=$propertyIndex?>" style=
"overflow:hidden;padding:2px 12px 2px 2px; border:1px solid white; width:90%; cursor:text; box-sizing:border-box; -moz-box-sizing:border-box;background-color:transparent; background-position:right; background-repeat:no-repeat;" onclick=
"BXEditProperty(<?=$propertyIndex?>)" onmouseover=
"this.style.borderColor = '#434B50 #ADC0CF #ADC0CF #434B50'" onmouseout=
"this.style.borderColor = 'white'" class=
"edit-field"><?=
htmlspecialcharsEx(
$propertyValue)?></div>
303 <div
id=
"bx_edit_property_<?=$propertyIndex?>" style=
"display:none;"></div>
316 <tr
id=
"bx_user_property_<?=$propertyIndex?>">
317 <td
class=
"bx-popup-label bx-width30"><?=
htmlspecialcharsEx(mb_strtoupper($propertyCode))?><input type=
"hidden" name=
"PROPERTY[<?=$propertyIndex?>][CODE]" value=
"<?=htmlspecialcharsEx(mb_strtoupper($propertyCode))?>" />:</td>
318 <td><input type=
"text" name=
"PROPERTY[<?=$propertyIndex?>][VALUE]" value=
"<?=htmlspecialcharsEx($propertyValue)?>" style=
"width:90%;"></td>
326<input type=
"hidden" name=
"save" value=
"Y" />
333window.BXAddNewProperty =
function(linkhref, propertyIndex)
337 linkhref.onclick =
function () {
return BXAddNewProperty(linkhref, propertyIndex)}
339 var propertyTable = document.getElementById(
"bx_folder_properties");
340 var tableRow = propertyTable.insertRow(document.getElementById(
"bx_user_property_end").rowIndex);
341 var codeTableCell = tableRow.insertCell(0);
342 var valueTableCell = tableRow.insertCell(1);
344 tableRow.id =
"bx_user_property_" + propertyIndex;
345 codeTableCell.align =
"right";
346 codeTableCell.innerHTML =
'<input type="text" style="width:110px;" name="PROPERTY['+propertyIndex+
'][CODE]" value="" />:'
347 valueTableCell.innerHTML =
'<input type="text" name="PROPERTY['+propertyIndex+
'][VALUE]" value="" style="width:90%;">' +
348 ' <a href="" onclick="return BXDeleteProperty('+propertyIndex+
');">x</a>';
353window.BXDeleteProperty =
function(propertyIndex)
355 var propertyTable = document.getElementById(
"bx_folder_properties");
356 var propertyCaption = document.getElementById(
"bx_additional_properties");
358 if (!propertyTable || !propertyCaption)
361 propertyTable.deleteRow(document.getElementById(
"bx_user_property_" + propertyIndex).rowIndex);
363 if (propertyCaption.rowIndex == propertyTable.rows.length - 1)
364 propertyTable.deleteRow(propertyCaption.rowIndex);
369window.BXBlurProperty =
function(element, propertyIndex)
371 var viewProperty = document.getElementById(
"bx_view_property_" + propertyIndex);
373 if (element.value ==
"" || element.value == viewProperty.innerHTML)
375 var editProperty = document.getElementById(
"bx_edit_property_" + propertyIndex);
377 viewProperty.style.display =
"block";
378 editProperty.style.display =
"none";
380 while (editProperty.firstChild)
381 editProperty.removeChild(editProperty.firstChild);
385window.BXEditProperty =
function(propertyIndex)
387 if (document.getElementById(
"bx_property_input_" + propertyIndex))
390 var editProperty = document.getElementById(
"bx_edit_property_" + propertyIndex);
391 var viewProperty = document.getElementById(
"bx_view_property_" + propertyIndex);
393 viewProperty.style.display =
"none";
394 editProperty.style.display =
"block";
396 var input = document.createElement(
"INPUT");
399 input.name =
"PROPERTY["+propertyIndex+
"][VALUE]";
400 input.style.width =
"90%";
401 input.style.padding =
"2px";
402 input.id =
"bx_property_input_" + propertyIndex;
404 input.value = viewProperty.innerHTML;
406 editProperty.appendChild(input);
412window.BXFolderEditHint =
function()
414 var td = document.getElementById(
"bx_folder_name");
415 oBXHint =
new BXHint(
"<?=GetMessage("FOLDER_NAME_TITLE
")?>");
416 td.appendChild(oBXHint.oIcon);
418 var td = document.getElementById(
"bx_folder_prop_name");
421 oBXHint =
new BXHint(
"<?=GetMessage("FOLDER_PROP_TITLE
")?>");
422 td.appendChild(oBXHint.oIcon);
427 for (var index = 0; index < jsInheritProps.length; index++)
428 oBXHint =
new BXHint(
"<?=GetMessage("FOLDER_EDIT_PROP_TITLE
")?>", document.getElementById(
"bx_view_property_"+ jsInheritProps[index]), {
"width":200});
431window.BXFolderEditHint();
436<?require(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/include/epilog_admin_js.php");?>
if($canUseYandexMarket) $strWarning
static Log($SEVERITY, $AUDIT_TYPE_ID, $MODULE_ID, $ITEM_ID, $DESCRIPTION=false, $SITE_ID=false)
static GetPropstypes($site="")
static ShowUndoMessage($ID)
static Add($params=array())
</td ></tr ></table ></td ></tr ><?endif?><? $propertyIndex=0;foreach( $arGlobalProperties as $propertyCode=> $propertyValue
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
BXEditProperty(<?=$propertyIndex?>)" onmouseover $propertyIndex
if($_SERVER $arFilemanProperties["REQUEST_METHOD"]=="POST" &&isset($_REQUEST["save"]) && $strWarning=="")
$_SERVER["DOCUMENT_ROOT"]
foreach(['Bitrix\\Main'=> '/lib', 'Psr\\Container'=> '/vendor/psr/container/src', 'Psr\\Log'=> '/vendor/psr/log/src', 'Psr\\Http\\Message'=> '/vendor/psr/http-message/src', 'Psr\\Http\\Client'=> '/vendor/psr/http-client/src', 'Http\\Promise'=> '/vendor/php-http/promise/src', 'PHPMailer\\PHPMailer'=> '/vendor/phpmailer/phpmailer/src', 'GeoIp2'=> '/vendor/geoip2/geoip2/src', 'MaxMind\\Db'=> '/vendor/maxmind-db/reader/src/MaxMind/Db', 'PhpParser'=> '/vendor/nikic/php-parser/lib/PhpParser', 'Recurr'=> '/vendor/simshaun/recurr/src/Recurr',] as $namespace=> $namespacePath) $documentRoot
if(!defined('SITE_ID')) $lang
EscapePHPString($str, $encloser='"')
check_bitrix_sessid($varname='sessid')
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)