$filesrc = $filesrc_tmp; } else $filesrc = $_POST['filesrc']; /*************************************************/ $obJSPopup->ShowTitlebar(($bEdit ? GetMessage("FILEMAN_FILEEDIT_PAGE_TITLE") : GetMessage("FILEMAN_NEWFILEEDIT_TITLE")).": ".htmlspecialcharsbx($path)); $obJSPopup->StartDescription(); echo '<a href="/freetrix/admin/fileman_file_edit.php?path='.urlencode($path).'&full_src=Y&site='.$site.'&lang='.LANGUAGE_ID.'&back_url='.urlencode($_GET["back_url"]).(!$bEdit? '&new=Y&filename='.urlencode($filename).'&template='.urlencode($template):'').($_REQUEST["templateID"]<>''? '&templateID='.urlencode($_REQUEST["templateID"]):'').'" title="'.htmlspecialcharsbx($path).'">'.GetMessage("public_file_edit_edit_cp").'</a>'; $obJSPopup->StartContent(); if (CAutoSave::Allowed()) { echo CJSCore::Init(array('autosave'), true); $AUTOSAVE->Init(); ?><script type="text/javascript">BX.WindowManager.Get().setAutosave();</script><? } ?> <input type="hidden" name="site" value="<?php echo htmlspecialcharsbx($site); ?> "> <input type="hidden" name="path" value="<?php echo htmlspecialcharsbx(urlencode($path)); ?> ">
function CAdminTabControl($name, $tabs, $bCanExpand = true, $bDenyAutoSave = false) { /** @global CMain $APPLICATION */ global $APPLICATION; //array(array("DIV"=>"", "TAB"=>"", "ICON"=>, "TITLE"=>"", "ONSELECT"=>"javascript"), ...) if(is_array($tabs)) { $this->tabs = $tabs; } $this->name = $name; $this->unique_name = $name."_".md5($APPLICATION->GetCurPage()); $this->bPublicMode = defined('FX_PUBLIC_MODE') && FX_PUBLIC_MODE == 1; $this->bCanExpand = !$this->bPublicMode && (bool)$bCanExpand; $this->SetSelectedTab(); if (!$bDenyAutoSave && CAutoSave::Allowed()) { $this->AUTOSAVE = new CAutoSave(); } }
function CAdminTabControl($name, $tabs, $bCanExpand = true, $bDenyAutoSave = false) { /** @global CMain $APPLICATION */ global $APPLICATION; //array(array("DIV"=>"", "TAB"=>"", "ICON"=>, "TITLE"=>"", "ONSELECT"=>"javascript"), ...) $this->tabs = $tabs; $this->name = $name; $this->unique_name = $name."_".md5($APPLICATION->GetCurPage()); $this->bPublicMode = defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1; $this->bCanExpand = !$this->bPublicMode && (bool)$bCanExpand; if(isset($_REQUEST[$this->name."_active_tab"])) $this->selectedTab = $_REQUEST[$this->name."_active_tab"]; else $this->selectedTab = $tabs[0]["DIV"]; if (!$bDenyAutoSave && CAutoSave::Allowed()) { $this->AUTOSAVE = new CAutoSave(); } }