当前位置: 首页>>代码示例>>PHP>>正文


PHP CAdminFileDialog::Remove方法代码示例

本文整理汇总了PHP中CAdminFileDialog::Remove方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminFileDialog::Remove方法的具体用法?PHP CAdminFileDialog::Remove怎么用?PHP CAdminFileDialog::Remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CAdminFileDialog的用法示例。


在下文中一共展示了CAdminFileDialog::Remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: IncludeModuleLangFile

    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
IncludeModuleLangFile(__FILE__);
echo '<!--BX_FD_LOAD_OK-->';
if (!check_bitrix_sessid()) {
    die('<!--BX_FD_DUBLICATE_ACTION_REQUEST' . bitrix_sessid() . '-->');
}
$action = isset($_GET['action']) ? $_GET['action'] : false;
if ($action == 'start') {
    CAdminFileDialog::Start(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'lang' => isset($_GET['lang']) ? $_GET['lang'] : 'en', 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'load') {
    CAdminFileDialog::LoadItems(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'loadRecursively' => intval($_GET['rec']) > 0, 'loadRoot' => intval($_GET['rec']) > 1, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'new_dir') {
    CAdminFileDialog::MakeNewDir(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'remove') {
    CAdminFileDialog::Remove(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'rename') {
    CAdminFileDialog::Rename(array('path' => isset($_GET['path']) ? $_GET['path'] : '', 'old_name' => isset($_GET['old_name']) ? $_GET['old_name'] : '', 'name' => isset($_GET['name']) ? $_GET['name'] : '', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'getFiles' => !isset($_GET['get_files']) || $_GET['get_files'], 'bAddToMenu' => isset($_GET['add_to_menu']) && $_GET['add_to_menu'], 'operation' => isset($_GET['operation']) ? $_GET['operation'] : ''));
} elseif ($action == 'set_config') {
    CAdminFileDialog::SetUserConfig(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'view' => isset($_GET['view']) ? $_GET['view'] : 'list', 'sort' => isset($_GET['sort']) ? $_GET['sort'] : 'name', 'sort_order' => isset($_GET['sort_order']) ? $_GET['sort_order'] : 'asc'));
} elseif ($action == 'flash') {
    CAdminFileDialog::PreviewFlash(array('path' => isset($_GET['path']) ? $_GET['path'] : '/', 'site' => isset($_GET['site']) ? $_GET['site'] : false, 'width' => '86px', 'height' => '86px'));
} elseif ($action == 'uploader') {
    if (isset($_REQUEST['cur_site'])) {
        $curSite = $_REQUEST['cur_site'];
    } elseif (isset($_REQUEST['site'])) {
        $curSite = $_REQUEST['site'];
    } else {
        $curSite = false;
    }
    CAdminFileDialog::ShowUploadForm(array('lang' => isset($_REQUEST['lang']) ? $_REQUEST['lang'] : 'en', 'site' => $curSite, 'file' => isset($_FILES["load_file"]) ? $_FILES["load_file"] : false, 'path' => isset($_POST["path"]) ? $_POST["path"] : '', 'filename' => isset($_POST["filename"]) ? $_POST["filename"] : '', 'upload_and_open' => isset($_POST["upload_and_open"]) ? $_POST["upload_and_open"] : 'N', 'rewrite' => isset($_POST["rewrite"]) ? $_POST["rewrite"] : 'N'));
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:file_dialog.php


注:本文中的CAdminFileDialog::Remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。