本文整理汇总了PHP中vamTemplate类的典型用法代码示例。如果您正苦于以下问题:PHP vamTemplate类的具体用法?PHP vamTemplate怎么用?PHP vamTemplate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了vamTemplate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: vamTemplate
Released under the GNU General Public License
--------------------------------------------------------------
Third Party contributions:
Customers Status v3.x (c) 2002-2003 Copyright Elari [email protected] | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$cart_empty = false;
require "includes/application_top.php";
if (isset($_SESSION['customer_id'])) {
$_SESSION['nologin'] = false;
} else {
$_SESSION['nologin'] = true;
}
// create template elements
$vamTemplate = new vamTemplate();
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed functions
require_once DIR_FS_INC . 'vam_array_to_string.inc.php';
require_once DIR_FS_INC . 'vam_image_submit.inc.php';
require_once DIR_FS_INC . 'vam_recalculate_price.inc.php';
require_once DIR_FS_INC . 'get_cross_sell_name.inc.php';
$breadcrumb->add(NAVBAR_TITLE_SHOPPING_CART, vam_href_link(FILENAME_SHOPPING_CART));
require DIR_WS_INCLUDES . 'header.php';
if (ACTIVATE_GIFT_SYSTEM == 'true') {
include DIR_WS_MODULES . 'gift_cart.php';
}
if ($_SESSION['cart']->count_contents() > 0) {
if ($_SESSION['error_cart_msg'] != 0) {
$vamTemplate->assign('info_message', $_SESSION['error_cart_msg']);
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:shopping_cart.php
示例2: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(search.php,v 1.22 2003/02/10); www.oscommerce.com
(c) 2003 nextcommerce (search.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (search.php,v 1.9 2003/08/13); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate();
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
require_once DIR_FS_INC . 'vam_image_submit.inc.php';
require_once DIR_FS_INC . 'vam_hide_session_id.inc.php';
$box->assign('FORM_ACTION', vam_draw_form('quick_find', vam_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . vam_hide_session_id());
$box->assign('INPUT_SEARCH', vam_draw_input_field('keywords', '', 'id="quick_find_keyword"'));
$box->assign('BUTTON_SUBMIT', vam_image_submit('', IMAGE_BUTTON_SEARCH));
$box->assign('FORM_END', '</form>');
$box->assign('LINK_ADVANCED', vam_href_link(FILENAME_ADVANCED_SEARCH));
$box->assign('BOX_CONTENT', $box_content);
$box->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$box->caching = 0;
$box_search = $box->fetch(CURRENT_TEMPLATE . '/boxes/box_search.html');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:search.php
示例3: stripslashes
require_once DIR_FS_INC . 'vam_random_charcode.inc.php';
require_once DIR_FS_INC . 'vam_render_vvcode.inc.php';
// create smarty elements
if (isset($_POST['firstname'])) {
$firstname = $_POST['firstname'];
}
if (isset($_POST['phone'])) {
$phone = $_POST['phone'];
}
if (isset($_POST['message_body'])) {
$message_body = stripslashes($_POST['message_body']);
}
if (isset($_POST['phone'])) {
$subject = $_POST['subject'];
$txt_mail = 'tel: ' . $phone . " " . $message_body;
// отправка данных
vam_php_mail('', EMAIL_SUPPORT_NAME, EMAIL_SUPPORT_ADDRESS, STORE_NAME, EMAIL_SUPPORT_FORWARDING_STRING, '', $firstname, '', '', $subject, '', $txt_mail);
die('Спасибо. Ваше сообщение отправлено. Вскоре мы Вам перезвоним.');
}
$vamTemplate = new vamTemplate();
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('CAPTCHA_IMG', vam_image(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DISPLAY_CAPTCHA, 'captcha', '150', '', 'name="captcha" '));
$vamTemplate->assign('CAPTCHA_INPUT', vam_draw_input_field('captcha', '', 'size="6" maxlength="6"', 'text', false));
$vamTemplate->assign('FORM_ACTION', vam_draw_form('callback_form', '') . vam_draw_hidden_field('action', 'process') . vam_draw_hidden_field('products_id', $_GET['products_id']));
$vamTemplate->assign('INPUT_FIRSTNAME', vam_draw_input_field('firstname', $firstname, 'size="30" maxlength="100"', 'text', true));
$vamTemplate->assign('INPUT_LASTNAME', vam_draw_input_field('phone', $phone, 'size="30" maxlength="100"', 'text', true));
$vamTemplate->assign('INPUT_TEXT', vam_draw_textarea_field('message_body', 'soft', 30, 3, $message_body));
$vamTemplate->assign('FORM_END', '</form>');
$vamTemplate->assign('BUTTON_SUBMIT', '<a class="button" id="callback_send" href="javascript:void(0);">' . vam_image_button('submit.png', IMAGE_BUTTON_SEND) . '</a>');
$vamTemplate->assign('BUTTON_CONTINUE', '<a class="button" href="javascript:void(0);" onclick="$(\'#showCart\').dialog(\'close\');">' . vam_image_button('back.png', IMAGE_BUTTON_BACK) . '</a>');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/callback_form.html');
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:callback.php
示例4: Copyright
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(product_reviews_info.php,v 1.47 2003/02/13); www.oscommerce.com
(c) 2003 nextcommerce (product_reviews_info.php,v 1.12 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (product_reviews_info.php,v 1.12 2003/08/17); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// create template elements
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed functions
require_once DIR_FS_INC . 'vam_break_string.inc.php';
require_once DIR_FS_INC . 'vam_date_long.inc.php';
// lets retrieve all $HTTP_GET_VARS keys and values..
$get_params = vam_get_all_get_params(array('reviews_id'));
$get_params = substr($get_params, 0, -1);
//remove trailing &
$reviews_query = "select rd.reviews_text, r.reviews_rating, r.reviews_id, r.products_id, r.customers_name, r.date_added, r.last_modified, r.reviews_read, p.products_id, pd.products_name, p.products_image from " . TABLE_REVIEWS . " r left join " . TABLE_PRODUCTS . " p on (r.products_id = p.products_id) left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (p.products_id = pd.products_id and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'), " . TABLE_REVIEWS_DESCRIPTION . " rd where r.reviews_id = '" . (int) $_GET['reviews_id'] . "' and r.reviews_id = rd.reviews_id and p.products_status = '1'";
$reviews_query = vam_db_query($reviews_query);
if (!vam_db_num_rows($reviews_query)) {
vam_redirect(vam_href_link(FILENAME_REVIEWS));
}
$reviews = vam_db_fetch_array($reviews_query);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:product_reviews_info.php
示例5: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(cookie_usage.php,v 1.1 2003/03/10); www.oscommerce.com
(c) 2003 nextcommerce (cookie_usage.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (cookie_usage.php,v 1.9 2003/08/17); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
$breadcrumb->add(NAVBAR_TITLE_COOKIE_USAGE, vam_href_link(FILENAME_COOKIE_USAGE));
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('BUTTON_CONTINUE', '<a class="button" href="' . vam_href_link(FILENAME_DEFAULT) . '">' . vam_image_button('submit.png', IMAGE_BUTTON_CONTINUE) . '</a>');
$vamTemplate->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/cookie_usage.html');
} else {
$vamTemplate->caching = 1;
$vamTemplate->cache_lifetime = CACHE_LIFETIME;
$vamTemplate->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:cookie_usage.php
示例6: trim
if ($s0 > 0) {
$retval .= " " . $this->diw[0][$s0][0];
$nom = $this->diw[0][$s0][1];
}
}
}
if ($nom >= 0) {
$retval .= " " . $this->nom[$nominal][$nom];
if ($nominal == 1) {
$this->out_rub = 1;
}
}
return trim($retval);
}
}
$vamTemplate = new vamTemplate();
$order_query_check = vam_db_query("SELECT\n \t\t\t\t\tcustomers_id\n \t\t\t\t\tFROM " . TABLE_ORDERS . "\n \t\t\t\t\tWHERE orders_id='" . (int) $_GET['oID'] . "'");
$order_check = vam_db_fetch_array($order_query_check);
$company_query = vam_db_query("SELECT * FROM " . TABLE_COMPANIES . "\n \t\t\t\t\tWHERE orders_id='" . (int) $_GET['oID'] . "'");
$company = vam_db_fetch_array($company_query);
$vamTemplate->assign('company_name', $company['name']);
$vamTemplate->assign('company_telephone', $company['telephone']);
$vamTemplate->assign('company_fax', $company['fax']);
$vamTemplate->assign('company_inn', $company['inn']);
$vamTemplate->assign('company_kpp', $company['kpp']);
$vamTemplate->assign('company_ogrn', $company['ogrn']);
$vamTemplate->assign('company_okpo', $company['okpo']);
$vamTemplate->assign('company_rs', $company['rs']);
$vamTemplate->assign('company_bank_name', $company['bank_name']);
$vamTemplate->assign('company_bik', $company['bik']);
$vamTemplate->assign('company_ks', $company['ks']);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:print_order.php
示例7: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(upcoming_products.php,v 1.23 2003/02/12); www.oscommerce.com
(c) 2003 nextcommerce (upcoming_products.php,v 1.7 2003/08/22); www.nextcommerce.org
(c) 2004 xt:Commerce (upcoming_products.php,v 1.7 2003/08/22); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$module = new vamTemplate();
$module->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
// include needed functions
require_once DIR_FS_INC . 'vam_date_short.inc.php';
$module_content = array();
//fsk18 lock
$fsk_lock = '';
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = ' and p.products_fsk18!=1';
}
if (GROUP_CHECK == 'true') {
$group_check = "and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
}
$expected_query = vamDBquery("select p.products_id,\n pd.products_name,\n products_date_available as date_expected from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\n where to_days(products_date_available) >= to_days(now())\n and p.products_id = pd.products_id\n " . $group_check . "\n " . $fsk_lock . "\n and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n order by " . EXPECTED_PRODUCTS_FIELD . " " . EXPECTED_PRODUCTS_SORT . "\n limit " . MAX_DISPLAY_UPCOMING_PRODUCTS);
if (vam_db_num_rows($expected_query, true) > 0) {
$row = 0;
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:upcoming_products.php
示例8: Copyright
based on:
(c) 2003 OSC-Affiliate (affiliate_sales.php, v 1.16 2003/09/22);
http://oscaffiliate.sourceforge.net/
Contribution based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 - 2003 osCommerce
Released under the GNU General Public License
---------------------------------------------------------------------------*/
require 'includes/application_top.php';
// create smarty elements
$vamTemplate = new vamTemplate();
// include needed functions
require_once DIR_FS_INC . 'affiliate_period.inc.php';
require_once DIR_FS_INC . 'affiliate_get_status_list.inc.php';
require_once DIR_FS_INC . 'affiliate_get_status_array.inc.php';
require_once DIR_FS_INC . 'affiliate_get_level_list.inc.php';
require_once DIR_FS_INC . 'vam_date_short.inc.php';
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
if (!isset($_SESSION['affiliate_id'])) {
vam_redirect(vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
}
$breadcrumb->add(NAVBAR_TITLE, vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_SALES, vam_href_link(FILENAME_AFFILIATE_SALES, '', 'SSL'));
if (!isset($_GET['page'])) {
$_GET['page'] = 1;
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_sales.php
示例9: Copyright
Copyright (c) Strider | [email protected]
Copyright (c Nick Stanko of UkiDev.com, [email protected]
Copyright (c) Andre [email protected]
Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
require 'includes/application_top.php';
require_once DIR_FS_INC . 'vam_wysiwyg_tiny.inc.php';
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
require_once DIR_FS_CATALOG . 'includes/external/phpmailer/class.phpmailer.php';
require_once DIR_FS_INC . 'vam_php_mail.inc.php';
// initiate template engine for mail
$vamTemplate = new vamTemplate();
if ($_GET['action'] == 'send_email_to_user' && ($_POST['customers_email_address'] || $_POST['email_to']) && !$_POST['back_x']) {
switch ($_POST['customers_email_address']) {
case '***':
$mail_query = vam_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS);
$mail_sent_to = TEXT_ALL_CUSTOMERS;
break;
case '**D':
$mail_query = vam_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_newsletter = '1'");
$mail_sent_to = TEXT_NEWSLETTER_CUSTOMERS;
break;
default:
$customers_email_address = vam_db_prepare_input($_POST['customers_email_address']);
$mail_query = vam_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_email_address = '" . vam_db_input($customers_email_address) . "'");
$mail_sent_to = $_POST['customers_email_address'];
if ($_POST['email_to']) {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:gv_mail.php
示例10: vamTemplate
<?php
require_once DIR_FS_INC . 'vam_date_short.inc.php';
// reset var
$box = new vamTemplate();
$box_content = '';
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
// /downloads
if (isset($_SESSION['customer_id'])) {
if (!strstr($_SERVER['SCRIPT_NAME'], FILENAME_ACCOUNT_HISTORY_INFO)) {
// Get last order id for checkout_success
$orders_query_raw = "SELECT orders_id FROM " . TABLE_ORDERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "' ORDER BY orders_id DESC LIMIT 1";
$orders_query = vam_db_query($orders_query_raw);
$orders_values = vam_db_fetch_array($orders_query);
$last_order = $orders_values['orders_id'];
} else {
$last_order = $_GET['order_id'];
}
// Now get all downloadable products in that order
$downloads_query_raw = "SELECT DATE_FORMAT(date_purchased, '%Y-%m-%d') as date_purchased_day, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays, opd.download_pin_code,opd.download_is_pin\n FROM " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd\n WHERE customers_id = '" . (int) $_SESSION['customer_id'] . "'\n AND o.orders_id = '" . (int) $last_order . "'\n AND o.orders_status >= " . DOWNLOAD_MIN_ORDERS_STATUS . "\n AND op.orders_id = '" . $last_order . "'\n AND opd.orders_products_id=op.orders_products_id\n AND (opd.orders_products_filename != '' or opd.download_is_pin='1')";
$downloads_query = vam_db_query($downloads_query_raw);
// Don't display if there is no downloadable product
if (vam_db_num_rows($downloads_query) > 0) {
while ($downloads_values = vam_db_fetch_array($downloads_query)) {
// MySQL 3.22 does not have INTERVAL
list($dt_year, $dt_month, $dt_day) = explode('-', $downloads_values['date_purchased_day']);
$download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads_values['download_maxdays'], $dt_year);
$download_expiry = date('Y-m-d H:i:s', $download_timestamp);
//PIN add
if ($downloads_values['download_is_pin'] == 1) {
//PIN processing
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:download.php
示例11: vamTemplate
Customers Status v3.x (c) 2002-2003 Copyright Elari [email protected] | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist
credit card encryption functions for the catalog module
BMC 2003 for the CC CVV Module
Released under the GNU General Public License
--------------------------------------------------------------*/
require 'includes/application_top.php';
require_once DIR_FS_CATALOG . 'includes/external/phpmailer/class.phpmailer.php';
require_once DIR_FS_INC . 'vam_php_mail.inc.php';
require_once DIR_FS_INC . 'vam_add_tax.inc.php';
require_once DIR_FS_INC . 'changedataout.inc.php';
require_once DIR_FS_INC . 'vam_validate_vatid_status.inc.php';
require_once DIR_FS_INC . 'vam_get_attributes_model.inc.php';
// initiate template engine for mail
$vamTemplate = new vamTemplate();
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
if (($_GET['action'] == 'edit' || $_GET['action'] == 'update_order') && $_GET['oID']) {
$oID = vam_db_prepare_input($_GET['oID']);
$orders_query = vam_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . vam_db_input($oID) . "'");
$order_exists = true;
if (!vam_db_num_rows($orders_query)) {
$order_exists = false;
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');
}
}
require DIR_WS_CLASSES . 'order.php';
if (($_GET['action'] == 'edit' || $_GET['action'] == 'update_order') && $order_exists) {
$order = new order($oID);
$order_payment = $order->info['payment_class'];
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:orders.php
示例12: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(specials.php,v 1.30 2003/02/10); www.oscommerce.com
(c) 2003 nextcommerce (specials.php,v 1.10 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (specials.php,v 1.10 2003/08/13); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate();
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
// include needed functions
require_once DIR_FS_INC . 'vam_random_select.inc.php';
//fsk18 lock
$fsk_lock = '';
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = ' and p.products_fsk18!=1';
}
if (GROUP_CHECK == 'true') {
$group_check = " and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
}
if ($random_product = vam_random_select("select\n p.products_id,\n pd.products_name,\n p.products_price,\n p.products_tax_class_id,\n p.products_image,\n s.expires_date,\n p.products_vpe,\n\t\t\t\t p.products_vpe_status,\n\t\t\t\t p.products_vpe_value,\n s.specials_new_products_price\n from " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_SPECIALS . " s where p.products_status = '1'\n and p.products_id = s.products_id\n and pd.products_id = s.products_id\n and pd.language_id = '" . $_SESSION['languages_id'] . "'\n and s.status = '1'\n " . $group_check . "\n " . $fsk_lock . " \n order by s.specials_date_added\n desc limit " . MAX_RANDOM_SELECT_SPECIALS)) {
$box->assign('box_content', $product->buildDataArray($random_product));
$box->assign('SPECIALS_LINK', vam_href_link(FILENAME_SPECIALS));
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:specials.php
示例13: Project
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(products_new.php,v 1.25 2003/05/27); www.oscommerce.com
(c) 2003 nextcommerce (products_new.php,v 1.16 2003/08/18); www.nextcommerce.org
(c) 2004 xt:Commerce (products_new.php,v 1.16 2003/08/18); xt-commerce.com
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contributions:
Enable_Disable_Categories 1.3 Autor: Mikel Williams | [email protected]
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// create template elements
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed function
require_once DIR_FS_INC . 'vam_date_long.inc.php';
// the following tPath references come from application_top.php
$topic_depth = 'top';
if (isset($tPath) && vam_not_null($tPath)) {
$topics_articles_query = "select count(*) as total from " . TABLE_ARTICLES_TO_TOPICS . " where topics_id = '" . (int) $current_topic_id . "'";
$topics_articles_query = vamDBquery($topics_articles_query);
$topics_articles = vam_db_fetch_array($topics_articles_query);
if ($topics_articles['total'] > 0) {
$topic_depth = 'articles';
// display articles
} else {
$topic_parent_query = "select count(*) as total from " . TABLE_TOPICS . " where parent_id = '" . (int) $current_topic_id . "'";
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:articles.php
示例14: Copyright
based on:
(c) 2003 OSC-Affiliate (affiliate_clicks.php, v 1.12 2003/09/22);
http://oscaffiliate.sourceforge.net/
Contribution based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 - 2003 osCommerce
Released under the GNU General Public License
---------------------------------------------------------------------------*/
require 'includes/application_top.php';
// create smarty elements
$vamTemplate = new vamTemplate();
// include needed functions
require_once DIR_FS_INC . 'vam_date_short.inc.php';
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
if (!isset($_SESSION['affiliate_id'])) {
vam_redirect(vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
}
$breadcrumb->add(NAVBAR_TITLE, vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_CLICKS, vam_href_link(FILENAME_AFFILIATE_CLICKS, '', 'SSL'));
if (!isset($_GET['page'])) {
$_GET['page'] = 1;
}
$affiliate_clickthroughs_raw = "select a.*, pd.products_name from " . TABLE_AFFILIATE_CLICKTHROUGHS . " a\n left join " . TABLE_PRODUCTS . " p on (p.products_id = a.affiliate_products_id)\n left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (pd.products_id = p.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "')\n where a.affiliate_id = '" . $_SESSION['affiliate_id'] . "' ORDER BY a.affiliate_clientdate desc";
$affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, $_GET['page'], MAX_DISPLAY_SEARCH_RESULTS);
require DIR_WS_INCLUDES . 'header.php';
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_clicks.php
示例15: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(new_products.php,v 1.33 2003/02/12); www.oscommerce.com
(c) 2003 nextcommerce (new_products.php,v 1.9 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (new_products.php,v 1.9 2003/08/17); www.xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$module = new vamTemplate();
$module->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$sql = "\n SELECT\n news_id,\n headline,\n content,\n date_added\n FROM " . TABLE_LATEST_NEWS . "\n WHERE\n status = '1'\n and language = '" . (int) $_SESSION['languages_id'] . "'\n ORDER BY date_added DESC\n LIMIT " . MAX_DISPLAY_LATEST_NEWS . "\n ";
$row = 0;
$module_content = array();
$query = vamDBquery($sql);
while ($one = vam_db_fetch_array($query, true)) {
//
$qI = 0;
$qIcon = '';
if ($qI = strpos($one['content'], 'src="')) {
$qI = $qI + 5;
$qIcon = substr($one['content'], $qI);
$qI = strpos($qIcon, '"');
$qIcon = '<img class="newsImage" src="' . substr($qIcon, 0, $qI) . '" alt="Image" />';
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:news.php
示例16: Copyright
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
--------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(recover_cart_sales.php,v 1.19 2003/02/06); www.oscommerce.com
Released under the GNU General Public License
--------------------------------------------------------------*/
require 'includes/application_top.php';
require_once DIR_FS_CATALOG . 'includes/external/phpmailer/class.phpmailer.php';
require_once DIR_FS_INC . 'vam_php_mail.inc.php';
// initiate template engine for mail
$vamTemplate = new vamTemplate();
require DIR_WS_CLASSES . 'currencies.php';
$currencies = new currencies();
$custid = $_POST['custid'];
// Delete Entry Begin
if ($_GET['action'] == 'delete') {
$reset_query_raw = "delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id={$_GET['customer_id']}";
vam_db_query($reset_query_raw);
$reset_query_raw2 = "delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id={$_GET['customer_id']}";
vam_db_query($reset_query_raw2);
vam_redirect(vam_href_link(FILENAME_RECOVER_CART_SALES, 'delete=1&customer_id=' . $_GET['customer_id'] . '&tdate=' . $_GET['tdate']));
}
if ($_GET['delete']) {
$messageStack->add(MESSAGE_STACK_CUSTOMER_ID . $_GET['customer_id'] . MESSAGE_STACK_DELETE_SUCCESS, 'success');
}
// Delete Entry End
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:recover_cart_sales.php
示例17: Copyright
http://oscaffiliate.sourceforge.net/
Contribution based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 - 2003 osCommerce
Released under the GNU General Public License
---------------------------------------------------------------------------*/
require 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'vam_image_button.inc.php';
// create smarty elements
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
$breadcrumb->add(NAVBAR_TITLE, vam_href_link(FILENAME_AFFILIATE, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_SIGNUP_OK);
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('LINK_SUMMARY', '<a class="button" href="' . vam_href_link(FILENAME_AFFILIATE_SUMMARY, '', 'SSL') . '">' . vam_image_button('submit.png', IMAGE_BUTTON_CONTINUE) . '</a>');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/affiliate_signup_ok.html');
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
if (!defined(RM)) {
$vamTemplate->load_filter('output', 'note');
}
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_signup_ok.php
示例18: Copyright
VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(specials.php,v 1.30 2003/02/10); www.oscommerce.com
(c) 2003 nextcommerce (specials.php,v 1.10 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (featured.php,v 1.10 2003/08/13); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate();
$box->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
// include needed functions
require_once DIR_FS_INC . 'vam_random_select.inc.php';
require_once DIR_FS_INC . 'vam_row_number_format.inc.php';
//fsk18 lock
$fsk_lock = '';
if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
$fsk_lock = ' and p.products_fsk18!=1';
}
if (GROUP_CHECK == 'true') {
$group_check = " and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
}
$random_product = "select\n p.products_id,\n pd.products_name,\n p.products_price,\n p.products_tax_class_id,\n p.products_image,\n f.expires_date,\n p.products_vpe,\n\t\t\t\t p.products_vpe_status,\n\t\t\t\t p.products_vpe_value\n from " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_FEATURED . " f where p.products_status = '1'\n and p.products_id = f.products_id\n and pd.products_id = f.products_id\n and pd.language_id = '" . $_SESSION['languages_id'] . "'\n and f.status = '1'\n " . $group_check . "\n " . $fsk_lock . " \n order by rand()\n desc limit 3";
$feat_q = vamDBquery($random_product);
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:30,代码来源:feature.php
示例19: vamTemplate
<?php
/*
* BOX for outputing sliders. Setting in admin-area modules,
* slider_caption = slider_category
*/
$box = new vamTemplate();
$box->assign('language', $_SESSION['language']);
$q = "SELECT s.*, sc.categories_id \nFROM slider s\nLEFT JOIN slider_to_categories sc ON sc.slider_id = s.slider_id \nWHERE slider_status = 1 \nAND s.slider_caption = 'slider_category'\nAND sc.categories_id = {$current_category_id}\nORDER BY s.slider_id DESC LIMIT 1;";
$qr = vam_db_query($q);
$rows = array();
$current_slider_id == 'none';
while ($r = vam_db_fetch_array($qr)) {
$rows[$r['slider_id']] = $r;
$s1 = $r;
}
require_once DIR_WS_INCLUDES . 'external/slider/Slider.class.inc.php';
$s = new Slider();
$simages = $s->grepIMGfromHTML($s1['slider_config']);
if ($_GET['dbg'] == 1) {
print_r($simages);
}
// set cache ID
if (!CacheCheck()) {
$cache = false;
$box->caching = 0;
} else {
$cache = true;
$box->caching = 1;
$box->cache_lifetime = CACHE_LIFETIME;
$box->cache_modified_check = CACHE_CHECK;
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:slider_category.php
示例20: Copyright
http://vamshop.ru
http://vamshop.com
Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(product_reviews.php,v 1.47 2003/02/13); www.oscommerce.com
(c) 2003 nextcommerce (product_reviews.php,v 1.12 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (product_reviews.php,v 1.12 2003/08/17); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// create template elements
$vamTemplate = new vamTemplate();
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed functions
require_once DIR_FS_INC . 'vam_row_number_format.inc.php';
require_once DIR_FS_INC . 'vam_date_short.inc.php';
// lets retrieve all $HTTP_GET_VARS keys and values..
$get_params = vam_get_all_get_params();
$get_params_back = vam_get_all_get_params(array('reviews_id'));
// for back button
$get_params = substr($get_params, 0, -1);
//remove trailing &
if (vam_not_null($get_params_back)) {
$get_params_back = substr($get_params_back, 0, -1);
//remove trailing &
} else {
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:product_reviews.php
注:本文中的vamTemplate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目 |
请发表评论