} ?> <tr> <td colspan="2"> <?php /* Transliteration - only for new files*/ if (!$bEdit && COption::GetOptionString("fileman", "use_translit", true)) { $bLinked = !isset($_REQUEST['filename']) && $_REQUEST['bxfm_linked'] != "N" && $filename != 'index.php'; ?> <input type="hidden" name="bxfm_linked" id="bxfm_linked" value="<?php echo $bLinked ? "Y" : "N"; ?> )" /> <?php include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/classes/general/fileman_utils.php"; CFilemanTransliterate::Init(array('fromInputId' => 'title', 'toInputId' => 'filename', 'linkedId' => 'bxfm_linked', 'linked' => $bLinked, 'linkedTitle' => GetMessage('FILEMAN_FILE_TRANS_LINKED'), 'unlinkedTitle' => GetMessage('FILEMAN_FILE_TRANS_UNLINKED'), 'ext' => $USER->CanDoOperation('edit_php') || $limit_php_access ? 'php' : 'html')); } ?> <script> var apply = false; function OnSaveAs(filename, path, site, title, menu) { var pPath = BX('path'), pFilename = BX('filename'), pTitle = BX('title'); var bOldPath = (pPath.value == path); <?php if (!$bEdit) {
?> " onblur="BXCheckFileName(this, <?php echo $createNewFolder ? "true" : "false"; ?> );" onkeypress="BXCheckFileName(this, <?php echo $createNewFolder ? "true" : "false"; ?> );" onkeyup="BXCheckFileName(this, <?php echo $createNewFolder ? "true" : "false"; ?> );"><font id="bx_error_text"></font> <?php if (CModule::IncludeModule("fileman") && COption::GetOptionString("fileman", "use_translit", true)) { include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/classes/general/fileman_utils.php"; CFilemanTransliterate::Init(array('fromInputId' => 'bx_page_title', 'toInputId' => 'bx_new_page_name', 'linked' => true, 'linkedTitle' => GetMessage($createNewFolder ? 'PAGE_NEW_SEC_TRANS_LINKED' : 'PAGE_NEW_FILE_TRANS_LINKED'), 'unlinkedTitle' => GetMessage($createNewFolder ? 'PAGE_NEW_SEC_TRANS_UNLINKED' : 'PAGE_NEW_FILE_TRANS_LINKED'), 'ext' => $createNewFolder ? null : ($USER->CanDoOperation('edit_php') || $USER->CanDoFileOperation("fm_lpa", array($site, $path)) ? 'php' : 'html'))); } ?> </td> </tr> <?php if (IsModuleInstalled("fileman") && $canEditNewPage) { ?> <tr> <td class="bx-popup-label bx-width30"></td> <td><input type="checkbox" id="bx_edit_after_save" name="editAfterSave" value="Y" <?php echo $editAfterSave ? "checked" : ""; ?> > <label for="bx_edit_after_save"><?php echo GetMessage("PAGE_NEW_EDIT_PAGE");
<tr id="ff2"> <td><?php echo GetMessage("FILEMAN_NEWFOLDER_INDEX_EDIT"); ?> </td> <td><input type="checkbox" name="toedit" value="Y"<?php if ($toedit == "Y") { echo " checked"; } if ($mkindex != "Y") { echo " disabled"; } ?> ></td> </tr> <?php } ?> <?php $tabControl->EndTab(); $tabControl->Buttons(array("disabled" => false, "back_url" => strlen($back_url) > 0 ? $back_url : "fileman_admin.php?" . $addUrl . "&site=" . $site . "&path=" . UrlEncode($path))); $tabControl->End(); if (COption::GetOptionString("fileman", "use_translit", true)) { include_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/fileman/classes/general/fileman_utils.php"; CFilemanTransliterate::Init(array('fromInputId' => 'bxfm_sectionname', 'toInputId' => 'bxfm_foldername', 'linkedId' => 'bxfm_linked', 'linked' => $_REQUEST['bxfm_linked'] != "N", 'linkedTitle' => GetMessage('FILEMAN_TRANS_LINKED'), 'unlinkedTitle' => GetMessage('FILEMAN_TRANS_UNLINKED'))); } ?> </form> <?php } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";