本文整理匯總了PHP中dcPage::warning方法的典型用法代碼示例。如果您正苦於以下問題:PHP dcPage::warning方法的具體用法?PHP dcPage::warning怎麽用?PHP dcPage::warning使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dcPage
的用法示例。
在下文中一共展示了dcPage::warning方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: urldecode
$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.'));
}
if (!empty($_GET['rmdok'])) {
dcPage::success(__('Directory has been successfully removed.'));
}
if (!empty($_GET['rebuildok'])) {
dcPage::success(__('Directory has been successfully rebuilt.'));