• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP oos_get_all_get_parameters函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中oos_get_all_get_parameters函数的典型用法代码示例。如果您正苦于以下问题:PHP oos_get_all_get_parameters函数的具体用法?PHP oos_get_all_get_parameters怎么用?PHP oos_get_all_get_parameters使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了oos_get_all_get_parameters函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: oos_create_sort_heading

/**
 * Return table heading with sorting capabilities
 *
 * @param $sortby
 * @param $colnum,
 * @param $heading
 * @return string
 */
function oos_create_sort_heading($sortby, $colnum, $heading)
{
    global $sPage, $aLang;
    $sort_prefix = '';
    $sort_suffix = '';
    if ($sortby) {
        $sort_prefix = '<a href="' . oos_href_link($sPage, oos_get_all_get_parameters(array('page', 'info', 'sort')) . 'page=1&amp;sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . $aLang['text_sort_products'] . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? $aLang['text_ascendingly'] : $aLang['text_descendingly']) . $aLang['text_by'] . $heading . '">';
        $sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . '</a>';
    }
    return $sort_prefix . $heading . $sort_suffix;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:19,代码来源:function_listing.php


示例2: set_snapshot

 function set_snapshot($aSetPage = '')
 {
     global $sPage, $request_type;
     if (is_array($aSetPage)) {
         $this->snapshot = array('page' => $aSetPage['page'], 'mode' => $aSetPage['mode'], 'get' => $aSetPage['get']);
     } else {
         $get_all = '';
         if (isset($_GET)) {
             $get_all = oos_get_all_get_parameters();
             $get_all = oos_remove_trailing($get_all);
         }
         $this->snapshot = array('page' => $sPage, 'mode' => $request_type, 'get' => $get_all);
     }
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:14,代码来源:class_navigation_history.php


示例3: oos_get_tax_rate

        if ($option_values['options_values_price'] != 0) {
            $attributes_print .= '<td align="right"><small><i>' . $option_values['price_prefix'] . $oCurrencies->display_price($option_values['options_values_price'], oos_get_tax_rate($wishlist_product['products_tax_class_id'])) . '</i></small></td>';
        } else {
            $attributes_print .= '<td><small><i>&nbsp;</i></small></td>';
        }
        $attributes_print .= '                   </tr>';
        $attributes_result->MoveNext();
    }
    $aWishlist[] = array('products_id' => $wishlist_product['products_id'], 'wl_products_id' => $wl_products_id, 'products_image' => $wishlist_product['products_image'], 'products_name' => $wishlist_product['products_name'], 'product_price' => $wishlist_product_price, 'product_special_price' => $wishlist_product_special_price, 'max_product_discount' => $wishlist_product_discount, 'product_discount_price' => $wishlist_product_discount_price, 'base_product_price' => $wishlist_base_product_price, 'base_product_special_price' => $wishlist_base_product_special_price, 'products_base_price' => $wishlist_product['products_base_price'], 'products_base_unit' => $wishlist_product['products_base_unit'], 'attributes_print' => $attributes_print);
    $wishlist_result->MoveNext();
}
// links breadcrumb
$oBreadcrumb->add($customer . $aLang['navbar_title'], oos_href_link($aPages['main_wishlist']), bookmark);
$aOption['template_main'] = $sTheme . '/modules/wishlist.html';
$aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
$aOption['page_navigation'] = $sTheme . '/heading/page_navigation.html';
$aOption['breadcrumb'] = 'default/system/breadcrumb.html';
$nPageType = OOS_PAGE_TYPE_CATALOG;
require 'includes/oos_system.php';
if (!isset($option)) {
    require 'includes/info_message.php';
    require 'includes/oos_blocks.php';
}
// assign Smarty variables;
$oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $customer . $aLang['heading_title'], 'oos_heading_image' => 'wishlist.gif', 'oos_page_split' => $wishlist_split->display_count($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, $_GET['page'], $aLang['text_display_number_of_wishlist']), 'oos_display_links' => $wishlist_split->display_links($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_parameters(array('page', 'info'))), 'oos_page_numrows' => $wishlist_numrows, 'wishlist_array' => $aWishlist));
$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation']));
$oSmarty->assign('oosBreadcrumb', $oSmarty->fetch($aOption['breadcrumb']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));
// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:main_wishlist.php


