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


PHP dcPage::jsCandyUpload方法代碼示例

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


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

示例1: rawurlencode

        http::redirect($page_url . '&d=' . rawurlencode($d) . '&rebuildok=1');
    } catch (Exception $e) {
        $core->error->add($e->getMessage());
    }
}
# DISPLAY confirm page for rmdir & rmfile
if ($dir && !empty($_GET['remove'])) {
    call_user_func($open_f, __('Media manager'));
    echo '<h2>' . html::escapeHTML($core->blog->name) . ' &rsaquo; ' . __('Media manager') . ' &rsaquo; ' . __('confirm removal') . '</h2>';
    echo '<form action="' . html::escapeURL($page_url) . '" method="post">' . '<p>' . sprintf(__('Are you sure you want to remove %s?'), html::escapeHTML($_GET['remove'])) . '</p>' . '<p><input type="submit" value="' . __('cancel') . '" /> ' . ' &nbsp; <input type="submit" name="rmyes" value="' . __('yes') . '" />' . form::hidden('d', $d) . $core->formNonce() . form::hidden('remove', html::escapeHTML($_GET['remove'])) . '</p>' . '</form>';
    call_user_func($close_f);
    exit;
}
/* DISPLAY Main page
-------------------------------------------------------- */
call_user_func($open_f, __('Media manager'), dcPage::jsLoad('js/_media.js') . ($core_media_writable ? dcPage::jsCandyUpload(array('d=' . $d)) : ''));
if (!empty($_GET['mkdok'])) {
    echo '<p class="message">' . __('Directory has been successfully created.') . '</p>';
}
if (!empty($_GET['upok'])) {
    echo '<p class="message">' . __('Files have been successfully uploaded.') . '</p>';
}
if (!empty($_GET['rmfok'])) {
    echo '<p class="message">' . __('File has been successfully removed.') . '</p>';
}
if (!empty($_GET['rmdok'])) {
    echo '<p class="message">' . __('Directory has been successfully removed.') . '</p>';
}
if (!empty($_GET['rebuildok'])) {
    echo '<p class="message">' . __('Directory has been successfully rebuilt.') . '</p>';
}
開發者ID:HackerMajor,項目名稱:root,代碼行數:31,代碼來源:media.php


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