本文整理汇总了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;
示例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;
示例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;
示例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');