示例4: array

    require 'includes/oos_blocks.php';
}

$oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
$oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

// assign Smarty variables;
$oSmarty->assign(
      array(
          'pagetitle'         => htmlspecialchars($oos_pagetitle),
          'meta_description'  => htmlspecialchars($oos_meta_description),
          'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
          'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
          'oos_heading_title' => $customer . $aLang['heading_title'],
          'oos_heading_image' => 'wishlist.gif',

          'oos_page_split'    => $wishlist_split->display_count($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, $_GET['page'], $aLang['text_display_number_of_wishlist']),
          'oos_display_links' => $wishlist_split->display_links($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_parameters(array('page', 'info'))),
          'oos_page_numrows'  => $wishlist_numrows,

          'wishlist_array'    => $aWishlist
      )
);

$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));

// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:main_wishlist.php


示例5: ob_end_clean

ob_end_clean();
$aOption['template_main'] = $sTheme . '/modules/user_create_account.html';
$aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
$nPageType = OOS_PAGE_TYPE_ACCOUNT;
require 'includes/oos_system.php';
if (!isset($option)) {
    require 'includes/info_message.php';
    require 'includes/oos_blocks.php';
    require 'includes/oos_counter.php';
}
$read = '0';
$oSmarty->assign('read', $read);
$oSmarty->assign('oos_js', $javascript);
// assign Smarty variables;
$oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'account.gif'));
$oSmarty->assign('account', $account);
$oSmarty->assign('email_address', $email_address);
if (CUSTOMER_NOT_LOGIN == '1' or MAKE_PASSWORD == '1') {
    $show_password = false;
} else {
    $show_password = '1';
}
$oSmarty->assign('show_password', $show_password);
$oSmarty->assign('snapshot', $snapshot);
$oSmarty->assign('login_orgin_text', sprintf($aLang['text_origin_login'], oos_href_link($aModules['user'], $aFilename['login'], oos_get_all_get_parameters(), 'SSL')));
$oSmarty->assign('newsletter_ids', array(0, 1));
$oSmarty->assign('newsletter', array($aLang['entry_newsletter_no'], $aLang['entry_newsletter_yes']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));
// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:create_account.php


示例6: array

                                       'new_special_price' => $new_special_price,
                                       'new_product_discount_price' => $new_product_discount_price,
                                       'new_base_product_price' => $new_base_product_price,
                                       'new_base_product_special_price' => $new_base_product_special_price,
                                       'products_base_price' => $order_history['products_base_price'],
                                       'new_products_base_unit' => $order_history['products_base_unit'],
                                       'date_added' => $order_history['products_date_added'],
                                       'manufacturer' => $order_history['manufacturers_name']);
       $order_history_result->MoveNext();
    }

    // assign Smarty variables;
    $oSmarty->assign(
        array(
           'oos_page_split'          => $order_history_split->display_count($order_history_numrows, MAX_DISPLAY_SEARCH_RESULTS, $nCurrentPageNumber, $aLang['text_display_number_of_products']),
           'oos_display_links'       => $order_history_split->display_links($order_history_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))),
           'oos_page_numrows'        => $order_history_numrows,

           'products_image_box'      => SMALL_IMAGE_WIDTH + 10,
           'oos_order_history_array' => $order_history_array
       )
    );
}

// links breadcrumb
$oBreadcrumb->add($aLang['header_title_catalog'], oos_href_link($aPages['shop']));
$oBreadcrumb->add($aLang['navbar_title']);


$oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
$oos_pagetitle .= '&raquo;' . OOS_META_TITLE;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:account_order_history.php


示例7: oos_get_all_get_parameters

            }
            if ($_SESSION['error_cart_msg'] == '') {
                MyOOS_CoreApi::redirect(oos_href_link($goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
            } else {
                MyOOS_CoreApi::redirect(oos_href_link($aPages['product_info'], 'products_id=' . $_POST['products_id']));
            }
        }
        break;
    case 'frend_wishlist_add_product':
        if (isset($_POST['products_id']) && is_numeric($_POST['cart_quantity'])) {
            $cart_qty = $_SESSION['cart']->get_quantity(oos_get_uprid($_POST['products_id'], $_POST['id']));
            $news_qty = $cart_qty + $cart_quantity;
            $products_order_min = oos_get_products_quantity_order_min($_POST['products_id']);
            $products_order_units = oos_get_products_quantity_order_units($_POST['products_id']);
            if ($cart_quantity >= $products_order_min or $cart_qty >= $products_order_min) {
                if ($cart_quantity % $products_order_units == 0 and $news_qty >= $products_order_min) {
                    $_SESSION['cart']->add_cart($_POST['products_id'], intval($news_qty), $_POST['id'], true, $_POST['to_wl_id']);
                } else {
                    $_SESSION['error_cart_msg'] = $aLang['error_products_quantity_order_min_text'] . $aLang['error_products_units_invalid'] . $cart_quantity . ' - ' . $aLang['products_order_qty_unit_text_info'] . ' ' . $products_order_units;
                }
            } else {
                $_SESSION['error_cart_msg'] = $aLang['error_products_quantity_order_min_text'] . $aLang['error_products_quantity_invalid'] . $cart_quantity . ' - ' . $aLang['products_order_qty_min_text_info'] . ' ' . $products_order_min;
            }
            if ($_SESSION['error_cart_msg'] == '') {
                MyOOS_CoreApi::redirect(oos_href_link($goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
            } else {
                MyOOS_CoreApi::redirect(oos_href_link($aPages['product_info'], 'products_id=' . $_POST['products_id']));
            }
        }
        break;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:oos_cart_actions.php


示例8: array

    $oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
    $oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

    // assign Smarty variables;
    $oSmarty->assign(
        array(
              'pagetitle'         => htmlspecialchars($oos_pagetitle),
              'meta_description'  => htmlspecialchars($oos_meta_description),
              'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
              'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
              'oos_heading_title' => $aLang['heading_title'],
              'oos_heading_image' => 'specials.gif',

              'oos_page_split'    => $reviews_split->display_count($reviews_numrows, MAX_DISPLAY_NEW_REVIEWS, $nCurrentPageNumber, $aLang['text_display_number_of_reviews']),
              'oos_display_links' => $reviews_split->display_links($reviews_numrows, MAX_DISPLAY_NEW_REVIEWS, MAX_DISPLAY_PAGE_LINKS, $nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))),
              'oos_page_numrows'  => $reviews_numrows,

              'oos_reviews_array' => $aReviews
          )
    );
}
$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation'], $contents_cache_id));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'], $contents_cache_id));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'], $contents_cache_id));
$oSmarty->caching = false;

// display the template
require 'includes/oos_display.php';

开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:28,代码来源:reviews.php


