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


PHP categories::set_page_parameter方法代碼示例

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


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

示例1: die

   Released under the GNU General Public License
   --------------------------------------------------------------*/
require_once 'includes/application_top.php';
require_once DIR_WS_CLASSES . FILENAME_IMAGEMANIPULATOR;
require_once DIR_WS_CLASSES . 'categories.php';
require_once DIR_FS_INC . 'xtc_get_tax_rate.inc.php';
require_once DIR_FS_INC . 'xtc_get_products_mo_images.inc.php';
require_once DIR_WS_CLASSES . 'currencies.php';
require_once DIR_FS_INC . 'xtc_wysiwyg.inc.php';
require_once DIR_WS_MODULES . 'graduated-prices-edit.php';
require_once DIR_FS_INC . 'xtc_get_order_description.inc.php';
$link = xtc_db_connect() or die('Unable to connect to database server!');
$currencies = new currencies();
$catfunc = new categories();
$catfunc->set_page_parameter();
//this is used only by group_prices
if ($_GET['function']) {
    switch ($_GET['function']) {
        case 'delete':
            xtc_db_query("DELETE FROM personal_offers_by_customers_status_" . (int) $_GET['statusID'] . "\n\t\t\t\t\t\t                     WHERE products_id = '" . (int) $_GET['pID'] . "'\n\t\t\t\t\t\t                     AND quantity    = '" . (int) $_GET['quantity'] . "'");
            break;
    }
    xtc_redirect(xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&action=new_product&pID=' . (int) $_GET['pID'] . $catfunc->page_parameter));
}
// Multi-Status Change, separated from $_GET['action']
// --- MULTI STATUS ---
if (isset($_POST['multi_status_on'])) {
    //set multi_categories status=on
    if (is_array($_POST['multi_categories'])) {
        foreach ($_POST['multi_categories'] as $category_id) {
開發者ID:shophelfer,項目名稱:shophelfer.com-shop,代碼行數:30,代碼來源:categories.php


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