本文整理汇总了PHP中xtc_image_submit函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_image_submit函数的具体用法?PHP xtc_image_submit怎么用?PHP xtc_image_submit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_image_submit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtc_href_link
//$breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SHIPPING_ADDRESS, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SHIPPING_ADDRESS, xtc_href_link($link_checkout_shipping, $params, 'SSL'));
// EOF - Tomcraft - 2009-10-03 - Paypal Express Modul
$breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SHIPPING_ADDRESS, xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, $params, 'SSL'));
$addresses_count = xtc_count_customer_address_book_entries();
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', xtc_draw_form('checkout_address', xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, $params, 'SSL'), 'post', 'onsubmit="return check_form_optional(checkout_address);"'));
if ($messageStack->size('checkout_address') > 0) {
$smarty->assign('error', $messageStack->output('checkout_address'));
}
if ($process == false) {
$smarty->assign('ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'));
include DIR_WS_MODULES . 'checkout_address_layout.php';
}
if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
require DIR_WS_MODULES . 'checkout_new_address.php';
}
$smarty->assign('BUTTON_CONTINUE', xtc_draw_hidden_field('action', 'submit') . xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
if ($process == true) {
$smarty->assign('BUTTON_BACK', '<a href="' . xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, $params, 'SSL') . '">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
}
$smarty->assign('FORM_END', '</form>');
$smarty->assign('language', $_SESSION['language']);
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_shipping_address.html');
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined('RM')) {
$smarty->load_filter('output', 'note');
}
$smarty->display(CURRENT_TEMPLATE . '/index.html');
include 'includes/application_bottom.php';
示例2: xtc_db_query
}
// Get manufacturer name etc. for the product page
$manufacturer_query = xtc_db_query("SELECT m.manufacturers_id,\n m.manufacturers_name,\n m.manufacturers_image,\n mi.manufacturers_url\n FROM " . TABLE_MANUFACTURERS . " m\n LEFT JOIN " . TABLE_MANUFACTURERS_INFO . " mi\n ON (m.manufacturers_id = mi.manufacturers_id\n AND mi.languages_id = '" . (int) $_SESSION['languages_id'] . "'),\n " . TABLE_PRODUCTS . " p\n WHERE p.products_id = '" . $product->data['products_id'] . "'\n AND p.manufacturers_id = m.manufacturers_id");
if (xtc_db_num_rows($manufacturer_query)) {
$manufacturer = xtc_db_fetch_array($manufacturer_query);
$info_smarty->assign('MANUFACTURER_IMAGE', !empty($manufacturer['manufacturers_image']) ? DIR_WS_IMAGES . $manufacturer['manufacturers_image'] : '');
$info_smarty->assign('MANUFACTURER', $manufacturer['manufacturers_name']);
$info_smarty->assign('MANUFACTURER_LINK', xtc_href_link(FILENAME_DEFAULT, xtc_manufacturer_link($manufacturer['manufacturers_id'], $manufacturer['manufacturers_name'])));
}
// build products price
$products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = true, 1, $product->data['products_tax_class_id'], $product->data['products_price'], 1);
// check if customer is allowed to add to cart
if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && ($_SESSION['customers_status']['customers_fsk18'] == '1' && $product->data['products_fsk18'] == '0' || $_SESSION['customers_status']['customers_fsk18'] != '1')) {
$add_pid_to_qty = xtc_draw_hidden_field('products_id', $product->data['products_id']);
$info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', $hide_qty ? '' : 'size="3"', $hide_qty ? 'hidden' : 'text') . ' ' . $add_pid_to_qty);
$info_smarty->assign('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART));
}
// show expiry date of active special products
$special_expires_date_query = "SELECT expires_date\n FROM " . TABLE_SPECIALS . "\n WHERE products_id = '" . $product->data['products_id'] . "'\n AND status = '1'";
$special_expires_date_query = xtDBquery($special_expires_date_query);
$sDate = xtc_db_fetch_array($special_expires_date_query, true);
$info_smarty->assign('PRODUCTS_EXPIRES', $sDate['expires_date'] != '0000-00-00 00:00:00' ? xtc_date_short($sDate['expires_date']) : '');
// FSK18
$info_smarty->assign('PRODUCTS_FSK18', $product->data['products_fsk18'] == '1' ? 'true' : '');
//get shippingstatus image and name
if (ACTIVATE_SHIPPING_STATUS == 'true') {
$info_smarty->assign('SHIPPING_NAME', $main->getShippingStatusName($product->data['products_shippingtime']));
$info_smarty->assign('SHIPPING_IMAGE', $main->getShippingStatusImage($product->data['products_shippingtime']));
// BOF - Tutorial: Umsetzung der EU-Verbraucherrichtlinie vom 13.06.2014
$info_smarty->assign('SHIPPING_NAME_LINK', $main->getShippingStatusName($product->data['products_shippingtime'], true));
// EOF - Tutorial: Umsetzung der EU-Verbraucherrichtlinie vom 13.06.2014
示例3: xtc_draw_form
$sPreForm = '';
if (method_exists(${$_SESSION}['payment'], 'confirm_pre_form')) {
$sPreForm = ${$_SESSION}['payment']->confirm_pre_form();
}
$smarty->assign('CHECKOUT_FORM', $sPreForm . xtc_draw_form('checkout_confirmation', $form_action_url, 'post'));
$smarty->assign('CHECKOUT_FORM_PREFORM', $sPreForm);
$smarty->assign('CHECKOUT_FORM_ACTION_URL', $form_action_url);
// EOF GM_MOD saferpay
$payment_button = '';
if (is_array($payment_modules->modules)) {
$payment_button .= $payment_modules->process_button();
}
$smarty->assign('MODULE_BUTTONS', $payment_button);
// BOF GM_MOD
$smarty->assign('BUTTON_BACK', '<a href="javascript:history.back()"><img src="templates/' . CURRENT_TEMPLATE . '/buttons/' . $_SESSION['language'] . '/backgr.gif" /></a>');
$smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('bestellung.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");
// EOF GM_MOD
// BOF GM_MOD Heidelpay Bugfixes
$_SESSION['gm_heidelpay'] = $order->info['total'];
$_SESSION['gm_heidelpay_currency'] = $order->info['currency'];
$_SESSION['gm_heidelpay_firstname'] = $order->billing['firstname'];
$_SESSION['gm_heidelpay_lastname'] = $order->billing['lastname'];
$_SESSION['gm_heidelpay_gender'] = $order->customer['gender'];
$_SESSION['gm_heidelpay_street_address'] = $order->billing['street_address'];
$_SESSION['gm_heidelpay_postcode'] = $order->billing['postcode'];
$_SESSION['gm_heidelpay_city'] = $order->billing['city'];
$_SESSION['gm_heidelpay_state'] = $order->billing['state'];
$_SESSION['gm_heidelpay_city'] = $order->billing['city'];
$_SESSION['gm_heidelpay_state'] = $order->billing['state'];
$_SESSION['gm_heidelpay_iso_code_2'] = $order->billing['country']['iso_code_2'];
$_SESSION['gm_heidelpay_email_address'] = $order->customer['email_address'];
示例4: Project
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com
(c) 2003 nextcommerce (loginbox.php,v 1.10 2003/08/17); www.nextcommerce.org
(c) 2006 XT-Commerce
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contributions:
Loginbox V1.0 Aubrey Kilian <aubrey@mycon.co.za>
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
if (!isset($_SESSION['customer_id'])) {
require_once DIR_FS_INC . 'xtc_image_submit.inc.php';
require_once DIR_FS_INC . 'xtc_draw_password_field.inc.php';
$box_smarty = new smarty();
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_smarty->assign('FORM_ACTION', '<form id="loginbox" method="post" action="' . xtc_href_link(FILENAME_LOGIN, 'action=process', 'SSL') . '">');
$box_smarty->assign('FIELD_EMAIL', xtc_draw_input_field('email_address', '', 'maxlength="50" style="width: 100%!important;""'));
$box_smarty->assign('FIELD_PWD', xtc_draw_password_field('password', '', 'maxlength="30" style="width: 100%!important;""'));
$box_smarty->assign('BUTTON', xtc_image_submit('button_login_small.gif', IMAGE_BUTTON_LOGIN));
$box_smarty->assign('LINK_LOST_PASSWORD', xtc_href_link(FILENAME_PASSWORD_DOUBLE_OPT, '', 'SSL'));
$box_smarty->assign('FORM_END', '</form>');
$box_smarty->assign('BOX_CONTENT', '');
$box_smarty->caching = 0;
$box_smarty->assign('language', $_SESSION['language']);
$box_loginbox = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_login.html');
$smarty->assign('box_LOGIN', $box_loginbox);
}
示例5: get_html
function get_html($p_coo_product, $p_current_category_id = 0)
{
$t_html_output = '';
$xtPrice = new xtcPrice($_SESSION['currency'], $_SESSION['customers_status']['customers_status_id']);
$main = new main();
$group_check = '';
// xs:booster start (v1.041)
$xsb_tx = array();
if (@is_array($_SESSION['xtb0']['tx'])) {
foreach ($_SESSION['xtb0']['tx'] as $tx) {
if ($tx['products_id'] == $p_coo_product->data['products_id']) {
$xsb_tx = $tx;
break;
}
}
}
// xs:booster end
if (!is_object($p_coo_product) || !$p_coo_product->isProduct()) {
// product not found in database
$error = TEXT_PRODUCT_NOT_FOUND;
include DIR_WS_MODULES . FILENAME_ERROR_HANDLER;
$t_html_output = $main_content;
} else {
if (ACTIVATE_NAVIGATOR == 'true') {
$coo_product_navigator = MainFactory::create_object('ProductNavigatorContentView');
$t_view_html = $coo_product_navigator->get_html($p_coo_product, $p_current_category_id);
$this->set_content_data('PRODUCT_NAVIGATOR', $t_view_html);
}
xtc_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . $p_coo_product->data['products_id'] . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$products_price = $xtPrice->xtcGetPrice($p_coo_product->data['products_id'], $format = true, 1, $p_coo_product->data['products_tax_class_id'], $p_coo_product->data['products_price'], 1);
// check if customer is allowed to add to cart
// BOF GM_MOD:
if ($_SESSION['customers_status']['customers_status_show_price'] != '0' && $xtPrice->gm_check_price_status($p_coo_product->data['products_id']) == 0) {
// fsk18
if ($_SESSION['customers_status']['customers_fsk18'] == '1') {
if ($p_coo_product->data['products_fsk18'] == '0') {
// BOF GM_MOD:
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', gm_convert_qty($p_coo_product->data['gm_min_order'], false), 'id="gm_attr_calc_qty"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
$t_quantity = gm_convert_qty($p_coo_product->data['gm_min_order'], false);
$t_disabled_quantity = 0;
if (@$xsb_tx['XTB_ALLOW_USER_CHQTY'] == 'true' || $xsb_tx['products_id'] != $p_coo_product->data['products_id']) {
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', str_replace('.', ',', (double) $p_coo_product->data['gm_min_order']), 'id="gm_attr_calc_qty"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
} else {
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'disabled="disabled" style="background-color:gray;"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_attr_calc_qty"'));
$t_quantity = 1;
$t_disabled_quantity = 1;
}
$this->set_content_data('QUANTITY', $t_quantity);
$this->set_content_data('DISABLED_QUANTITY', $t_disabled_quantity);
$this->set_content_data('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'id="cart_button"'));
if (gm_get_conf('GM_SHOW_WISHLIST') == 'true') {
$this->set_content_data('ADD_WISHLIST_BUTTON', '<a href="javascript:submit_to_wishlist()" id="gm_wishlist_link">' . xtc_image_button('button_in_wishlist.gif', NC_WISHLIST) . '</a>');
}
} else {
$this->set_content_data('GM_PID', xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
}
} else {
// BOF GM_MOD:
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', gm_convert_qty($p_coo_product->data['gm_min_order'], false), 'id="gm_attr_calc_qty"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
$t_quantity = gm_convert_qty($p_coo_product->data['gm_min_order'], false);
$t_disabled_quantity = 0;
if (@$xsb_tx['XTB_ALLOW_USER_CHQTY'] == 'true' || $xsb_tx['products_id'] != $p_coo_product->data['products_id']) {
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', str_replace('.', ',', (double) $p_coo_product->data['gm_min_order']), 'id="gm_attr_calc_qty"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
} else {
$this->set_content_data('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'disabled="disabled" style="background-color:gray;"') . ' ' . xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_attr_calc_qty"'));
$t_quantity = 1;
$t_disabled_quantity = 1;
}
$this->set_content_data('QUANTITY', $t_quantity);
$this->set_content_data('DISABLED_QUANTITY', $t_disabled_quantity);
$this->set_content_data('ADD_CART_BUTTON', xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'id="cart_button"'));
if (gm_get_conf('GM_SHOW_WISH_LIST') == 'true') {
$this->set_content_data('ADD_WISHLIST_BUTTON', '<a href="javascript:submit_to_wishlist()">' . xtc_image_button('button_in_wishlist.gif', NC_WISHLIST) . '</a>');
}
}
} elseif ($xtPrice->gm_check_price_status($p_coo_product->data['products_id']) > 0 || $_SESSION['customers_status']['customers_status_show_price'] == '0') {
$this->set_content_data('GM_PID', xtc_draw_hidden_field('products_id', $p_coo_product->data['products_id'], 'id="gm_products_id"'));
}
if ($p_coo_product->data['products_fsk18'] == '1') {
$this->set_content_data('PRODUCTS_FSK18', 'true');
}
// BOF GM_MOD:
if (ACTIVATE_SHIPPING_STATUS == 'true' && $xtPrice->gm_check_price_status($p_coo_product->data['products_id']) == 0) {
$this->set_content_data('SHIPPING_NAME', $main->getShippingStatusName($p_coo_product->data['products_shippingtime']));
$this->set_content_data('SHIPPING_IMAGE', $main->getShippingStatusImage($p_coo_product->data['products_shippingtime']));
}
// BOF_GM_MOD:
$this->set_content_data('FORM_ACTION', xtc_draw_form('cart_quantity', xtc_href_link(FILENAME_PRODUCT_INFO, xtc_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'name="cart_quantity" onsubmit="gm_qty_check = new GMOrderQuantityChecker(); return gm_qty_check.check();"'));
$this->set_content_data('FORM_ACTION_URL', xtc_href_link(FILENAME_PRODUCT_INFO, xtc_get_all_get_params(array('action')) . 'action=add_product'));
$this->set_content_data('FORM_ID', 'cart_quantity');
$this->set_content_data('FORM_NAME', 'cart_quantity');
$this->set_content_data('FORM_METHOD', 'post');
// BOF GM_MOD GX-Customizer
$coo_gm_gprint_product_manager = new GMGPrintProductManager();
if ($coo_gm_gprint_product_manager->get_surfaces_groups_id($p_coo_product->data['products_id']) !== false) {
$coo_gm_gprint_configuration = new GMGPrintConfiguration($_SESSION['languages_id']);
$this->set_content_data('GM_GPRINT_SHOW_PRODUCTS_DESCRIPTION', $coo_gm_gprint_configuration->get_configuration('SHOW_PRODUCTS_DESCRIPTION'));
$this->set_content_data('GM_GPRINT', 1);
}
// EOF GM_MOD GX-Customizer
//.........这里部分代码省略.........
开发者ID:digitaldevelopers,项目名称:gambio-gx2-bitcoin-payment,代码行数:101,代码来源:ProductInfoContentView.inc.php
示例6: payment
require_once DIR_WS_CLASSES . 'payment.php';
$payment_modules = new payment($payment_class);
$smarty->assign('PAYMENT_INFO', $payment_modules->success());
// BOF - GTB - 2011-04-12 - changes for Guest Account
// $smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')));
$smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')) . xtc_draw_hidden_field('account_type', $_SESSION['account_type']));
// EOF - GTB - 2011-04-12 - changes for Guest Account
//BOF - Dokuman - 2009-11-23 - Make the print preview clickable, i.e. change mouse cursor to hand symbol
$smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CHECKOUT_START_PAGE));
//$smarty->assign('BUTTON_PRINT', '<img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" style="cursor:pointer" onclick="window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=0, width=640, height=600\')" />');
//BOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
//$smarty->assign('BUTTON_PRINT', '<a style="cursor:pointer" onclick="javascript:window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=0, width=640, height=600\')"><img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" alt="'.TEXT_PRINT.'" /></a>');
//BOF - GTB - 2010-09-15 - change Print Button to Form for Guests
//$smarty->assign('BUTTON_PRINT', '<a style="cursor:pointer" onclick="javascript:window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, width=640, height=600\')"><img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" alt="'.TEXT_PRINT.'" /></a>');
$smarty->assign('FORM_ACTION_PRINT', xtc_draw_form('print_order', xtc_href_link(FILENAME_PRINT_ORDER, 'oID=' . $orders['orders_id'], 'SSL'), 'post', 'target="popup" onsubmit="javascript:window.open(\'' . xtc_href_link(FILENAME_PRINT_ORDER, 'oID=' . $orders['orders_id'], 'SSL') . '\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, ' . POPUP_PRINT_ORDER_SIZE . '\')"') . xtc_draw_hidden_field('customer_id', $_SESSION['customer_id']));
$smarty->assign('BUTTON_PRINT', xtc_image_submit('print.gif', TEXT_PRINT));
//EOF - GTB - 2010-09-15 - change Print Button to Form for Guests
//EOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
//EOF - Dokuman - 2009-11-23 - Make the print preview clickable, i.e. change mouse cursor to hand symbol
$smarty->assign('FORM_END', '</form>');
// GV Code Start
$gv_query = xtc_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id='" . $_SESSION['customer_id'] . "'");
if ($gv_result = xtc_db_fetch_array($gv_query)) {
if ($gv_result['amount'] > 0) {
$smarty->assign('GV_SEND_LINK', xtc_href_link(FILENAME_GV_SEND));
}
}
// GV Code End
// Google Conversion tracking
if (GOOGLE_CONVERSION == 'true') {
$smarty->assign('google_tracking', 'true');
示例7: xtc_draw_form
//BOF - Dokuman - 2009-12-23 - send contact form information with SSL
//$smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID='.(int) $_GET['coID'])));
$smarty->assign('FORM_ACTION', xtc_draw_form('contact_us', xtc_href_link(FILENAME_CONTENT, 'action=send&coID=' . (int) $_GET['coID'], 'SSL')));
//EOF - Dokuman - 2009-12-23 - send contact form information with SSL
$smarty->assign('INPUT_NAME', xtc_draw_input_field('name', $error ? $_POST['name'] : $customers_name, 'size="30"'));
$smarty->assign('INPUT_EMAIL', xtc_draw_input_field('email', $error ? $_POST['email'] : $email_address, 'size="30"'));
$smarty->assign('INPUT_HONEYPOT', xtc_draw_input_field('email2_FT7ughj521dfdf', $error ? $_POST['email2_FT7ughj521dfdf'] : '', 'size="30"'));
// BOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
$smarty->assign('INPUT_PHONE', xtc_draw_input_field('phone', $error ? $_POST['phone'] : $phone, 'size="30"'));
$smarty->assign('INPUT_COMPANY', xtc_draw_input_field('company', $error ? $_POST['company'] : $company, 'size="30"'));
$smarty->assign('INPUT_STREET', xtc_draw_input_field('street', $error ? $_POST['street'] : $street, 'size="30"'));
$smarty->assign('INPUT_POSTCODE', xtc_draw_input_field('postcode', $error ? $_POST['postcode'] : $postcode, 'size="30"'));
$smarty->assign('INPUT_CITY', xtc_draw_input_field('city', $error ? $_POST['city'] : $city, 'size="30"'));
$smarty->assign('INPUT_FAX', xtc_draw_input_field('fax', $error ? $_POST['fax'] : $fax, 'size="30"'));
if (CONTACT_FORM_CONSENT == 'true') {
$smarty->assign('CHECKBOX', xtc_draw_checkbox_field('checkbox'));
}
// EOF - Tomcraft - 2009-11-05 - Advanced contact form (additional fields)
// BOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
//$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? xtc_db_input($_POST['message_body']) : $first_name)));
// BOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
//$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 50, 15, ($error ? $_POST['message_body'] : $message_body)));
$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('message_body', 'soft', 45, 15, $error ? $_POST['message_body'] : $message_body));
// EOF - Tomcraft - 2010-02-18 - Fixed width of textarea in FireFox under Linux.
// EOF - Tomcraft - 2009-09-29 - fixed word-wrap in contact-form
$smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_send.gif', IMAGE_BUTTON_SEND));
$smarty->assign('FORM_END', '</form>');
}
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/contact_us.html');
示例8: xtc_image
$back_button_submit = BUTTONS_DIR . 'continue.gif';
$s = $navigation_text[$n_step];
if (!$s) {
$s = $navigation_text[$n_step + 1];
}
$s = QUOTE . $s . QUOTE;
$continue_button_link = xtc_image($back_button_submit, $s);
$onsubmit_text = '#onsubmit#';
$continue_button_submit = xtc_image_submit($back_button_submit, BUTTON_CONTINUE_TEXT . $s, $onsubmit_text);
$s = $navigation_text[$p_step];
if (!$s) {
$s = $navigation_text[$p_step - 1];
}
$s = QUOTE . $s . QUOTE;
$back_button_submit = xtc_image_submit(BUTTONS_DIR . 'back.gif', BUTTON_BACK_TEXT . $s);
$retry_button_submit = xtc_image_submit(BUTTONS_DIR . 'retry.gif', BUTTON_RETRY_TEXT . QUOTE . $navigation_text[$install_step] . QUOTE);
$install_text = 'install';
$install_step_text = $install_text . '_step';
$step_text = 'step';
if ($install_step > 1) {
/*
if (!$_SESSION[$step_text][$p_step]) //Previous step not done!
{
install_error(TEXT_STEP_ERROR);
$post_data.='
<tr>
<td class="error">'.TEXT_STEP_ERROR_1.'</td>
</tr>
';
include('includes/program_frame.php');
}
示例9: xtc_href_link
$gift_smarty->assign('GV_AMOUNT', $xtPrice->xtcFormat($gv_result['amount'], true, 0, true));
$gift_smarty->assign('GV_SEND_TO_FRIEND_LINK', xtc_href_link(FILENAME_GV_SEND));
} else {
$gift_smarty->assign('GV_AMOUNT', 0);
}
}
if (isset($_SESSION['gv_id'])) {
$gv_query = xtc_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $_SESSION['gv_id'] . "'");
$coupon = xtc_db_fetch_array($gv_query);
$gift_smarty->assign('COUPON_AMOUNT2', $xtPrice->xtcFormat($coupon['coupon_amount'], true, 0, true));
}
if (isset($_SESSION['cc_id'])) {
if (!defined('POPUP_COUPON_HELP_LINK_PARAMETERS')) {
define('POPUP_COUPON_HELP_LINK_PARAMETERS', '&KeepThis=true&TB_iframe=true&height=400&width=600');
}
if (!defined('POPUP_SHIPPING_LINK_CLASS')) {
define('POPUP_SHIPPING_LINK_CLASS', 'thickbox');
}
$gift_smarty->assign('COUPON_HELP_LINK', '<a target="_blank" class="' . POPUP_SHIPPING_LINK_CLASS . '" href="' . xtc_href_link(FILENAME_POPUP_COUPON_HELP, 'cID=' . $_SESSION['cc_id'] . POPUP_COUPON_HELP_LINK_PARAMETERS, $request_type) . '">');
}
if (isset($_SESSION['customer_id'])) {
$gift_smarty->assign('C_FLAG', 'true');
}
$gift_smarty->assign('LINK_ACCOUNT', xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
$gift_smarty->assign('FORM_ACTION', xtc_draw_form('gift_coupon', xtc_href_link(FILENAME_SHOPPING_CART, 'action=check_gift', $request_type)));
$gift_smarty->assign('INPUT_CODE', xtc_draw_input_field('gv_redeem_code'));
$gift_smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_redeem.gif', IMAGE_REDEEM_GIFT));
$gift_smarty->assign('language', $_SESSION['language']);
$gift_smarty->assign('FORM_END', '</form>');
$gift_smarty->caching = 0;
$smarty->assign('MODULE_gift_cart', $gift_smarty->fetch(CURRENT_TEMPLATE . '/module/gift_cart.html'));
示例10: get_html
function get_html()
{
global $PHP_SELF;
$config = $this->_payone->getConfig();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (!empty($_POST['billto'])) {
$this->_correctAddressBookEntry($_SESSION['billto'], $_POST['billto']);
}
if (!empty($_POST['sendto'])) {
$this->_correctAddressBookEntry($_SESSION['sendto'], $_POST['sendto']);
}
// user has had a chance to review/correct addresses, consider them validated now
$_SESSION['payone_ac_billing_hash'] = $this->_payone->getAddressHash($_SESSION['billto']);
$_SESSION['payone_ac_delivery_hash'] = $this->_payone->getAddressHash($_SESSION['sendto']);
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
$addresses_correct = $this->_checkAddresses();
if ($addresses_correct) {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}
if (isset($_SESSION['payone_error']) && $_SESSION['payone_error'] == 'address_changed') {
$this->set_content_data('note_address_changed', NOTE_ADDRESS_CHANGED);
unset($_SESSION['payone_error']);
}
$this->set_content_data('form_action', xtc_href_link(basename($PHP_SELF), '', 'SSL'));
$this->set_content_data('BUTTON_CONFIRM', xtc_image_submit('button_confirm.gif', IMAGE_BUTTON_CONFIRM));
$this->set_content_data('payonecss', DIR_WS_EXTERNAL . 'payone/css/payone.css');
$t_html_output = $this->_payone->build_html('checkout_payone_addresscheck.html', $this->content);
return $t_html_output;
}
示例11: xtc_draw_textarea_field
if (!$product->isProduct()) {
$smarty->assign('error', ERROR_INVALID_PRODUCT);
} else {
$name = "";
if (isset($customer_info['customers_firstname']) && $customer_info['customers_firstname'] != '') {
$name .= $customer_info['customers_firstname'] . ' ';
}
if (isset($customer_info['customers_lastname']) && $customer_info['customers_lastname'] != '') {
$name .= $customer_info['customers_lastname'];
}
if ($name == "") {
$name = TEXT_GUEST;
}
$smarty->assign('PRODUCTS_NAME', $product->data['products_name']);
$smarty->assign('AUTHOR', $name);
$smarty->assign('INPUT_TEXT', xtc_draw_textarea_field('review', 'soft', 60, 15, '', '', false));
$smarty->assign('INPUT_RATING', xtc_draw_radio_field('rating', '1') . ' ' . xtc_draw_radio_field('rating', '2') . ' ' . xtc_draw_radio_field('rating', '3') . ' ' . xtc_draw_radio_field('rating', '4') . ' ' . xtc_draw_radio_field('rating', '5'));
$smarty->assign('FORM_ACTION', xtc_draw_form('product_reviews_write', xtc_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'action=process&' . xtc_product_link($product->data['products_id'], $product->data['products_name'])), 'post', 'onSubmit="return checkForm();"'));
$smarty->assign('BUTTON_BACK', '<a href="javascript:history.back(1)">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
$smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE) . xtc_draw_hidden_field('get_params', $get_params));
$smarty->assign('FORM_END', '</form>');
}
$smarty->assign('language', $_SESSION['language']);
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/product_reviews_write.html');
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined('RM')) {
$smarty->load_filter('output', 'note');
}
$smarty->display(CURRENT_TEMPLATE . '/index.html');
include 'includes/application_bottom.php';
示例12: selection
function selection()
{
global $smarty;
$payments = get_third_party_payments();
if (ACTIVATE_GIFT_SYSTEM == 'true') {
require_once DIR_WS_CLASSES . 'order_total.php';
$order_total_modules = new order_total();
$credit_selection = $order_total_modules->credit_selection();
}
if (isset($credit_selection) && is_array($credit_selection) && count($credit_selection) > 0) {
$payments = array();
}
if (isset($_SESSION['payment'])) {
for ($i = 0, $n = count($payments); $i < $n; $i++) {
if ($payments[$i]['id'] == $_SESSION['payment']) {
$_SESSION['payment'] = $this->code;
}
}
}
$_SESSION['paypal']['approval'] = $this->payment_redirect(false, true);
if ($_SESSION['paypal']['approval'] == '') {
$GLOBALS['paypalplus']->enabled = false;
} else {
$description = '<div id="ppp_result"></div>
<script type="text/javascript">
(function() {
var pp = document . createElement(\'script\');
pp.type = \'text/javascript\';
pp.async = true;
pp.src = \'https://www.paypalobjects.com/webstatic/ppplus/ppplus.min.js\';
var s = document.getElementsByTagName(\'script\')[0];
s . parentNode . insertBefore(pp, s);
})();
$(window).on(\'load\',function() {
' . (count($payments) > 0 ? '
if ($(\'input[name="payment"]:checked\', \'#checkout_payment\').val() == "' . $this->code . '") {
$("#continueButton").attr("onclick", "ppp.doContinue(); return false;");
}
' : '') . '
$("#checkout_payment").attr("name", "checkout_payment");
$.get("' . xtc_href_link('callback/paypal/paypalplus.php', '', 'SSL') . '", function(data) {
$("#ppp_result").html(data);
});
' . ($this->get_config('MODULE_PAYMENT_' . strtoupper($this->code) . '_USE_TABS') == '1' || count($payments) > 0 ? '
$("[id*=\\"rd\\"]").click(function(e) {
if ($(\'input[name="payment"]:checked\', \'#checkout_payment\').val() == "' . $this->code . '") {
' . ($this->get_config('MODULE_PAYMENT_' . strtoupper($this->code) . '_USE_TABS') == '1' ? '
$.get("' . xtc_href_link('callback/paypal/paypalplus.php', '', 'SSL') . '", function(data) {
$("#ppp_result").html(data);
});
' : '') . '
' . (count($payments) > 0 ? '
$("#continueButton").removeAttr("onclick");
$("#continueButton").attr("onclick", "ppp.doContinue(); return false;");
' : '') . '
} else {
' . (count($payments) > 0 ? '$("#continueButton").removeAttr("onclick");' : '') . '
}
});' : '') . '
});
</script>';
$smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE, 'id="continueButton"'));
return array('id' => $this->code, 'module' => $this->title, 'description' => $this->info . $description);
}
}
示例13: xtc_href_link
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
// include needed functions
require_once DIR_FS_INC . 'xtc_get_categories.inc.php';
require_once DIR_FS_INC . 'xtc_get_manufacturers.inc.php';
require_once DIR_FS_INC . 'xtc_checkdate.inc.php';
$breadcrumb->add(NAVBAR_TITLE_ADVANCED_SEARCH, xtc_href_link(FILENAME_ADVANCED_SEARCH));
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('FORM_ACTION', xtc_draw_form('advanced_search', xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get', 'onsubmit="return check_form(this);"') . xtc_hide_session_id());
//WEB28 change NONSSL to $request_type
$smarty->assign('INPUT_KEYWORDS', xtc_draw_input_field('keywords', '', 'style="width: 100%"'));
//BOF - DokuMan - 2009-05-31 - removed quotationmark
//$smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP.'?KeepThis=true&TB_iframe=true&height=400&width=600"'));
$smarty->assign('HELP_LINK', xtc_href_link(FILENAME_POPUP_SEARCH_HELP . '?KeepThis=true&TB_iframe=true&height=400&width=600'));
//EOF - DokuMan - 2009-05-31 - removed quotationmark
$smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH));
$smarty->assign('SELECT_CATEGORIES', xtc_draw_pull_down_menu('categories_id', xtc_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))));
$smarty->assign('ENTRY_SUBCAT', xtc_draw_checkbox_field('inc_subcat', '1', true));
$smarty->assign('SELECT_MANUFACTURERS', xtc_draw_pull_down_menu('manufacturers_id', xtc_get_manufacturers(array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))));
$smarty->assign('SELECT_PFROM', xtc_draw_input_field('pfrom'));
$smarty->assign('SELECT_PTO', xtc_draw_input_field('pto'));
$error = '';
if (isset($_GET['errorno'])) {
if (($_GET['errorno'] & 1) == 1) {
$error .= str_replace('\\n', '<br />', JS_AT_LEAST_ONE_INPUT);
}
if (($_GET['errorno'] & 10) == 10) {
$error .= str_replace('\\n', '<br />', JS_INVALID_FROM_DATE);
}
if (($_GET['errorno'] & 100) == 100) {
$error .= str_replace('\\n', '<br />', JS_INVALID_TO_DATE);
示例14: PayPalPayment
}
if (isset($o_paypal) && is_object($o_paypal)) {
$smarty->assign('BUTTON_PAYPAL', $o_paypal->build_express_checkout_button());
}
## PayPal
require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalPayment.php';
$paypal_cart = new PayPalPayment('paypalcart');
if ($paypal_cart->enabled === true) {
$smarty->assign('BUTTON_PAYPAL', $paypal_cart->checkout_button());
if (isset($_GET['payment_error'])) {
include_once DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/paypalcart.php';
$error = $paypal_cart->get_error();
$smarty->assign('info_message', $error['error']);
}
}
$smarty->assign('BUTTON_RELOAD', xtc_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART));
$smarty->assign('BUTTON_CHECKOUT', '<a href="' . xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . xtc_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>');
}
// EOF - Tomcraft - 2009-10-03 - Paypal Express Modul
} else {
// empty cart
$cart_empty = true;
//if ($_GET['info_message'])
// $smarty->assign('info_message', str_replace('+', ' ', encode_htmlspecialchars($_GET['info_message'])));
$smarty->assign('cart_empty', $cart_empty);
$smarty->assign('BUTTON_CONTINUE', '<a href="' . xtc_href_link(FILENAME_DEFAULT) . '">' . xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>');
}
if (isset($_GET['info_message'])) {
$smarty->assign('info_message', str_replace('+', ' ', encode_htmlspecialchars($_GET['info_message'])));
}
//BOF - web28 - 2011-05-15 - new continue shopping link
示例15: xtc_get_all_get_params
echo $payments_split->display_links($payments_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], xtc_get_all_get_params(array('page', 'pID', 'action')));
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAYMENT . '</b>');
$contents = array('form' => xtc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br>');
$contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . xtc_datetime_short($pInfo->affiliate_payment_date) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . xtc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
}
break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}