示例9: oos_get_tax_rate

            $new_product_special_price = $oCurrencies->display_price($new_special_price, oos_get_tax_rate($order_history['products_tax_class_id']));
        } else {
            $new_max_product_discount = min($order_history['products_discount_allowed'], $_SESSION['member']->group['discount']);
            if ($new_max_product_discount != 0) {
                $new_special_price = $order_history['products_price'] * (100 - $new_max_product_discount) / 100;
                $new_product_discount_price = $oCurrencies->display_price($new_special_price, oos_get_tax_rate($order_history['products_tax_class_id']));
            }
        }
        if ($order_history['products_base_price'] != 1) {
            $new_base_product_price = $oCurrencies->display_price($order_history['products_price'] * $order_history['products_base_price'], oos_get_tax_rate($order_history['products_tax_class_id']));
            if ($new_special_price != '') {
                $new_base_product_special_price = $oCurrencies->display_price($new_special_price * $order_history['products_base_price'], oos_get_tax_rate($order_history['products_tax_class_id']));
            }
        }
        $order_history_array[] = array('id' => $order_history['products_id'], 'name' => $order_history['products_name'], 'image' => $order_history['products_image'], 'new_product_price' => $new_product_price, 'new_product_special_price' => $new_product_special_price, 'new_max_product_discount' => $new_max_product_discount, 'new_special_price' => $new_special_price, 'new_product_discount_price' => $new_product_discount_price, 'new_base_product_price' => $new_base_product_price, 'new_base_product_special_price' => $new_base_product_special_price, 'products_base_price' => $order_history['products_base_price'], 'new_products_base_unit' => $order_history['products_base_unit'], 'date_added' => $order_history['products_date_added'], 'manufacturer' => $order_history['manufacturers_name']);
        $order_history_result->MoveNext();
    }
    // assign Smarty variables;
    $oSmarty->assign(array('oos_page_split' => $order_history_split->display_count($order_history_numrows, MAX_DISPLAY_SEARCH_RESULTS, $nCurrentPageNumber, $aLang['text_display_number_of_products']), 'oos_display_links' => $order_history_split->display_links($order_history_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))), 'oos_page_numrows' => $order_history_numrows, 'products_image_box' => SMALL_IMAGE_WIDTH + 10, 'oos_order_history_array' => $order_history_array));
}
// links breadcrumb
$oBreadcrumb->add($aLang['header_title_catalog'], oos_href_link($aPages['shop']));
$oBreadcrumb->add($aLang['navbar_title'], oos_href_link($aPages['account_order_history']), bookmark);
// assign Smarty variables;
$oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'products_new.gif'));
$oSmarty->assign('oosBreadcrumb', $oSmarty->fetch($aOption['breadcrumb']));
$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));
// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:account_order_history.php


