function __WDShowError($sError) { if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) { $GLOBALS['APPLICATION']->RestartBuffer(); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php"; $popupWindow = new CJSPopup('', ''); $popupWindow->ShowTitlebar(GetMessage("WD_UPLOAD_ERROR_TITLE")); $popupWindow->StartContent(); } if (strpos($sError, "<") > 0) { echo "<p><font class=\"errortext\">" . $sError . "</font></p>\n"; } else { ShowError($sError); } if (isset($_REQUEST["use_light_view"]) || isset($_REQUEST["use_hidden_view"])) { $popupWindow->ShowStandardButtons(array("close")); die; } }
?> &new=Y&back_url=<?php echo urlencode($back_url); ?> "><?php echo GetMessage("PAGE_NEW_EDIT_IN_ADMIN"); ?> </a></p> <?php } } ?> <?php $popupWindow->EndDescription(); $popupWindow->StartContent(); ?> <table class="bx-width100" id="bx_new_page_common"> <tr> <td class="bx-popup-label bx-width30"><?php echo GetMessage("PAGE_NEW_PAGE_NAME"); ?> :</td> <td><input type="text" style="width:90%;" id="bx_page_title" name="pageTitle" value="<?php echo htmlspecialcharsEx($pageTitle); ?> "></td> </tr> <tr> <td class="bx-popup-label bx-width30"><?php
?> &path=<?php echo urlencode($localPath); ?> "><?php echo htmlspecialcharsbx($_GET["component_name"]); ?> </a></p> <?php if ($strWarning != "") { //ShowError($strWarning); $obJSPopup->ShowValidationError($strWarning); //echo '<script>jsPopup.AdjustShadow()</script>'; } if (!empty($arComponentTemplates) || !empty($arComponentParameters["PARAMETERS"]) || !empty($arTemplateParameters)) { $obJSPopup->StartContent(); $sSectArr = ""; $aClosedSections = array(); if (isset($_POST["__closed_sections"]) && $_POST["__closed_sections"] != "") { $sections = preg_replace("/[^a-z0-9_,]/i", "", $_POST["__closed_sections"]); $aClosedSections = explode(",", $sections); $sSectArr = "'" . implode("','", $aClosedSections) . "'"; } ?> <script> window.__closed_sections = [<?php echo $sSectArr; ?> ]; window.ShowSection = function(el) {
} } $bEditProps = (strpos($res["PROLOG"], "prolog_before")>0 || strpos($res["PROLOG"], "header.php")>0); $title = $res["TITLE"]; if((CFileman::IsPHP($filesrc) || $isScriptExt) && !($USER->CanDoOperation('edit_php') || $limit_php_access)) $strWarning = GetMessage("FILEMAN_FILEEDIT_CHANGE_ACCESS"); } $obJSPopup->ShowTitlebar(GetMessage('PUBLIC_EDIT_TITLE'.($bFromComponent ? '_COMP' : '')).': '.htmlspecialcharsex($_GET['path'])); $obJSPopup->StartContent( array( 'style' => "0px; height: 500px; overflow: hidden;", 'class' => "bx-content-editor" ) ); ?> </form> <iframe src="javascript:void(0)" name="file_edit_form_target" height="0" width="0" style="display: none;"></iframe> <form action="/freetrix/admin/public_file_edit.php" name="editor_form" method="post" enctype="multipart/form-data" target="file_edit_form_target" style="margin: 0px; padding: 0px; "> <? if (CAutoSave::Allowed()) { echo CJSCore::Init(array('autosave'), true); $AUTOSAVE->Init(); ?><script type="text/javascript">BX.WindowManager.Get().setAutosave();</script><? } ?> <?php