本文整理汇总了PHP中xtc_href_link函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_href_link函数的具体用法?PHP xtc_href_link怎么用?PHP xtc_href_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_href_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: xtc_display_banner
function xtc_display_banner($action, $identifier)
{
if ($action == 'dynamic') {
$banners_query = xtc_db_query("select count(*) as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . xtc_db_input($identifier) . "'");
$banners = xtc_db_fetch_array($banners_query);
if ($banners['count'] > 0) {
$banner = xtc_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . xtc_db_input($identifier) . "'");
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</strong>';
}
} elseif ($action == 'static') {
if (is_array($identifier)) {
$banner = $identifier;
} else {
$banner_query = xtc_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . xtc_db_input($identifier) . "'");
if (xtc_db_num_rows($banner_query)) {
$banner = xtc_db_fetch_array($banner_query);
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> Banner with ID \'' . $identifier . '\' not found, or status inactive</strong>';
}
}
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> Unknown $action parameter value - it must be either \'dynamic\' or \'static\'</strong>';
}
if (xtc_not_null($banner['banners_html_text'])) {
$banner_string = $banner['banners_html_text'];
} else {
$banner_string = '<a href="' . xtc_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" onclick="window.open(this.href); return false;">' . xtc_image(DIR_WS_IMAGES . 'banner/' . $banner['banners_image'], $banner['banners_title']) . '</a>';
}
xtc_update_banner_display_count($banner['banners_id']);
return $banner_string;
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:32,代码来源:xtc_display_banner.inc.php
示例2: __construct
function __construct($var)
{
if (!isset($_var) && !is_array($var)) {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'NONSSL'));
} else {
$this->response_string = array();
$this->response_string['response'] = $var['response'];
$this->response_string['order_id'] = $var['order_id'];
$this->response_string['payment_method'] = $var['payment_method'];
$this->response_string['lang'] = $var['lang'];
$this->response_string['controlkey'] = $var['controlkey'];
if ($this->checkResponse()) {
if (isset($_SESSION['cart_Masterpayment_ID']) && !empty($_SESSION['cart_Masterpayment_ID']) or substr($_SESSION['payment'], 0, strpos($_SESSION['payment'], '_')) == 'masterpayment') {
if ($this->response_string['response'] == 'success') {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'NONSSL'));
} elseif ($this->response_string['response'] == 'failed') {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=masterpayment_' . $this->response_string['payment_method'], 'NONSSL'));
} elseif ($this->response_string['response'] == 'cancelled') {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'NONSSL'));
}
} elseif ($this->response_string['response'] == 'success') {
$this->sendMail();
}
} else {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'NONSSL'));
}
}
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:28,代码来源:MasterpaymentResponse.class.php
示例3: displaySettings
function displaySettings()
{
$contents = xtc_draw_form('modules', 'easymarketing.php', 'content=save', 'post');
$module_keys = $this->keys();
$keys_extra = array();
for ($j = 0, $k = sizeof($module_keys); $j < $k; $j++) {
$key_value_query = xtc_db_query("SELECT configuration_key,\n configuration_value,\n use_function,\n set_function\n FROM " . TABLE_CONFIGURATION . "\n WHERE configuration_key = '" . $module_keys[$j] . "'");
$key_value = xtc_db_fetch_array($key_value_query);
if ($key_value['configuration_key'] != '') {
$keys_extra[$module_keys[$j]]['title'] = constant(strtoupper($key_value['configuration_key'] . '_TITLE'));
}
$keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
if ($key_value['configuration_key'] != '') {
$keys_extra[$module_keys[$j]]['description'] = constant(strtoupper($key_value['configuration_key'] . '_DESC'));
}
$keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
$keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
}
$module_info['keys'] = $keys_extra;
while (list($key, $value) = each($module_info['keys'])) {
$contents .= '<b>' . $value['title'] . '</b><br />' . $value['description'] . '<br />';
if ($value['set_function']) {
eval('$contents .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
} else {
$contents .= xtc_draw_input_field('configuration[' . $key . ']', $value['value']);
}
$contents .= '<br/><br/>';
}
$contents .= '<br/>' . xtc_button(BUTTON_SAVE);
$contents .= '<hr />' . xtc_button_link(MODULE_EM_UNINSTALL_BUTTON, xtc_href_link('easymarketing.php', xtc_get_all_get_params(array('content')) . 'content=check_uninstall'));
return $contents;
}
开发者ID:digitaldevelopers,项目名称:gambio,代码行数:32,代码来源:Easymarketing.inc.php
示例4: payment_action
function payment_action()
{
global $order, $insert_id;
if (!isset($insert_id) || $insert_id == '') {
$insert_id = $_SESSION['tmp_oID'];
}
$this->payone->log("(pre-)authorizing {$this->code} payment");
$standard_parameters = parent::_standard_parameters();
$this->personal_data = new Payone_Api_Request_Parameter_Authorization_PersonalData();
parent::_set_customers_standard_params();
$this->delivery_data = new Payone_Api_Request_Parameter_Authorization_DeliveryData();
parent::_set_customers_shipping_params();
$this->payment_method = new Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet();
$this->payment_method->setWallettype('PPE');
$this->payment_method->setSuccessurl((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . FILENAME_CHECKOUT_PROCESS . '?' . xtc_session_name() . '=' . xtc_session_id());
$this->payment_method->setBackurl((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . FILENAME_CHECKOUT_PAYMENT . '?' . xtc_session_name() . '=' . xtc_session_id());
$this->payment_method->setErrorurl((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . FILENAME_CHECKOUT_PAYMENT . '?' . xtc_session_name() . '=' . xtc_session_id() . '&payment_error=' . $this->code);
// set order_id for deleting canceld order
$_SESSION['tmp_payone_oID'] = $_SESSION['tmp_oID'];
$request_parameters = parent::_request_parameters('wlt');
$this->params = array_merge($standard_parameters, $request_parameters);
$this->builder = new Payone_Builder($this->payone->getPayoneConfig());
parent::_build_service_authentification('wlt');
parent::_parse_response_payone_api();
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'));
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:26,代码来源:payone_wlt.php
示例5: get_category_tree
function get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $category_tree_array = '', $include_itself = false, $cPath = '')
{
if ($parent_id == 0) {
$cPath = '';
} else {
$cPath .= $parent_id . '_';
}
if (!is_array($category_tree_array)) {
$category_tree_array = array();
}
if (sizeof($category_tree_array) < 1 && $exclude != '0') {
$category_tree_array[] = array('id' => '0', 'text' => TEXT_TOP);
}
if ($include_itself) {
// $category_query = "select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . $_SESSION['languages_id'] . "' and c.categories_status = '1' and cd.categories_id = '" . $parent_id . "'";
$category_query = xtDBquery($category_query);
$category_query = "select cd.categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd where cd.language_id = '" . $_SESSION['languages_id'] . "' and c.categories_status = '1' and cd.categories_id = '" . $parent_id . "' order by cd.categories_name ";
$category = xtc_db_fetch_array($category_query, true);
$category_tree_array[] = array('id' => $parent_id, 'text' => $category['categories_name']);
}
$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and cd.language_id = '" . $_SESSION['languages_id'] . "' and c.parent_id = '" . $parent_id . "' and c.categories_status = '1' order by cd.categories_name";
$categories_query = xtDBquery($categories_query);
while ($categories = xtc_db_fetch_array($categories_query, true)) {
$SEF_link = xtc_href_link(FILENAME_DEFAULT, xtc_category_link($categories['categories_id'], $categories['categories_name']));
if ($exclude != $categories['categories_id']) {
$category_tree_array[] = array('id' => $categories['categories_id'], 'text' => $spacing . $categories['categories_name'], 'link' => $SEF_link);
}
$category_tree_array = get_category_tree($categories['categories_id'], $spacing . ' ', $exclude, $category_tree_array, false, $cPath);
}
return $category_tree_array;
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:sitemap.php
示例6: xtc_create_sort_heading
function xtc_create_sort_heading($sortby, $colnum, $heading)
{
$sort_prefix = '';
$sort_suffix = '';
if ($sortby) {
$sort_prefix = '<a href="' . xtc_href_link(basename($_SERVER['PHP_SELF']), xtc_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading . '" class="productListing-heading">';
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . '</a>';
}
return $sort_prefix . $heading . $sort_suffix;
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:10,代码来源:xtc_create_sort_heading.inc.php
示例7: productRedirect
function productRedirect()
{
// Wenn wir auf ner Produkt-Info-Seite sind
if (basename($_SERVER['SCRIPT_NAME']) == FILENAME_PRODUCT_INFO) {
//BOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
global $actual_products_id, $request_type;
//EOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
// Link zum Weiterleiten (MIT Session-ID)
//$RedirectionLink = xtc_href_link(FILENAME_PRODUCT_INFO,xtc_product_link($actual_products_id));
$RedirectionLink = ProductRedirectionLink(intval($actual_products_id));
// Wenn es den Artikel gibt
if ($RedirectionLink) {
// Gewünschter Link (OHNE http/https-Zeug, Session-ID und weitere $_GET-Parameter)
$ProductLink = str_replace(array(HTTP_SERVER, HTTPS_SERVER), '', preg_replace("/([^\\?]*)(\\?.*)/", "\$1", $RedirectionLink));
// Angefragte Adresse (OHNE Session-ID und weitere $_GET-Parameter)
$CurrentLink = preg_replace("/([^\\?]*)(\\?.*)/", "\$1", $_SERVER['REQUEST_URI']);
// 301er-Weiterleitung mit Unterscheidung SSL / kein SSL
if (strpos(urldecode($ProductLink), urldecode($CurrentLink)) === false) {
//BOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
//if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on' || getenv('HTTPS') == '1') ) { // Bei aktivem SSL
if (ENABLE_SSL == true && $request_type == 'SSL') {
// We are loading an SSL page
//EOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
if (substr($RedirectionLink, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) {
$RedirectionLink = HTTPS_SERVER . substr($RedirectionLink, strlen(HTTP_SERVER));
}
}
header('HTTP/1.1 301 Moved Permanently');
// BOF - Hetfield - 2009-11-19 - replaced deprecated function eregi_replace with preg_replace to be ready for PHP >= 5.3
// header('Location: '.eregi_replace("[\r\n]+(.*)$","",$RedirectionLink));
header('Location: ' . preg_replace("/[\r\n]+(.*)\$/i", "", $RedirectionLink));
// EOF - Hetfield - 2009-11-19 - replaced deprecated function eregi_replace with preg_replace to be ready for PHP >= 5.3
}
// Wenn es den Artikel nicht gibt
} else {
// 404er-Weiterleitung
$DefaultLink = xtc_href_link(FILENAME_DEFAULT);
// <-- Hier Fehlerseite festlegen ...
//BOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
//if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on' || getenv('HTTPS') == '1') ) { // Bei aktivem SSL
if (ENABLE_SSL == true && $request_type == 'SSL') {
// We are loading an SSL page
//EOF - web28 - 2010-08-16 - New SSL handling defined by $request_type
if (substr($DefaultLink, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) {
$DefaultLink = HTTPS_SERVER . substr($DefaultLink, strlen(HTTP_SERVER));
}
}
header('HTTP/1.1 404 Not Found');
// BOF - Hetfield - 2009-11-19 - replaced deprecated function eregi_replace with preg_replace to be ready for PHP >= 5.3
// header('Location: '.eregi_replace("[\r\n]+(.*)$","",$DefaultLink));
header('Location: ' . preg_replace("/[\r\n]+(.*)\$/i", "", $DefaultLink));
// EOF - Hetfield - 2009-11-19 - replaced deprecated function eregi_replace with preg_replace to be ready for PHP >= 5.3
}
}
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:55,代码来源:gunnart_productRedirect.inc.php
示例8: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
global $PHP_SELF;
if (xtc_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = xtc_draw_form('pages', basename($PHP_SELF), '', 'get');
if ($current_page_number > 1) {
//$display_links .= '<a href="' . xtc_href_link(basename($PHP_SELF), $parameters . $page_name . '=1') . '" class="splitPageLink">' . PREVNEXT_BUTTON_FIRST . ' </a> ';
$display_links .= '<a href="' . xtc_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, xtc_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onChange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . xtc_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
//$display_links .= ' <a href="' . xtc_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . $num_pages) . '" class="splitPageLink">' . PREVNEXT_BUTTON_LAST . '</a>';
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= xtc_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= xtc_draw_hidden_field(session_name(), session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:46,代码来源:split_page_results.php
示例9: credit_risk_check
function credit_risk_check()
{
$config = $this->_payone->getConfig();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['noconfirm'])) {
if ($config['credit_risk']['timeofcheck'] == 'before') {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'p1crskip=1', 'SSL'));
} else {
$_SESSION['payone_error'] = CREDIT_RISK_FAILED;
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code, 'SSL'));
}
}
// A/B testing: only perform scoring every n-th time
$do_score = true;
if ($config['credit_risk']['abtest']['active'] == 'true') {
$ab_value = max(1, (int) $config['credit_risk']['abtest']['value']);
$score_count = (int) MODULE_PAYMENT_PAYONE_AB_TESTING;
$do_score = $score_count % $ab_value == 0;
xtc_db_query("UPDATE " . TABLE_CONFIGURATION . " SET configuration_value='" . ($score_count + 1) . "', last_modified = NOW() where configuration_key='MODULE_PAYMENT_PAYONE_AB_TESTING'");
}
if ($do_score) {
$score = $this->_payone->scoreCustomer($_SESSION['billto']);
} else {
$score = false;
}
if ($score instanceof Payone_Api_Response_Consumerscore_Valid) {
switch ((string) $score->getScore()) {
case 'G':
$_SESSION['payone_cr_result'] = 'green';
break;
case 'Y':
$_SESSION['payone_cr_result'] = 'yellow';
break;
case 'R':
$_SESSION['payone_cr_result'] = 'red';
break;
default:
$_SESSION['payone_cr_result'] = $config['credit_risk']['newclientdefault'];
}
$_SESSION['payone_cr_hash'] = $this->_payone->getAddressHash($_SESSION['billto']);
} else {
// could not get a score value
$_SESSION['payone_cr_result'] = $config['credit_risk']['newclientdefault'];
$_SESSION['payone_cr_hash'] = $this->_payone->getAddressHash($_SESSION['billto']);
}
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:45,代码来源:PayoneCreditRisk.php
示例10: confirmation
function confirmation()
{
global $order;
$confirmation = parent::confirmation();
$this->fastCheckout->setFastCheckoutFlag($this->fastCheckoutFlag);
$payment = $this->getPayment($_SESSION['customer_id']);
$script = $this->getScript();
$script .= '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>' . '<script type="text/javascript">' . 'var elvlogging = "' . MODULE_PAYMENT_PAYMILL_ELV_LOGGING . '";' . 'var sepaActive ="' . MODULE_PAYMENT_PAYMILL_ELV_SEPA . '";' . 'var elv_account_number_invalid = "' . html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_INVALID) . '";' . 'var elv_bank_code_invalid = "' . html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_BANKCODE_INVALID) . '";' . 'var elv_bank_owner_invalid = "' . html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_HOLDER_INVALID) . '";' . 'var elv_iban_invalid = "' . html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_IBAN_INVALID) . '";' . 'var elv_bic_invalid = "' . html_entity_decode(MODULE_PAYMENT_PAYMILL_ELV_TEXT_BIC_INVALID) . '";' . 'var paymill_account_name = ' . json_encode($order->billing['firstname'] . ' ' . $order->billing['lastname']) . ';' . 'var paymill_elv_code = "' . $payment['code'] . '";' . 'var paymill_elv_holder = "' . utf8_decode($payment['holder']) . '";' . 'var paymill_elv_iban = "' . utf8_decode($payment['iban']) . '";' . 'var paymill_elv_bic = "' . utf8_decode($payment['bic']) . '";' . 'var paymill_elv_account = "' . $payment['account'] . '";' . 'var paymill_elv_fastcheckout = ' . ($this->fastCheckout->canCustomerFastCheckoutElv($_SESSION['customer_id']) ? 'true' : 'false') . ';' . 'var checkout_payment_link = "' . xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'step=step2&payment_error=' . $this->code . '&error=', 'SSL', true, false) . '";' . '</script>' . '<script type="text/javascript" src="ext/modules/payment/paymill/public/javascript/Iban.js"></script>' . '<script type="text/javascript" src="ext/modules/payment/paymill/public/javascript/elv.js"></script>';
array_push($confirmation['fields'], array('title' => $script . '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT_HOLDER . '</div>', 'field' => '<span id="account-name-field"></span><span id="elv-holder-error" class="paymill-error"></span>'));
if (MODULE_PAYMENT_PAYMILL_ELV_SEPA == 'True') {
array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_IBAN . '</div>', 'field' => '<span id="iban-field"></span><span id="elv-iban-error" class="paymill-error"></span>'));
array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_BIC . '</div>', 'field' => '<span id="bic-field"></span><span id="elv-bic-error" class="paymill-error"></span>'));
} else {
array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_ACCOUNT . '</div>', 'field' => '<span id="account-number-field"></span><span id="elv-account-error" class="paymill-error"></span>'));
array_push($confirmation['fields'], array('title' => '<div class="paymill-label-field">' . MODULE_PAYMENT_PAYMILL_ELV_TEXT_BANKCODE . '</div>', 'field' => '<span id="bank-code-field"></span><span id="elv-bankcode-error" class="paymill-error"></span>'));
}
array_push($confirmation['fields'], array('field' => '<form id="paymill_form" action="' . xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL') . '" method="post" style="display: none;"></form>'));
return $confirmation;
}
开发者ID:SiWe0401,项目名称:paymill-xtcommerce-3,代码行数:19,代码来源:paymill_elv.php
示例11: xtc_customer_greeting
function xtc_customer_greeting()
{
if (isset($_SESSION['customer_last_name']) && isset($_SESSION['customer_id'])) {
if (!isset($_SESSION['customer_gender'])) {
$check_customer_query = "select customers_gender FROM " . TABLE_CUSTOMERS . " where customers_id = '" . xtc_db_input((int) $_SESSION['customer_id']) . "'";
$check_customer_query = xtDBquery($check_customer_query);
$check_customer_data = xtc_db_fetch_array($check_customer_query, true);
$_SESSION['customer_gender'] = $check_customer_data['customers_gender'];
}
if ($_SESSION['customer_gender'] == 'f') {
$greeting_string = sprintf(TEXT_GREETING_PERSONAL, FEMALE . ' ' . $_SESSION['customer_first_name'] . ' ' . $_SESSION['customer_last_name'], xtc_href_link(FILENAME_PRODUCTS_NEW));
} else {
$greeting_string = sprintf(TEXT_GREETING_PERSONAL, MALE . ' ' . $_SESSION['customer_first_name'] . ' ' . $_SESSION['customer_last_name'], xtc_href_link(FILENAME_PRODUCTS_NEW));
}
} else {
$greeting_string = sprintf(TEXT_GREETING_GUEST, xtc_href_link(FILENAME_LOGIN, '', 'SSL'), xtc_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));
}
return $greeting_string;
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:19,代码来源:xtc_customer_greeting.inc.php
示例12: payment_action
function payment_action()
{
global $order, $insert_id;
if (!isset($insert_id) || $insert_id == '') {
$insert_id = $_SESSION['tmp_oID'];
}
$this->payone->log("(pre-)authorizing {$this->code} payment");
$standard_parameters = parent::_standard_parameters();
$this->personal_data = new Payone_Api_Request_Parameter_Authorization_PersonalData();
parent::_set_customers_standard_params();
$this->delivery_data = new Payone_Api_Request_Parameter_Authorization_DeliveryData();
parent::_set_customers_shipping_params();
$this->payment_method = array();
$request_parameters = parent::_request_parameters('vor');
unset($request_parameters['payment']);
$this->params = array_merge($standard_parameters, $request_parameters);
$this->builder = new Payone_Builder($this->payone->getPayoneConfig());
parent::_build_service_authentification('vor');
parent::_parse_response_payone_api();
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'));
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:21,代码来源:payone_prepay.php
示例13: xtc_href_link
echo 'templates/' . CURRENT_TEMPLATE;
?>
/javascript/bootstrap.min.js" type="text/javascript"></script>
<script src="<?php
echo 'templates/' . CURRENT_TEMPLATE;
?>
/javascript/bootstrap-add.js" type="text/javascript"></script>
<script src="<?php
echo 'templates/' . CURRENT_TEMPLATE;
?>
/javascript/ekko-lightbox.min.js" type="text/javascript"></script>
<?php
if (SHOW_COOKIE_NOTE == 'true') {
if (is_numeric(COOKIE_NOTE_CONTENT_ID) && COOKIE_NOTE_CONTENT_ID != 0) {
$cookie_content_link = xtc_href_link(FILENAME_CONTENT, 'coID=' . COOKIE_NOTE_CONTENT_ID);
} else {
$cookie_content_link = NULL;
}
?>
<script src="<?php
echo 'templates/' . CURRENT_TEMPLATE;
?>
/javascript/cookieconsent.min.js"></script>
<script type="text/javascript">
window.cookieconsent_options = {"message":"<?php
echo COOKIE_NOTE_TEXT;
?>
","dismiss":"<?php
echo COOKIE_NOTE_DISMISS_TEXT;
?>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:general.js.php
示例14: xtc_href_link
echo '<table class="infoBoxHeading" width="100%">
<tr>
<td width="150" align="center">
<a class="btn btn-default" href="' . xtc_href_link(FILENAME_CONFIGURATION, 'gID=21', 'NONSSL') . '">Afterbuy</a>
</td>
<td width="1">|</td>
<td width="150" align="center">
<a class="btn btn-default" href="' . xtc_href_link(FILENAME_CONFIGURATION, 'gID=19', 'NONSSL') . '">Google Conversion</a>
</td>
<td width="1">|</td>
<td width="150" align="center">
<a class="btn btn-default" class="btn btn-default" href="' . xtc_href_link(FILENAME_CONFIGURATION, 'gID=111125', 'NONSSL') . '">PayPal</a>
</td>
<td width="1">|</td>
<td width="150" align="center">
<a class="btn btn-default" href="' . xtc_href_link(FILENAME_CONFIGURATION, 'gID=31', 'NONSSL') . '">Moneybookers.com</a>
</td>
<td width="1">|</td>
<td></td>
</tr>
</table>';
if ($_GET['gID'] == '31') {
echo MB_INFO;
}
break;
}
?>
<tr>
<td valign="top" align="right">
<?php
echo xtc_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . (int) $_GET['gID'] . '&action=save');
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:configuration.php
示例15: Copyright
<?php
/* -----------------------------------------------------------------------------------------
$Id: paypalcart.php 10343 2016-10-26 11:54:18Z GTB $
modified eCommerce Shopsoftware
http://www.modified-shop.org
Copyright (c) 2009 - 2013 [www.modified-shop.org]
-----------------------------------------------------------------------------------------
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$lang_array = array('MODULE_PAYMENT_PAYPALCART_TEXT_TITLE' => 'PayPal Cart', 'MODULE_PAYMENT_PAYPALCART_TEXT_INFO' => '<img src="https://www.paypal.com/de_DE/DE/i/logo/lockbox_150x47.gif" />', 'MODULE_PAYMENT_PAYPALCART_TEXT_DESCRIPTION' => 'After "confirm" your will be routet to PayPal to pay your order.<br />Back in shop you will get your order-mail.<br />PayPal is the safer way to pay online. We keep your details safe from others and can help you get your money back if something ever goes wrong.', 'MODULE_PAYMENT_PAYPALCART_ALLOWED_TITLE' => 'Allowed zones', 'MODULE_PAYMENT_PAYPALCART_ALLOWED_DESC' => 'Please enter the zones <b>separately</b> which should be allowed to use this module (e.g. AT,DE (leave empty if you want to allow all zones))', 'MODULE_PAYMENT_PAYPALCART_STATUS_TITLE' => 'Enable PayPal module', 'MODULE_PAYMENT_PAYPALCART_STATUS_DESC' => 'Do you want to accept PayPal payments?', 'MODULE_PAYMENT_PAYPALCART_SORT_ORDER_TITLE' => 'Sort order', 'MODULE_PAYMENT_PAYPALCART_SORT_ORDER_DESC' => 'Sort order of the view. Lowest numeral will be displayed first', 'MODULE_PAYMENT_PAYPALCART_ZONE_TITLE' => 'Payment zone', 'MODULE_PAYMENT_PAYPALCART_ZONE_DESC' => 'If a zone is choosen, the payment method will be valid for this zone only.', 'MODULE_PAYMENT_PAYPALCART_LP' => '<br /><br /><a target="_blank" href="http://www.paypal.com/de/webapps/mpp/referral/paypal-business-account2?partner_id=EHALBVD4M2RQS"><strong>Create PayPal account now.</strong></a>', 'MODULE_PAYMENT_PAYPALCART_TEXT_EXTENDED_DESCRIPTION' => '<strong><font color="red">ATTENTION:</font></strong> Please setup PayPal configuration under "Partner Modules" -> "PayPal" -> <a href="' . xtc_href_link('paypal_config.php') . '"><strong>"PayPal Configuration"</strong></a>!', 'MODULE_PAYMENT_PAYPALCART_TEXT_ERROR_HEADING' => 'Note', 'MODULE_PAYMENT_PAYPALCART_TEXT_ERROR_MESSAGE' => 'PayPal payment has been canceled', 'TEXT_PAYPAL_CART_ACCOUNT_CREATED' => 'We have created a customer account with your PayPal E-Mail address. You can request the password for your new customer account later using the "Forgotten Password" function.');
foreach ($lang_array as $key => $val) {
defined($key) or define($key, $val);
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:16,代码来源:paypalcart.php
示例16: array
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . xtc_draw_input_field('tax_class_title', $tcInfo->tax_class_title));
$contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_DESCRIPTION . '<br />' . xtc_draw_input_field('tax_class_description', $tcInfo->tax_class_description));
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_UPDATE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . BUTTON_CANCEL . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
$contents = array('form' => xtc_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_DELETE . '"/> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . BUTTON_CANCEL . '</a>');
break;
default:
if (is_object($tcInfo)) {
$heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>');
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xtc_date_short($tcInfo->date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . xtc_date_short($tcInfo->last_modified));
$contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_DESCRIPTION . '<br />' . $tcInfo->tax_class_description);
}
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";
}
?>
</tr>
</table></td>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:tax_classes.php
示例17: 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 <[email protected]>
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);
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:loginbox.php
示例18: getCancelUrl
/**
* get the cancel-URL
* @param $paymentMethod - assign $this->code
* @param array (optional) $errors with error-codes
*/
function getCancelUrl($paymentMethod, $errors = array())
{
/*
$session = session_name().'='.session_id();
if (ENABLE_SSL == true)
$server = HTTPS_SERVER
|
请发表评论