示例10: oos_redirect

            }
            if ($_SESSION['error_cart_msg'] == '') {
                oos_redirect(oos_href_link($goto_mp, $goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
            } else {
                oos_redirect(oos_href_link($aModules['products'], $aFilename['product_info'], 'products_id=' . $_POST['products_id']));
            }
        }
        break;
    case 'frend_wishlist_add_product':
        if (isset($_POST['products_id']) && is_numeric($_POST['cart_quantity'])) {
            $cart_qty = $_SESSION['cart']->get_quantity(oos_get_uprid($_POST['products_id'], $_POST['id']));
            $news_qty = $cart_qty + $cart_quantity;
            $products_order_min = oos_get_products_quantity_order_min($_POST['products_id']);
            $products_order_units = oos_get_products_quantity_order_units($_POST['products_id']);
            if ($cart_quantity >= $products_order_min or $cart_qty >= $products_order_min) {
                if ($cart_quantity % $products_order_units == 0 and $news_qty >= $products_order_min) {
                    $_SESSION['cart']->add_cart($_POST['products_id'], intval($news_qty), $_POST['id'], true, $_POST['to_wl_id']);
                } else {
                    $_SESSION['error_cart_msg'] = $aLang['error_products_quantity_order_min_text'] . $aLang['error_products_units_invalid'] . $cart_quantity . ' - ' . $aLang['products_order_qty_unit_text_info'] . ' ' . $products_order_units;
                }
            } else {
                $_SESSION['error_cart_msg'] = $aLang['error_products_quantity_order_min_text'] . $aLang['error_products_quantity_invalid'] . $cart_quantity . ' - ' . $aLang['products_order_qty_min_text_info'] . ' ' . $products_order_min;
            }
            if ($_SESSION['error_cart_msg'] == '') {
                oos_redirect(oos_href_link($goto_mp, $goto_file, oos_get_all_get_parameters($parameters), 'NONSSL'));
            } else {
                oos_redirect(oos_href_link($aModules['products'], $aFilename['product_info'], 'products_id=' . $_POST['products_id']));
            }
        }
        break;
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:oos_cart_actions.php


示例11: oos_get_tax_rate

        if (isset($products_new['specials_new_products_price'])) {
            $new_special_price = $products_new['specials_new_products_price'];
            $new_product_special_price = $oCurrencies->display_price($new_special_price, oos_get_tax_rate($products_new['products_tax_class_id']));
        } else {
            $new_max_product_discount = min($products_new['products_discount_allowed'], $_SESSION['member']->group['discount']);
            if ($new_max_product_discount != 0) {
                $new_special_price = $products_new['products_price'] * (100 - $new_max_product_discount) / 100;
                $new_product_discount_price = $oCurrencies->display_price($new_special_price, oos_get_tax_rate($products_new['products_tax_class_id']));
            }
        }
        if ($products_new['products_base_price'] != 1) {
            $new_base_product_price = $oCurrencies->display_price($products_new['products_price'] * $products_new['products_base_price'], oos_get_tax_rate($products_new['products_tax_class_id']));
            if ($new_special_price != '') {
                $new_base_product_special_price = $oCurrencies->display_price($new_special_price * $products_new['products_base_price'], oos_get_tax_rate($products_new['products_tax_class_id']));
            }
        }
        $products_new_array[] = array('id' => $products_new['products_id'], 'name' => $products_new['products_name'], 'image' => $products_new['products_image'], 'new_product_price' => $new_product_price, 'new_product_units' => $new_product_units, 'new_product_special_price' => $new_product_special_price, 'new_max_product_discount' => $new_max_product_discount, 'new_special_price' => $new_special_price, 'new_product_discount_price' => $new_product_discount_price, 'new_base_product_price' => $new_base_product_price, 'new_base_product_special_price' => $new_base_product_special_price, 'products_base_price' => $products_new['products_base_price'], 'new_products_base_unit' => $products_new['products_base_unit'], 'date_added' => $products_new['products_date_added'], 'manufacturer' => $products_new['manufacturers_name']);
        $products_new_result->MoveNext();
    }
    // links breadcrumb
    $oBreadcrumb->add($aLang['header_title_catalog'], oos_href_link($aModules['main'], $aFilename['shop']));
    $oBreadcrumb->add($aLang['navbar_title'], oos_href_link($aModules['products'], $aFilename['products_new']));
    // assign Smarty variables;
    $oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'products_new.gif', 'oos_page_split' => $products_new_split->display_count($products_new_numrows, MAX_DISPLAY_PRODUCTS_NEW, $_GET['page'], $aLang['text_display_number_of_products_new']), 'oos_display_links' => $products_new_split->display_links($products_new_numrows, MAX_DISPLAY_PRODUCTS_NEW, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_parameters(array('page', 'info'))), 'oos_page_numrows' => $products_new_numrows, 'products_image_box' => SMALL_IMAGE_WIDTH + 10, 'oos_products_new_array' => $products_new_array));
}
$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation'], $contents_cache_id));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'], $contents_cache_id));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'], $contents_cache_id));
$oSmarty->caching = false;
// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:new.php


示例12: oos_get_all_get_parameters

$languagestable = $oostable['languages'];
$query = "SELECT name, iso_639_2, iso_639_1
          FROM $languagestable
          WHERE status = '1'
          ORDER BY sort_order";

if (USE_DB_CACHE == '1') {
    $languages_result = $dbconn->CacheExecute(3600, $query);
} else {
    $languages_result = $dbconn->Execute($query);
}

