function DisplayList($arParams = array()) { $menu = new CAdminPopup($this->table_id."_menu", $this->table_id."_menu"); $menu->Show(); if( (isset($_REQUEST['ajax_debugx']) && $_REQUEST['ajax_debugx']=='Y') || (isset($_SESSION['AJAX_DEBUGX']) && $_SESSION['AJAX_DEBUGX']) ) { echo '<script> function CheckWin() { window.open("about:blank", "frame_debug"); } </script>'; } else { echo '<iframe src="javascript:\'\'" id="frame_'.$this->table_id.'" name="frame_'.$this->table_id.'" style="width:1px; height:1px; border:0px; position:absolute; left:-10px; top:-10px; z-index:0;"></iframe>'; } $aUserOpt = CUserOptions::GetOption("global", "settings"); if (!is_array($arParams)) $arParams = array(); if (!isset($arParams['FIX_HEADER'])) $arParams['FIX_HEADER'] = true; if (!isset($arParams['FIX_FOOTER'])) $arParams['FIX_FOOTER'] = true; if (!isset($arParams['context_ctrl'])) $arParams['context_ctrl'] = ($aUserOpt["context_ctrl"] == "Y"); if (!isset($arParams['context_menu'])) $arParams['context_menu'] = ($aUserOpt["context_menu"] <> "N"); $tbl = CUtil::JSEscape($this->table_id); ?> <script type="text/javascript"> window['<?php echo $tbl; ?> '] = new BX.adminList('<?php echo $tbl; ?> ', <?php echo CUtil::PhpToJsObject($arParams); ?> ); BX.adminChain.addItems("<?php echo $tbl; ?> _navchain_div"); </script> <? echo '<div id="'.$this->table_id.'_result_div" class="adm-list-table-layout">'; $this->Display(); echo '</div>'; }
for ($i = 0; $i < $cntTempl; $i++) { $arContextTemplates[] = array("TEXT" => htmlspecialcharsbx($arTemplates[$i]["name"]), "ONCLICK" => "__NewDocTempl('" . AddSlashes(htmlspecialcharsbx($arTemplates[$i]["file"])) . "')"); } $u = new CAdminPopup("new_doc_list", "new_doc_list", $arContextTemplates); CAdminFileDialog::ShowScript(array("event" => "__bx_fd_save_as", "arResultDest" => array("FUNCTION_NAME" => "OnSaveAs"), "arPath" => array('SITE' => $site, 'PATH' => $_REQUEST['path']), "select" => 'F', "operation" => 'S', "showUploadTab" => false, "showAddToMenuTab" => true, "fileFilter" => 'php,html,htm,phtml', "allowAllFiles" => true, "saveConfig" => false)); ?> <script type="text/javascript"> BX.addCustomEvent(window, 'onAfterFileDialogShow', function(){ var _filenameDialogInput = BX("__bx_file_path_bar"); var _filenamePageInput = BX('filename'); if(_filenamePageInput && _filenameDialogInput) _filenameDialogInput.value = _filenamePageInput.value; }); </script> <?php $u->Show(); ?> <form action="fileman_html_edit.php?lang=<?php echo LANG; ?> " method="post" enctype="multipart/form-data" name="ffilemanedit" id="ffilemanedit"> <input type="hidden" name="site" id="site" value="<?php echo htmlspecialcharsbx($site); ?> "> <input type="hidden" name="path" id="path" value="<?php echo htmlspecialcharsbx($originalPath); ?> "> <input type="hidden" name="logical" value="<?php echo htmlspecialcharsbx($logical);
function DisplayList($boolFlag = true) { $menu = new CAdminPopup($this->table_id . "_menu", $this->table_id . "_menu", false, array('zIndex' => 4000)); $menu->Show(); $tbl = CUtil::JSEscape($this->table_id); $aUserOpt = CUserOptions::GetOption("global", "settings"); echo ' <script type="text/javascript"> var ' . $this->table_id . '= new BX.adminSubList("' . $tbl . '", {context_ctrl: ' . ($aUserOpt["context_ctrl"] == "Y" ? "true" : "false") . '}, "' . $this->GetListUrl(true) . '"); function ReloadSubList() { ' . $this->ActionAjaxReload($this->GetListUrl(true)) . ' } function ReloadOffers() { ReloadSubList(); } </script> '; echo '<div id="' . $this->table_id . '_result_div">'; $this->Display(); echo '</div>'; }
function BuildDialog($Params) { $arSites = $Params['arSites']; if (count($arSites) > 1) { $u = new CAdminPopup("fd_site_list", "fd_site_list", $Params['arSitesPP'], array('zIndex' => 3500, 'dxShadow' => 0)); $u->Show(); } ?> <form id="file_dialog" name="file_dialog" onsubmit="return false;"> <table class="bx-file-dialog"> <tr> <td class= "bxfd-cntrl-cell"> <div id="__bx_fd_top_controls_container"> <table class="bx-fd-top-contr-tbl"> <tr> <?php if (count($arSites) > 1) { ?> <td style="width:22px!important; padding: 0px 4px 0px 5px !important;"> <div id="__bx_site_selector" bxvalue='<?php echo CUtil::JSEscape($Params['site']); ?> ' onclick="oBXDialogControls.SiteSelectorOnClick(this);" class="site_selector_div"><span><?php echo CUtil::JSEscape($Params['site']); ?> </span><span class="fd_iconkit site_selector_div_arrow"> </span></div> </td> <?php } ?> <td style="padding: 0px 2px 0px 2px !important;"> <input class="fd_input" type="text" id="__bx_dir_path_bar"></input> </td> <td nowrap style="width:170px !important; padding: 0px 2px 0px 2px !important;"> <img src="/bitrix/images/1.gif" class="fd_iconkit go_button" id="__bx_dir_path_go" title="<?php echo GetMessage("FD_GO_TO"); ?> "/> <img src="/bitrix/images/1.gif" __bx_disable="Y" class="fd_iconkit path_back_dis" title="<?php echo GetMessage("FD_GO_BACK"); ?> " id="__bx_dir_path_back"/> <img src="/bitrix/images/1.gif" __bx_disable="Y" class="fd_iconkit path_forward_dis" title="<?php echo GetMessage("FD_GO_FORWARD"); ?> " id="__bx_dir_path_forward"/> <img src="/bitrix/images/1.gif" class="fd_iconkit dir_path_up" title="<?php echo GetMessage("FD_GO_UP"); ?> " id="__bx_dir_path_up" /> <img src="/bitrix/images/1.gif" class="fd_iconkit dir_path_root" title="<?php echo GetMessage("FD_GO_TO_ROOT"); ?> " id="__bx_dir_path_root" /> <img src="/bitrix/images/1.gif" class="fd_iconkit new_dir" title="<?php echo GetMessage("FD_NEW_FOLDER"); ?> " id="__bx_new_dir" /> <img src="/bitrix/images/1.gif" class="fd_iconkit refresh" title="<?php echo GetMessage("FD_REFRESH"); ?> " onclick="oBXDialogControls.RefreshOnclick(this);"/> <?php $arSitesPP = array(); $arViews = array(array("ID" => 'list', "TEXT" => GetMessage("FD_VIEW_LIST"), "ONCLICK" => "oBXDialogControls.ViewSelector.OnChange('list')"), array("ID" => 'detail', "TEXT" => GetMessage("FD_VIEW_DETAIL"), "ONCLICK" => "oBXDialogControls.ViewSelector.OnChange('detail')"), array("ID" => 'preview', "TEXT" => GetMessage("FD_VIEW_PREVIEW"), "ONCLICK" => "oBXDialogControls.ViewSelector.OnChange('preview')")); $u = new CAdminPopup("fd_view_list", "fd_view_list", $arViews, array('zIndex' => 2500, 'dxShadow' => 0)); $u->Show(); ?> <img onclick="oBXDialogControls.ViewSelector.OnClick();" src="/bitrix/images/1.gif" id="__bx_view_selector" class="fd_iconkit view_selector" title="<?php echo GetMessage("FD_SELECT_VIEW"); ?> "/> </td> <td nowrap style="width:180px !important; padding: 0px 6px 0px 3px !important; text-align:right !important;" align="right"> <?php echo GetMessage("FD_SORT_BY"); ?> : <select class="fd_select" id="__bx_sort_selector" title="<?php echo GetMessage("FD_SORT_BY"); ?> " style="font-size:11px !important;"> <option value="name"><?php echo GetMessage("FD_SORT_BY_NAME"); ?> </option> <option value="type"><?php echo GetMessage("FD_SORT_BY_TYPE"); ?> </option> <option value="size"><?php echo GetMessage("FD_SORT_BY_SIZE"); ?> </option> <option value="date"><?php echo GetMessage("FD_SORT_BY_DATE"); ?> </option> </select> </td> <td style="width:20px !important; padding: 0px 6px 0px 3px !important;"> <img src="/bitrix/images/1.gif" class="fd_iconkit sort_up" title="<?php echo GetMessage("FD_CHANGE_SORT_ORDER"); ?> " __bx_value="asc" id="__bx_sort_order" /> </td> </tr> </table> </div> </td> </tr> <tr> <td style="vertical-align:top !important; height:398px !important;"> <div id="__bx_fd_tree_and_window" style="display:block"> <table style="width:743px !important; height:250px !important;"> <tr> <td class="bxfd-tree-cont"> <div id="__bx_treeContainer" class="fd_window bxfd-tree-cont-div"></div> </td> <td class="bxfd-window-cont"> <div class="fd_window" ><div id="__bx_windowContainer" class="bxfd-win-cont"></div></div> </td> </tr> </table> </div> <div id="__bx_fd_preview_and_panel" style="display:block;"> <table style="width:100% !important;height:132px !important; padding:0px !important;" border="0"> <tr> <td style="width:25% !important; height: 100% !important;"> <div style="margin: 3px 8px 3px 5px;border:1px solid #C6C6C6"><div style="height:127px;"> <div id="bxfd_previewContainer"></div> <div id="bxfd_addInfoContainer"></div> </div></div> </td> <td style="width:70% !important; vertical-align:top !important;"> <div class="bxfd-save-cont"> <table> <tr> <td class="bxfd-sc-cell" colspan="2"> <input type="text" style="width:98% !important;margin-bottom:5px !important;" id="__bx_file_path_bar"> <select style="width:98% !important; display:none; margin-bottom:5px !important;" id="__bx_file_filter"></select> <div id="__bx_page_title_cont" style="display:none;"> <?php echo GetMessage('FD_PAGE_TITLE'); ?> :<br/> <input type="text" style="width:98% !important;" id="__bx_page_title1"> </div> </td> </tr> <tr> <td class="bxfd-sc-cell2"> <table id="add2menu_cont" style="display:none"><tr> <td><input type="checkbox" id="__bx_fd_add_to_menu"></td> <td><label for="__bx_fd_add_to_menu"><?php echo GetMessage("FD_ADD_PAGE_2_MENU"); ?> </label></td> </tr></table> </td> <td class="bxfd-sc-cell3"> <input style="width:100px !important;" type="button" id="__bx_fd_submit_but" value=""> <input style="width:100px !important;" type="button" onclick="oBXFileDialog.Close()" value="<?php echo GetMessage("FD_BUT_CANCEL"); ?> "> </td> </tr> </table> </div> </td> </tr> </table> </div> <div id="__bx_fd_load" style="display:none;"> <div id="bxfd_upload_container"><iframe id="bxfd_iframe_upload" src="javascript:''" frameborder="0"></iframe></div> </div> <div id="__bx_fd_container_add2menu" class="bxfd-add-2-menu-tab"><?php if ($Params['bAddToMenu']) { ?> <table class="bx-fd-add-2-menu-tbl"> <tr> <td style="height:30px"> <table class="fd_tab_title"> <tr> <td class="icon"><img class="bxfd-add-to-menu-icon" src="/bitrix/images/1.gif" width="32" height="32"/></td> <td class="title"><?php echo GetMessage("FD_ADD_PAGE_2_MENU_TITLE"); ?> </td> </tr> <tr> <td colspan="2" class="delimiter"></td> </tr> </table> </td> </tr> <tr> <td style="height:310px !important; vertical-align:top !important;"> <table id="add2menuTable" class="bxfd-add-2-menu-tbl"> <tr> <td style="width:200px !important; text-align:right !important;"><?php echo GetMessage("FD_FILE_NAME"); ?> </td> <td style="width:250px !important;" id="__bx_fd_file_name"></td> </tr> <tr> <td align="right"><?php echo GetMessage("FD_PAGE_TITLE"); ?> :</td> <td><input type="text" id="__bx_page_title2" value=""></input></td> </tr> <tr> <td align="right"><?php echo GetMessage("FD_MENU_TYPE"); ?> </td> <td> <select id="__bx_fd_menutype" name="menutype"> <?php for ($i = 0; $i < count($Params['arMenuTypes']); $i++) { ?> <option value='<?php echo CUtil::JSEscape($Params['arMenuTypes'][$i]['key']); ?> '><?php echo CUtil::JSEscape($Params['arMenuTypes'][$i]['title']); ?> </option> <?php } ?> </select> </td> </tr> <tr id="e0"> <td style="vertical-align:top !important; text-align:right !important;"><?php echo GetMessage("FD_MENU_POINT"); ?> </td> <td> <input type="radio" name="itemtype" id="__bx_fd_itemtype_n" value="n" checked> <label for="__bx_fd_itemtype_n"><?php echo GetMessage("FD_ADD_NEW"); ?> </label><br> <input type="radio" name="itemtype" id="__bx_fd_itemtype_e" value="e"> <label for="__bx_fd_itemtype_e"><?php echo GetMessage("FD_ATTACH_2_EXISTENT"); ?> </label> </td> </tr> <tr id="__bx_fd_e1"> <td align="right"><?php echo GetMessage("FD_NEW_ITEM_NAME"); ?> </td> <td><input type="text" name="newp" id="__bx_fd_newp" value=""></td> </tr> <tr id="__bx_fd_e2"> <td align="right"><?php echo GetMessage("FD_ATTACH_BEFORE"); ?> </td> <td> <select name="newppos" id="__bx_fd_newppos"> <?php for ($i = 0; $i < count($Params['menuItems']); $i++) { ?> <option value="<?php echo $i + 1; ?> "><?php echo CUtil::JSEscape($Params['menuItems'][$i]); ?> </option> <?php } ?> <option value="0" selected="selected"><?php echo GetMessage("FD_LAST_POINT"); ?> </option> </select> </td> </tr> <tr id="__bx_fd_e3" style="display:none;"> <td align="right"><?php echo GetMessage("FD_ATTACH_2_ITEM"); ?> </td> <td> <select name="menuitem" id="__bx_fd_menuitem"> <?php for ($i = 0; $i < count($Params['menuItems']); $i++) { ?> <option value="<?php echo $i + 1; ?> "><?php echo CUtil::JSEscape($Params['menuItems'][$i]); ?> </option> <?php } ?> </select> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> </td> </tr> <tr> <td class="bx-fd-buttons-cont"> <input type="button" id="__bx_fd_submit_but2" value=""></input> <input type="button" onclick="oBXFileDialog.Close()" value="<?php echo GetMessage("FD_BUT_CANCEL"); ?> "></input> </td> </tr> </table><?php } ?> </div> </td> </tr> <tr> <td id="__bx_tab_cont" style="background-color: #D7D7D7;"></td> </tr> </table> </form> <div id="__bx_get_real_size_cont"></div> <?php }
function DisplayList() { global $APPLICATION; $menu = new CAdminPopup($this->table_id."_menu", $this->table_id."_menu"); $menu->Show(); if( (isset($_REQUEST['ajax_debugx']) && $_REQUEST['ajax_debugx']=='Y') || (isset($_SESSION['AJAX_DEBUGX']) && $_SESSION['AJAX_DEBUGX']) ) { echo '<script> function CheckWin() { window.open("about:blank", "frame_debug"); } </script>'; } else { echo '<iframe src="javascript:\'\'" id="frame_'.$this->table_id.'" name="frame_'.$this->table_id.'" style="width:1px; height:1px; border:0px; position:absolute; left:-10px; top:-10px; z-index:0;"></iframe>'; } $tbl = CUtil::JSEscape($this->table_id); $aUserOpt = CUserOptions::GetOption("global", "settings"); ?> <script type="text/javascript"> window['<?php echo $tbl; ?> '] = new BX.adminList('<?php echo $tbl; ?> ', {context_ctrl: <?php echo $aUserOpt["context_ctrl"] == "Y" ? "true" : "false"; ?> }); BX.adminChain.addItems("<?php echo $tbl; ?> _navchain_div"); </script> <? echo '<div id="'.$this->table_id.'_result_div">'; $this->Display(); echo '</div>'; }