當前位置: 首頁>>代碼示例>>PHP>>正文


PHP dcPage::jsUpload方法代碼示例

本文整理匯總了PHP中dcPage::jsUpload方法的典型用法代碼示例。如果您正苦於以下問題:PHP dcPage::jsUpload方法的具體用法?PHP dcPage::jsUpload怎麽用?PHP dcPage::jsUpload使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在dcPage的用法示例。


在下文中一共展示了dcPage::jsUpload方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

    if (is_array($last_dirs)) {
        foreach ($last_dirs as $ld) {
            $ld_params = $page_url_params;
            $ld_params['d'] = $ld;
            $ld_params['q'] = '';
            // Reset search
            $last_folders_item .= '<option value="' . urldecode($core->adminurl->get('admin.media', $ld_params)) . '"' . ($ld == rtrim($d, '/') ? ' selected="selected"' : '') . '>' . '/' . $ld . '</option>' . "\n";
        }
        if ($last_folders_item != '') {
            $last_folders = '<p class="media-recent hidden-if-no-js">' . '<label class="classic" for="switchfolder">' . __('Goto recent folder:') . '</label> ' . '<select name="switchfolder" id="switchfolder">' . $last_folders_item . '</select>' . '<script type="text/javascript">var urlmenu = document.getElementById(\'switchfolder\');
				 urlmenu.onchange = function() { window.location = this.options[this.selectedIndex].value; };
				</script>' . '</p>';
        }
    }
}
call_user_func($open_f, __('Media manager'), dcPage::jsLoad('js/_media.js') . ($core_media_writable ? dcPage::jsUpload(array('d=' . $d)) : ''), $breadcrumb);
if ($popup) {
    // Display notices
    echo dcPage::notices();
}
if (!$core_media_writable) {
    dcPage::warning(__('You do not have sufficient permissions to write to this folder.'));
}
if (!empty($_GET['mkdok'])) {
    dcPage::success(__('Directory has been successfully created.'));
}
if (!empty($_GET['upok'])) {
    dcPage::success(__('Files have been successfully uploaded.'));
}
if (!empty($_GET['rmfok'])) {
    dcPage::success(__('File has been successfully removed.'));
開發者ID:nikrou,項目名稱:dotclear,代碼行數:31,代碼來源:media.php


注:本文中的dcPage::jsUpload方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。