if ($languages_result->RecordCount() >= 2) {
    $languages_block = '1';

    $lang_get_parameters = oos_get_all_get_parameters(array('language', 'currency'));
    $lang_get_parameters = oos_remove_trailing($lang_get_parameters);

    $oSmarty->assign('languages_contents', $languages_result->GetArray());

    $oSmarty->assign(
        array(
            'block_heading_languages' => $block_heading,
            'lang_get_parameters' => $lang_get_parameters
        )
    );
} else {
    $blockstable = $oostable['block'];
    $dbconn->Execute("UPDATE " . $blockstable . "
                      SET block_status = 0
                      WHERE block_file = 'languages'");
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:block_languages.php


示例13: array

}

$oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
$oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

// assign Smarty variables;
$oSmarty->assign(
      array(
          'pagetitle'         => htmlspecialchars($oos_pagetitle),
          'meta_description'  => htmlspecialchars($oos_meta_description),
          'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
          'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
          'oos_heading_title' => $aLang['heading_title'],
          'oos_heading_image' => 'history.gif',

          'oos_page_split'    => $history_split->display_count($history_numrows, MAX_DISPLAY_ORDER_HISTORY, $nCurrentPageNumber, $aLang['text_display_number_of_orders']),
          'oos_display_links' => $history_split->display_links($history_numrows, MAX_DISPLAY_ORDER_HISTORY, MAX_DISPLAY_PAGE_LINKS, $nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))),
          'oos_page_numrows'  => $history_numrows,

          'oos_history_array' => $aHistory
      )
);

$oSmarty->assign('oosBreadcrumb', $oSmarty->fetch($aOption['breadcrumb']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));

// display the template
require 'includes/oos_display.php';

开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:29,代码来源:account_history.php


示例14: oos_hide_session_id

                            $lc_text .= '<input type="hidden" name="file" value="' . $sFile . '">';
                            $lc_text .= '<input type="hidden" name="categories" value="' . $categories . '">';
                            $lc_text .= '<input type="hidden" name="formid" value="' . $sFormid . '">';
                            $lc_text .= oos_hide_session_id();
                            $lc_text .= oos_get_all_as_hidden_field(array('action'));
                            $lc_text .= $aLang['products_order_qty_text'];
                            $lc_text .= ' <input type="text" name="cart_quantity" value="' . $order_min . '" size="3" /><br />';
                            $lc_text .= oos_image_submit('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']);
                            $lc_text .= '</form>';
                        } else {
                            $lc_text = '<a href="' . oos_href_link($sMp, $sFile, $all_get_listing . 'action=buy_now&amp;products_id=' . $listing['products_id'] . '&amp;cart_quantity=' . $order_min) . '">' . oos_image_button('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']) . '</a>&nbsp;';
                        }
                    } else {
                        $lc_text = '&nbsp;';
                    }
                    break;
                case 'PRODUCT_LIST_SORT_ORDER':
                    $lc_align = 'center';
                    $lc_text = '&nbsp;' . $listing['products_sort_order'] . '&nbsp;';
                    break;
            }
            $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text);
        }
        // Move that ADOdb pointer!
        $listing_result->MoveNext();
    }
    // Close result set
    $listing_result->Close();
}
$oSmarty->assign(array('oos_page_split' => $listing_split->display_count($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], $aLang['text_display_number_of_products']), 'oos_display_links' => $listing_split->display_links($listing_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_parameters(array('page', 'info'))), 'oos_page_numrows' => $listing_numrows));
$oSmarty->assign('list_box_contents', $list_box_contents);
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:product_listing.php


