本文整理汇总了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.'));