本文整理汇总了PHP中vamTemplate::display方法的典型用法代码示例。如果您正苦于以下问题:PHP vamTemplate::display方法的具体用法?PHP vamTemplate::display怎么用?PHP vamTemplate::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vamTemplate
的用法示例。
在下文中一共展示了vamTemplate::display方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Copyright
/*------------------------------------------------------------------------------
$Id: affiliate_help4.php,v 1.1 2003/12/21 20:13:07 hubi74 Exp $
XTC-Affiliate - Contribution for XT-Commerce http://www.xt-commerce.com
modified by http://www.netz-designer.de
Copyright (c) 2003 netz-designer
-----------------------------------------------------------------------------
based on:
(c) 2003 OSC-Affiliate (affiliate_help4.php, v 1.4 2003/02/17);
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();
$vamTemplate->assign(array('HTML_PARAMS' => HTML_PARAMS, 'HREF' => ($request_type == 'SSL' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG, 'TITLE' => TITLE));
$vamTemplate->assign('help_file', 'help4');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/affiliate_help.html');
示例2: inwords
$vamTemplate->assign('7', MODULE_PAYMENT_SCHET_7);
$vamTemplate->assign('8', MODULE_PAYMENT_SCHET_8);
$vamTemplate->assign('9', MODULE_PAYMENT_SCHET_9);
$vamTemplate->assign('10', MODULE_PAYMENT_SCHET_10);
$vamTemplate->assign('11', MODULE_PAYMENT_SCHET_11);
$vamTemplate->assign('12', MODULE_PAYMENT_SCHET_12);
$vamTemplate->assign('13', $order->customer['firstname']);
$vamTemplate->assign('14', $order->customer['lastname']);
$iw = new inwords();
$vamTemplate->assign('summa', $iw->get($order->info['total_value']));
$vamTemplate->assign('extra_fields_data', vam_get_extra_fields_order($order_check['customers_id'], $_SESSION['languages_id']));
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
$vamTemplate->assign('oID', (int) $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
}
$vamTemplate->assign('PAYMENT_METHOD', $payment_method);
$vamTemplate->assign('COMMENT', $order->info['comments']);
$vamTemplate->assign('DATE', vam_date_short($order->info['date_purchased']));
$path = DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/';
$vamTemplate->assign('tpl_path', $path);
// dont allow cache
$vamTemplate->caching = false;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/schet.html');
} else {
$vamTemplate->assign('ERROR', 'You are not allowed to view this order!');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/error_message.html');
}
示例3: stripslashes
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');
示例4: inwords
$total_summ_query = vam_db_query("select value\n\t from " . TABLE_ORDERS_TOTAL . "\n\t where orders_id = '" . (int) $_GET['oID'] . "'\n\t and class = 'ot_total'");
$total_summ = vam_db_fetch_array($total_summ_query);
$iw = new inwords();
$vamTemplate->assign('summa', $iw->get($total_summ['value']));
$vamTemplate->assign('extra_fields_data', vam_get_extra_fields_order($order_check['customers_id'], $_SESSION['languages_id']));
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
$vamTemplate->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
$vamTemplate->assign('oID', $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_FS_CATALOG . 'lang/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
$vamTemplate->assign('PAYMENT_METHOD', $payment_method);
}
if ($order->info['shipping_class'] != '') {
$shipping_method_query = vam_db_query("select title from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . $_GET['oID'] . "' and class = 'ot_shipping'");
$shipping_method = vam_db_fetch_array($shipping_method_query);
$order_shipping_text = substr($shipping_method['title'], -1) == ':' ? substr(strip_tags($shipping_method['title']), 0, -1) : strip_tags($shipping_method['title']);
$vamTemplate->assign('SHIPPING_METHOD', $order_shipping_text);
}
$vamTemplate->assign('COMMENTS', $order->info['comments']);
$vamTemplate->assign('DATE', vam_date_short($order->info['date_purchased']));
$vamTemplate->assign('order_data', $order_data);
$vamTemplate->assign('order_total', $order_total);
// dont allow cache
$vamTemplate->caching = false;
$vamTemplate->display(CURRENT_TEMPLATE . '/admin/print_order.html');
// } else {
// $vamTemplate->display(CURRENT_TEMPLATE . '/error_message.html');
// }
示例5:
$vamTemplate->assign('LINK_sort_name_desc', vam_href_link(basename($PHP_SELF), vam_get_all_get_params(array('page', 'sort', 'direction', 'info', 'x', 'y')) . 'sort=name&direction=desc'));
$vamTemplate->assign('LINK_sort_price_asc', vam_href_link(basename($PHP_SELF), vam_get_all_get_params(array('page', 'sort', 'direction', 'info', 'x', 'y')) . 'sort=price&direction=asc'));
$vamTemplate->assign('LINK_sort_price_desc', vam_href_link(basename($PHP_SELF), vam_get_all_get_params(array('page', 'sort', 'direction', 'info', 'x', 'y')) . 'sort=price&direction=desc'));
/* /sort, on page */
$vamTemplate->assign('section', 'featured');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('module_content', $module_content);
$vamTemplate->caching = 0;
//switch display mode
$listing_template = 'product_tops_list.html';
if (isset($_SESSION['listing_tops_template'])) {
$listing_template = $_SESSION['listing_tops_template'];
}
if ($listing_template == 'product_tops_list.html') {
$vamTemplate->assign('LISTING_TEMPLATE', 'product_tops_columns.html');
$vamTemplate->assign('LISTING_TEMPLATE_TEXT', 'плиткой');
} else {
$vamTemplate->assign('LISTING_TEMPLATE', 'product_tops_list.html');
$vamTemplate->assign('LISTING_TEMPLATE_TEXT', 'списком');
}
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/product_listing/' . $listing_template);
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('main_content', $main_content);
$vamTemplate->caching = 0;
if (!defined(RM)) {
$vamTemplate->load_filter('output', 'note');
}
$template = file_exists('templates/' . CURRENT_TEMPLATE . '/' . FILENAME_FEATURED . '.html') ? CURRENT_TEMPLATE . '/' . FILENAME_FEATURED . '.html' : CURRENT_TEMPLATE . '/index.html';
$vamTemplate->assign('category_depth', true);
$vamTemplate->display($template);
include 'includes/application_bottom.php';
示例6: vamTemplate
<?php
$vamTemplate = new vamTemplate();
if (!isset($_GET['kind']) && !vam_not_null($_GET['kind'])) {
die;
}
// выбрать данные в зависимости от типа
switch ($_GET['kind']) {
case 'best_sellers':
include 'templates/' . CURRENT_TEMPLATE . '/source/boxes/best_sellers.php';
break;
case 'news':
include 'templates/' . CURRENT_TEMPLATE . '/source/boxes/whats_new.php';
break;
case 'sale':
include 'templates/' . CURRENT_TEMPLATE . '/source/boxes/specials.php';
break;
case 'actions':
include 'templates/' . CURRENT_TEMPLATE . '/source/boxes/actions.php';
break;
default:
die;
break;
}
$vamTemplate->assign('top_kind', $_GET['kind']);
$vamTemplate->display(CURRENT_TEMPLATE . '/boxes/box_ajax_return_tops.html');
示例7: Copyright
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');
}
$vamTemplate->display(CURRENT_TEMPLATE . '/index.html');
示例8: Copyright
/* -----------------------------------------------------------------------------------------
$Id: down_for_maintenance.php 1124 2008-02-06 19:20:03 VaM $
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 (account.php,v 1.59 2003/05/19); www.oscommerce.com
(c) 2003 nextcommerce (account.php,v 1.12 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (account.php,v 1.12 2003/08/17); xt:Commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// create smarty elements
$vamTemplate = new vamTemplate();
require DIR_WS_INCLUDES . 'header.php';
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$main_content = $vamTemplate->fetch(CURRENT_TEMPLATE . '/module/down_for_maintenance.html');
$vamTemplate->assign('main_content', $main_content);
if (!defined(RM)) {
$vamTemplate->load_filter('output', 'note');
}
$vamTemplate->display(CURRENT_TEMPLATE . '/module/down_for_maintenance.html');
示例9: foreach
if ($product_info['products_discount_allowed'] < $_SESSION['customers_status']['customers_status_discount']) {
$discount = $product_info['products_discount_allowed'];
}
if ($discount != '0.00') {
$vamTemplate->assign('PRODUCTS_DISCOUNT', $discount . '%');
}
}
if ($product_info['products_vpe_status'] == 1 && $product_info['products_vpe_value'] != 0.0 && $products_price['plain'] > 0) {
$vamTemplate->assign('PRODUCTS_VPE', $vamPrice->Format($products_price['plain'] * (1 / $product_info['products_vpe_value']), true) . TXT_PER . vam_get_vpe_name($product_info['products_vpe']));
}
$vamTemplate->assign('module_content', $module_content);
$mo_images = vam_get_products_mo_images($product_info['products_id']);
if ($mo_images != false) {
$vamTemplate->assign('PRODUCTS_MO_IMAGES', $mo_images);
foreach ($mo_images as $img) {
$mo_img[] = array('PRODUCTS_MO_IMAGE' => DIR_WS_CATALOG . DIR_WS_INFO_IMAGES . $img['image_name']);
$vamTemplate->assign('mo_img', $mo_img);
}
}
//mo_images EOF
// set cache ID
if (!CacheCheck()) {
$vamTemplate->caching = 0;
} else {
$vamTemplate->caching = 1;
$vamTemplate->cache_lifetime = CACHE_LIFETIME;
$vamTemplate->cache_modified_check = CACHE_CHECK;
}
$cache_id = $_SESSION['language'] . '_' . $product_info['products_id'];
$vamTemplate->display(CURRENT_TEMPLATE . '/module/print_product_info.html', $cache_id);
示例10: constant
$vamTemplate->assign('address_label_shipping', vam_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$vamTemplate->assign('address_label_payment', vam_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$vamTemplate->assign('csID', $order->customer['csID']);
// get products data
$order_total = $order->getTotalData($oID);
$vamTemplate->assign('order_data', $order->getOrderData($oID));
$vamTemplate->assign('order_total', $order_total['data']);
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('oID', (int) $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
}
$vamTemplate->assign('PAYMENT_METHOD', $payment_method);
if ($order->info['shipping_method'] != '') {
$shipping_method = $order->info['shipping_method'];
}
$vamTemplate->assign('SHIPPING_METHOD', $shipping_method);
$vamTemplate->assign('COMMENT', $order->info['comments']);
$vamTemplate->assign('DATE', vam_date_long($order->info['date_purchased']));
$path = DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/';
$vamTemplate->assign('tpl_path', $path);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
// dont allow cache
$vamTemplate->caching = false;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/print_order.html');
} else {
$vamTemplate->assign('ERROR', 'You are not allowed to view this order!');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/error_message.html');
}
示例11:
$cat_ids = preg_split("/[,]/", $get_result['restrict_to_categories']);
for ($i = 0; $i < count($cat_ids); $i++) {
$result = vam_db_query("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id = cd.categories_id and cd.language_id = '" . $_SESSION['languages_id'] . "' and c.categories_id='" . $cat_ids[$i] . "'");
if ($row = vam_db_fetch_array($result)) {
$cats .= '<br />' . $row["categories_name"];
}
}
if ($cats == '') {
$cats = '<br />NONE';
}
$text_coupon_help .= $cats;
$text_coupon_help .= '<br /><br />' . TEXT_COUPON_HELP_PRODUCTS;
$coupon_get = vam_db_query("select restrict_to_products from " . TABLE_COUPONS . " where coupon_id='" . (int) $_GET['cID'] . "'");
$get_result = vam_db_fetch_array($coupon_get);
$pr_ids = preg_split("/[,]/", $get_result['restrict_to_products']);
for ($i = 0; $i < count($pr_ids); $i++) {
$result = vam_db_query("SELECT * FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id = pd.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "'and p.products_id = '" . $pr_ids[$i] . "'");
if ($row = vam_db_fetch_array($result)) {
$prods .= '<br />' . $row["products_name"];
}
}
if ($prods == '') {
$prods = '<br />NONE';
}
$text_coupon_help .= $prods;
$vamTemplate->assign('TEXT_HELP', $text_coupon_help);
$vamTemplate->assign('link_close', 'javascript:window.close()');
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->caching = 0;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/popup_coupon_help.html');
include 'includes/application_bottom.php';
示例12: constant
$vamTemplate->assign('order_data', $order->getOrderData($oID));
$vamTemplate->assign('order_total', $order_total['data']);
$vamTemplate->assign('final_price', $order->info['total']);
$vamTemplate->assign('1', MODULE_PAYMENT_KVITANCIA_1);
$vamTemplate->assign('2', MODULE_PAYMENT_KVITANCIA_2);
$vamTemplate->assign('3', MODULE_PAYMENT_KVITANCIA_3);
$vamTemplate->assign('4', MODULE_PAYMENT_KVITANCIA_4);
$vamTemplate->assign('5', MODULE_PAYMENT_KVITANCIA_5);
$vamTemplate->assign('6', MODULE_PAYMENT_KVITANCIA_6);
$vamTemplate->assign('7', MODULE_PAYMENT_KVITANCIA_7);
$vamTemplate->assign('8', MODULE_PAYMENT_KVITANCIA_8);
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
$vamTemplate->assign('oID', (int) $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
}
$vamTemplate->assign('PAYMENT_METHOD', $payment_method);
$vamTemplate->assign('COMMENT', $order->info['comments']);
$vamTemplate->assign('DATE', vam_date_short($order->info['date_purchased']));
$path = DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/';
$vamTemplate->assign('tpl_path', $path);
// dont allow cache
$vamTemplate->caching = false;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/kvitancia.html');
} else {
$vamTemplate->assign('ERROR', 'You are not allowed to view this order!');
$vamTemplate->display(CURRENT_TEMPLATE . '/module/error_message.html');
}
示例13: 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(popup_search_help.php,v 1.3 2003/02/13); www.oscommerce.com
(c) 2003 nextcommerce (popup_search_help.php,v 1.6 2003/08/17); www.nextcommerce.org
(c) 2004 xt:Commerce (popup_search_help.php,v 1.6 2003/08/17); xt-commerce.com
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
$vamTemplate = new vamTemplate();
include 'includes/header.php';
$vamTemplate->assign('link_close', 'javascript:window.close()');
$vamTemplate->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$vamTemplate->caching = 0;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/popup_search_help.html');
} else {
$vamTemplate->caching = 1;
$vamTemplate->cache_lifetime = CACHE_LIFETIME;
$vamTemplate->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
$vamTemplate->display(CURRENT_TEMPLATE . '/module/popup_search_help.html', $cache_id);
}
示例14: sprintf
$vamTemplate->assign('TEXT_FIRSTNAME', $firstname);
$vamTemplate->assign('TEXT_LASTNAME', $lastname);
$vamTemplate->assign('TEXT_EMAIL', $email_address);
$vamTemplate->assign('TEXT_EMAIL_SUCCESSFUL', sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, $product_info['products_name']));
$vamTemplate->assign('PRODUCT_LINK', vam_href_link(FILENAME_PRODUCT_INFO, vam_product_link($product_info['products_id'], $product_info['products_name'])));
$vamTemplate->caching = 0;
$html_mail = $vamTemplate->fetch(CURRENT_TEMPLATE . '/mail/' . $_SESSION['language'] . '/ask_a_question.html');
$vamTemplate->caching = 0;
$txt_mail = $vamTemplate->fetch(CURRENT_TEMPLATE . '/mail/' . $_SESSION['language'] . '/ask_a_question.txt');
// send mail to admin
vam_php_mail($to_email_address, EMAIL_SUPPORT_NAME, EMAIL_SUPPORT_ADDRESS, STORE_NAME, EMAIL_SUPPORT_FORWARDING_STRING, $to_email_address, $to_name, '', '', NAVBAR_TITLE_ASK, $html_mail, $txt_mail);
// send mail to customer
vam_php_mail(EMAIL_SUPPORT_ADDRESS, EMAIL_SUPPORT_NAME, $to_email_address, $to_name, EMAIL_SUPPORT_FORWARDING_STRING, EMAIL_SUPPORT_REPLY_ADDRESS, EMAIL_SUPPORT_REPLY_ADDRESS_NAME, '', '', NAVBAR_TITLE_ASK, $html_mail, $txt_mail);
if (!CacheCheck()) {
$vamTemplate->caching = 0;
$vamTemplate->display(CURRENT_TEMPLATE . '/module/ask_a_question_ok.html');
} else {
$vamTemplate->caching = 1;
$vamTemplate->cache_lifetime = CACHE_LIFETIME;
$vamTemplate->cache_modified_check = CACHE_CHECK;
$cache_id = $_SESSION['language'];
$vamTemplate->display(CURRENT_TEMPLATE . '/module/ask_a_question_ok.html', $cache_id);
}
} else {
$vamTemplate->assign('PRODUCTS_NAME', $product_info['products_name']);
$vamTemplate->assign('PRODUCTS_MODEL', $product_info['products_model']);
$vamTemplate->assign('FORM_ACTION', vam_draw_form('ask_a_question', vam_href_link(FILENAME_ASK_PRODUCT_QUESTION, 'products_id=' . $_GET['products_id'] . '')) . vam_draw_hidden_field('action', 'process') . vam_draw_hidden_field('products_id', $_GET['products_id']));
$vamTemplate->assign('CAPTCHA_IMG', vam_image(HTTP_SERVER . DIR_WS_CATALOG . FILENAME_DISPLAY_CAPTCHA, 'captcha', 'name="captcha" '));
$vamTemplate->assign('CAPTCHA_INPUT', vam_draw_input_field('captcha', '', 'size="6" maxlength="6"', 'text', false));
if (isset($_SESSION['customer_id'])) {
//-> registered user********************************************************