示例15: oos_get_all_get_parameters

                break;
            case 'PRODUCT_LIST_PRICE':
                $order_str .= "final_price " . ($sort_order == 'd' ? "desc" : "") . ", pd.products_name";
                break;
            default:
                $order_str .= "pd.products_name";
                break;
        }
    }
    $listing_sql = $select_str . $from_str . $where_str . $order_str;
    $aOption['template_main'] = $sTheme . '/modules/advanced_search_result.html';
    $aOption['page_heading'] = $sTheme . '/heading/page_heading.html';
    $aOption['page_navigation'] = $sTheme . '/heading/page_navigation.html';
    $nPageType = OOS_PAGE_TYPE_CATALOG;
    require 'includes/oos_system.php';
    if (!isset($option)) {
        require 'includes/info_message.php';
        require 'includes/oos_blocks.php';
    }
    // assign Smarty variables;
    $oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'browse.gif'));
    require 'includes/modules/product_listing.php';
    $oSmarty->assign('pw_mispell', $pw_mispell);
    $oSmarty->assign('pw_string', $pw_string);
    $oSmarty->assign('oos_get_all_get_params', oos_get_all_get_parameters(array('sort', 'page')));
    $oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation']));
    $oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
    $oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));
    // display the template
    require 'includes/oos_display.php';
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:advanced_result.php


示例16: array

    $oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
    $oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

    // assign Smarty variables;
    $oSmarty->assign(
        array(
            'pagetitle'         => htmlspecialchars($oos_pagetitle),
            'meta_description'  => htmlspecialchars($oos_meta_description),
            'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
            'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
           'oos_heading_title'      => $aLang['heading_title'],
           'oos_heading_image'      => 'top_viewed.gif',

           'oos_page_split'         => $top_viewed_split->display_count($top_viewed_numrows, MAX_DISPLAY_PRODUCTS_NEW, $nCurrentPageNumber, $aLang['text_display_number_of_top_viewed']),
           'oos_display_links'      => $top_viewed_split->display_links($top_viewed_numrows, MAX_DISPLAY_PRODUCTS_NEW, MAX_DISPLAY_PAGE_LINKS, $nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))),
           'oos_page_numrows'       => $top_viewed_numrows,

           'products_image_box'     => SMALL_IMAGE_WIDTH + 10,
           'oos_top_viewed_array'   => $top_viewed_array
        )
    );
}

$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation'], $contents_cache_id));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'], $contents_cache_id));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'], $contents_cache_id));
$oSmarty->caching = false;

// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:top_viewed.php


示例17: array

    $oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
    $oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

    // assign Smarty variables;
    $oSmarty->assign(
        array(
            'pagetitle'         => htmlspecialchars($oos_pagetitle),
            'meta_description'  => htmlspecialchars($oos_meta_description),
            'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
            'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
            'oos_heading_title'  => $aLang['heading_title'],
            'oos_heading_image'  => 'specials.gif',

            'oos_page_split'     => $specials_split->display_count($specials_numrows, MAX_DISPLAY_SPECIAL_PRODUCTS, $_GET['page'], $aLang['text_display_number_of_specials']),
            'oos_display_links'  => $specials_split->display_links($specials_numrows, MAX_DISPLAY_SPECIAL_PRODUCTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], oos_get_all_get_parameters(array('page', 'info'))),
            'oos_page_numrows'   => $specials_numrows,

            'oos_specials_array' => $aSpecials
        )
    );
}

$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation'], $contents_cache_id));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'], $contents_cache_id));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'], $contents_cache_id));
$oSmarty->caching = false;

// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:29,代码来源:specials.php


示例18: Copyright

   Copyright (c) 2003 osCommerce
   ----------------------------------------------------------------------
   Released under the GNU General Public License
   ---------------------------------------------------------------------- */
