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

PHP zen_run_normal函数代码示例

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

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



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

示例1: die

/**
 * Electronics Template designed by zen-cart-power.com
 * zen-cart-power.com - Zen Cart templates and modules
 * Power your Zen Cart!
 * 
 * 
 * @copyright Copyright 2008-2009 Zen-Cart-Power.com
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
$show_submit = zen_run_normal();
$listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page');
$zco_notifier->notify('NOTIFY_MODULE_PRODUCT_LISTING_RESULTCOUNT', $listing_split->number_of_rows);
$how_many = 0;
$list_box_contents[0] = array('params' => 'class="productListing-rowheading"');
$zc_col_count_description = 0;
$lc_align = '';
for ($col = 0, $n = sizeof($column_list); $col < $n; $col++) {
    switch ($column_list[$col]) {
        case 'PRODUCT_LIST_MODEL':
            $lc_text = TABLE_HEADING_MODEL;
            $lc_align = '';
            $zc_col_count_description++;
            break;
        case 'PRODUCT_LIST_NAME':
            $lc_text = TABLE_HEADING_PRODUCTS;
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:30,代码来源:product_listing.php


示例2: zen_get_letters_count

         $tmp_letters_cnt = zen_get_letters_count($tmp_letters_cnt_string, $products_options->fields['attributes_price_letters_free']);
         $tmp_letters_price = zen_get_letters_count_price($tmp_letters_cnt_string, $products_options->fields['attributes_price_letters_free'], $products_options->fields['attributes_price_letters']);
         if ($products_options->fields['attributes_price_letters'] != 0) {
             $tmp_html .= TEXT_PER_LETTER . $currencies->display_price($products_options->fields['attributes_price_letters'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ($products_options->fields['attributes_price_letters_free'] != 0 ? TEXT_LETTERS_FREE . $products_options->fields['attributes_price_letters_free'] : '');
         }
         if ($tmp_letters_cnt != 0 and $tmp_letters_price != 0) {
             $tmp_letters_price = $currencies->display_price($tmp_letters_price, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
             $tmp_html = $tmp_html . '<br />' . TEXT_CHARGES_LETTERS . ' ' . $tmp_letters_cnt . ' = ' . $tmp_letters_price;
         }
     }
 }
 // file uploads
 // iii 030813 added: support for file fields
 if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE) {
     $number_of_uploads++;
     if (zen_run_normal() == 'true' and zen_check_show_prices() == 'true') {
         // $cart->contents[$_GET['products_id']]['attributes_values'][$products_options_name['products_options_id']]
         $tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $products_options_names->fields['products_options_id'] . ']" /><br />' . $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']] . zen_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_names->fields['products_options_id']) . zen_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']]);
     } else {
         $tmp_html = '';
     }
     $tmp_html .= $products_options_details;
 }
 // collect attribute image if it exists and to draw in table below
 if ($products_options_names->fields['products_options_images_style'] == '0' or ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == '0')) {
     if ($products_options->fields['attributes_image'] != '') {
         $tmp_attributes_image_row++;
         //              if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
         if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
             $tmp_attributes_image .= '</tr><tr>';
             $tmp_attributes_image_row = 1;
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:main_template_vars_attributes.php


示例3: zen_get_letters_count_price

         $tmp_letters_price = zen_get_letters_count_price($tmp_letters_cnt_string, $products_options->fields['attributes_price_letters_free'], $products_options->fields['attributes_price_letters']);
         if ($products_options->fields['attributes_price_letters'] != 0) {
             $tmp_html .= TEXT_PER_LETTER . $currencies->display_price($products_options->fields['attributes_price_letters'], zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ($products_options->fields['attributes_price_letters_free'] != 0 ? TEXT_LETTERS_FREE . $products_options->fields['attributes_price_letters_free'] : '');
         }
         if ($tmp_letters_cnt != 0 and $tmp_letters_price != 0) {
             $tmp_letters_price = $currencies->display_price($tmp_letters_price, zen_get_tax_rate($product_info->fields['products_tax_class_id']));
             $tmp_html = $tmp_html . '<br />' . TEXT_CHARGES_LETTERS . ' ' . $tmp_letters_cnt . ' = ' . $tmp_letters_price;
         }
         $tmp_html .= "\n";
     }
 }
 // file uploads
 // iii 030813 added: support for file fields
 if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE) {
     $number_of_uploads++;
     if (zen_run_normal() == true and zen_check_show_prices() == true) {
         // $cart->contents[$_GET['products_id']]['attributes_values'][$products_options_name['products_options_id']]
         $tmp_html = '<input type="file" name="id[' . TEXT_PREFIX . $products_options_names->fields['products_options_id'] . ']"  id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '" /><br />' . $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']] . "\n" . zen_draw_hidden_field(UPLOAD_PREFIX . $number_of_uploads, $products_options_names->fields['products_options_id']) . "\n" . zen_draw_hidden_field(TEXT_PREFIX . UPLOAD_PREFIX . $number_of_uploads, $_SESSION['cart']->contents[$prod_id]['attributes_values'][$products_options_names->fields['products_options_id']]);
     } else {
         $tmp_html = '';
     }
     $tmp_html .= $products_options_details;
 }
 // collect attribute image if it exists and to be drawn in table below
 if ($products_options_names->fields['products_options_images_style'] == '0' or ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == '0')) {
     if ($products_options->fields['attributes_image'] != '') {
         $tmp_attributes_image_row++;
         //              if ($tmp_attributes_image_row > PRODUCTS_IMAGES_ATTRIBUTES_PER_ROW) {
         if ($tmp_attributes_image_row > $products_options_names->fields['products_options_images_per_row']) {
             $tmp_attributes_image .= '<br class="clearBoth" />' . "\n";
             $tmp_attributes_image_row = 1;
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:31,代码来源:attributes.php


示例4: bc_get_commerce_product

        $_POST['products_id'] = $_GET['products_id'];
    }
    $gBitProduct = bc_get_commerce_product(array('products_id' => $_REQUEST['products_id']));
    if ($gBitProduct->isValid()) {
        if (empty($_REQUEST['cPath']) && !empty($gBitProduct->mInfo['master_categories_id'])) {
            $_REQUEST['cPath'] = $gBitProduct->mInfo['master_categories_id'];
        }
    } else {
        global $gBitSystem;
        $gBitSystem->setHttpStatus(HttpStatusCodes::HTTP_NOT_FOUND);
        unset($gBitProduct);
    }
}
if (empty($gBitProduct) && class_exists('CommerceProduct')) {
    $gBitProduct = new CommerceProduct();
}
if (empty($_REQUEST['cPath'])) {
    $_REQUEST['cPath'] = '';
}
$gComCategory = new CommerceCategory($_REQUEST['cPath']);
if (!empty($_REQUEST['cPath']) && is_numeric($_REQUEST['cPath'])) {
    $breadcrumb->add(zen_get_category_name($_REQUEST['cPath'], $_SESSION['languages_id']), zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_REQUEST['cPath']));
}
if ($gBitProduct->isValid()) {
    $breadcrumb->add($gBitProduct->getTitle(), $gBitProduct->getDisplayUrl());
}
if (!empty($gBitProduct)) {
    $gBitSmarty->assign('gBitProduct', $gBitProduct);
}
$gBitSmarty->assign('runNormal', zen_run_normal());
$gBitThemes->loadCss(BITCOMMERCE_PKG_PATH . 'css/bitcommerce.css');
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:bitcommerce_start_inc.php



注:本文中的zen_run_normal函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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