/** ensure this file is being included by a parent file */
defined('OOS_VALID_MOD') or die('Direct Access to this location is not allowed.');
if (!$oEvent->installed_plugin('reviews')) {
    $_SESSION['navigation']->remove_current_page();
    MyOOS_CoreApi::redirect(oos_href_link($aModules['main'], $aFilename['main']));
}
if (!isset($_GET['reviews_id'])) {
    MyOOS_CoreApi::redirect(oos_href_link($aModules['reviews'], $aFilename['reviews_reviews']));
}
require 'includes/languages/' . $sLanguage . '/reviews_product_info.php';
// lets retrieve all $_GET keys and values..
$get_parameters = oos_get_all_get_parameters(array('reviews_id'));
$get_parameters = oos_remove_trailing($get_parameters);
$reviewstable = $oostable['reviews'];
$productstable = $oostable['products'];
$reviews_descriptiontable = $oostable['reviews_description'];
$products_descriptiontable = $oostable['products_description'];
$sql = "SELECT rd.reviews_text, r.reviews_rating, r.reviews_id, r.products_id,\n               r.customers_name, r.date_added, r.last_modified, r.reviews_read,\n               p.products_id, pd.products_name, p.products_model, p.products_image\n          FROM {$reviewstable} r,\n               {$reviews_descriptiontable} rd,\n               {$productstable} p,\n               {$products_descriptiontable} pd\n          WHERE r.reviews_id = '" . intval($_GET['reviews_id']) . "'\n            AND r.reviews_id = rd.reviews_id\n            AND rd.reviews_languages_id = '" . intval($nLanguageID) . "'\n            AND r.products_id = p.products_id\n            AND p.products_status >= '1'\n            AND p.products_id = pd.products_id\n            AND pd.products_languages_id = '" . intval($nLanguageID) . "'";
$reviews_result = $dbconn->Execute($sql);
if (!$reviews_result->RecordCount()) {
    MyOOS_CoreApi::redirect(oos_href_link($aModules['reviews'], $aFilename['reviews_reviews']));
}
$reviews = $reviews_result->fields;
$dbconn->Execute("UPDATE " . $oostable['reviews'] . "\n                  SET reviews_read = reviews_read+1\n                  WHERE reviews_id = '" . $reviews['reviews_id'] . "'");
// links breadcrumb
$oBreadcrumb->add($reviews['products_name'], oos_href_link($aModules['products'], $aFilename['product_info'], 'categories=' . $categories . '&amp;products_id=' . $reviews['products_id']));
$oBreadcrumb->add($aLang['navbar_title'], oos_href_link($aModules['reviews'], $aFilename['product_reviews'], $get_parameters));
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:product_info.php


示例19: array

}

$oos_pagetitle = $oBreadcrumb->trail_title(' &raquo; ');
$oos_pagetitle .= '&raquo;' . OOS_META_TITLE;

// assign Smarty variables;
$oSmarty->assign(
      array(
          'pagetitle'         => htmlspecialchars($oos_pagetitle),
          'meta_description'  => htmlspecialchars($oos_meta_description),
          'meta_keywords'     => htmlspecialchars($oos_meta_keywords),
          'oos_breadcrumb'    => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
          'oos_heading_title' => $aLang['heading_title'],
          'oos_heading_image' => 'wishlist.gif',

          'oos_page_split'    => $wishlist_split->display_count($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS,$nCurrentPageNumber, $aLang['text_display_number_of_wishlist']),
          'oos_display_links' => $wishlist_split->display_links($wishlist_numrows, MAX_DISPLAY_WISHLIST_PRODUCTS, MAX_DISPLAY_PAGE_LINKS,$nCurrentPageNumber, oos_get_all_get_parameters(array('nv', 'info'))),
          'oos_page_numrows'  => $wishlist_numrows,

          'wishlist_array'    => $aWishlist
       )
);

$oSmarty->assign('oosPageNavigation', $oSmarty->fetch($aOption['page_navigation']));
$oSmarty->assign('oosBreadcrumb', $oSmarty->fetch($aOption['breadcrumb']));
$oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading']));
$oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main']));

// display the template
require 'includes/oos_display.php';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:account_my_wishlist.php


示例20: sprintf

$aOption['template_main'] = $sTheme . '/modules/user_create_account. 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP oos_get_all_get_params函数代码示例发布时间:2022-05-15
下一篇:
PHP oos_encrypt_password函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap