本文整理汇总了PHP中tep_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_draw_hidden_field函数的具体用法?PHP tep_draw_hidden_field怎么用?PHP tep_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_draw_hidden_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: execute
function execute()
{
global $PHP_SELF, $lng, $request_type, $oscTemplate, $language, $request_type, $HTTP_GET_VARS, $current_lang_key;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (!isset($lng) || isset($lng) && !is_object($lng)) {
include DIR_WS_CLASSES . 'language.php';
$lng = new language();
}
if (count($lng->catalog_languages) > 1) {
reset($lng->catalog_languages);
$languages_array = array();
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_array[] = array('id' => $key, 'text' => $value['name']);
}
foreach ($lng->catalog_languages as $key => $value) {
if ($value['directory'] == $language) {
$current_lang_key = $key;
break;
}
}
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if (is_string($value) && $key != 'language' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$data = '<div class="headerBox languages">' . ' <span class="headerTitle languages-title">' . MODULE_BOXES_HEADER_LANGUAGES_BOX_TITLE . '</span>' . ' <div class="headerBoxContents">' . ' ' . tep_draw_form('languages', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . ' ' . tep_draw_pull_down_menu('language', $languages_array, $current_lang_key, 'onchange="this.form.submit();"') . $hidden_get_variables . tep_hide_session_id() . '</form>' . ' </div>' . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:templatemonster,项目名称:oscommerce,代码行数:31,代码来源:h_languages.php
示例2: process_button
function process_button()
{
global $order;
$last_order_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id desc limit 1");
$result = tep_db_fetch_array($last_order_id);
$this->orderID = $result['orders_id'] + 1;
$acceptURL = tep_href_link(FILENAME_CHECKOUT_PROCESS, 'referer=mokejimai', 'SSL');
$cancelURL = tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL');
$callbackURL = tep_href_link('mokejimai_validation.php', '', 'SSL', false, false, true);
$acceptURL = str_replace('&', '&', $acceptURL);
$cancelURL = str_replace('&', '&', $cancelURL);
$callbackURL = str_replace('&', '&', $callbackURL);
try {
$request = WebToPay::buildRequest(array('projectid' => $this->projectID, 'sign_password' => $this->projectPass, 'orderid' => $this->orderID, 'amount' => intval(number_format($order->info['total'], 2, '', '')), 'currency' => $order->info['currency'], 'lang' => substr($_SESSION['language'], 0, 2) !== 'lt' ? 'ENG' : 'LTU', 'accepturl' => $acceptURL, 'cancelurl' => $cancelURL, 'callbackurl' => $callbackURL, 'country' => 'LT', 'logo' => '', 'p_firstname' => $order->customer['firstname'], 'p_lastname' => $order->customer['lastname'], 'p_email' => $order->customer['email_address'], 'p_street' => $order->customer['street_address'], 'p_city' => $order->customer['city'], 'p_state' => $order->customer['state'], 'p_zip' => $order->customer['postcode'], 'p_countrycode' => $order->customer['country']['iso_code_2'], 'test' => $this->testMode));
} catch (WebToPayException $e) {
echo get_class($e) . ': ' . $e->getMessage();
}
$html = '';
if ($request) {
foreach ($request as $key => $value) {
$html .= tep_draw_hidden_field($key, $value);
}
}
return $html;
}
开发者ID:digitaldevelopers,项目名称:plugin-cre-loaded,代码行数:25,代码来源:mokejimai.php
示例3: execute
function execute()
{
global $PHP_SELF, $currencies, $request_type, $currency, $oscTemplate;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($_GET);
while (list($key, $value) = each($_GET)) {
if (is_string($value) && $key != 'currency' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$form_output = tep_draw_form('currencies', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>';
ob_start();
include 'includes/modules/boxes/templates/currencies.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:25,代码来源:bm_currencies.php
示例4: process_button
function process_button()
{
if (SHOP_ID == 14 || SHOP_ID == 16) {
global $HTTP_POST_VARS;
$process_button_string = tep_draw_hidden_field('purchase_order', tep_sanitize_string($HTTP_POST_VARS['purchase_order']));
return $process_button_string;
}
return false;
}
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:9,代码来源:bank_corporate.php
示例5: process_button
function process_button()
{
$ic_country = $this->getUserCountry(MODULE_PAYMENT_ICEPAY_DDEBIT_COUNTRY);
$ic_currency = $this->getUserCurrency(MODULE_PAYMENT_ICEPAY_DDEBIT_CURRENCY);
$ic_language = $this->getUserLanguage(MODULE_PAYMENT_ICEPAY_DDEBIT_LANGUAGE);
$ic_amount = $this->getOrderAmount(MODULE_PAYMENT_ICEPAY_DDEBIT_CURRENCY);
$hidden_fields = parent::process_button(array('ic_country' => $ic_country, 'ic_currency' => $ic_currency, 'ic_language' => $ic_language, 'ic_amount' => $ic_amount));
return tep_draw_hidden_field('ic_paymentmethod', 'DDEBIT') . tep_draw_hidden_field('ic_issuer', 'INCASSO') . $hidden_fields;
}
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:9,代码来源:icepay_ddebit.php
示例6: execute
function execute()
{
global $request_type, $oscTemplate;
$form_output = ' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' <div class="input-group">' . ' ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . ' <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button></span>' . ' </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . ' </form>';
ob_start();
include DIR_WS_MODULES . 'boxes/templates/search.php';
$data = ob_get_clean();
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:9,代码来源:bm_search.php
示例7: execute
function execute()
{
global $request_type, $oscTemplate;
if ($this->group == 'boxes_header') {
$data = '<div class="col-sm-6">' . tep_navbar_search('btn-info', false) . '</div>';
} else {
$data = '<div class="panel panel-default">' . ' <div class="panel-heading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</div>' . ' <div class="panel-body text-center">' . ' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . ' <div class="input-group">' . ' ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"') . ' <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="glyphicon glyphicon-search"></i></button></span>' . ' </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . '<br />' . MODULE_BOXES_SEARCH_BOX_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' . ' </form>' . ' </div>' . '</div>';
}
$oscTemplate->addBlock($data, $this->group);
}
开发者ID:osc2nuke,项目名称:demobts,代码行数:10,代码来源:bm_search.php
示例8: process_button
public function process_button($transactionID = 0, $key = "")
{
global $order, $currencies, $currency;
$my_currency = strtoupper($GLOBALS['A2B']->config['global']['base_currency']);
if (!in_array($my_currency, $this->paypal_allowed_currencies)) {
$my_currency = 'USD';
}
$currencyObject = new currencies();
$process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('rm', '2') . tep_draw_hidden_field('LC', 'US') . tep_draw_hidden_field('country', 'USA') . tep_draw_hidden_field('no_shipping', '1') . tep_draw_hidden_field('PHPSESSID', session_id()) . tep_draw_hidden_field('amount', number_format($order->info['total'], $currencyObject->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('notify_url', tep_href_link("checkout_process.php?transactionID=" . $transactionID . "&sess_id=" . session_id() . "&key=" . $key, '', 'SSL')) . tep_draw_hidden_field('return', tep_href_link("userinfo.php", '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link("userinfo.php", '', 'SSL'));
return $process_button_string;
}
开发者ID:saydulk,项目名称:a2billing,代码行数:11,代码来源:paypal.php
示例9: process_button
function process_button()
{
global $order, $currencies, $currency;
$my_currency = MODULE_PAYMENT_PAYPAL_CURRENCY;
if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
$my_currency = 'USD';
}
$currencyObject = new currencies();
$process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('rm', '2') . tep_draw_hidden_field('no_shipping', '1') . tep_draw_hidden_field('PHPSESSID', session_id()) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencyObject->get_value($my_currency), $currencyObject->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link("checkout_process.php?sess_id=" . session_id(), '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link("checkout_payment.php", '', 'SSL'));
return $process_button_string;
}
开发者ID:sayemk,项目名称:a2billing,代码行数:11,代码来源:paypal.php
示例10: confirmation
function confirmation()
{
global $customer_id;
include DIR_WS_FUNCTIONS . 'encryption.php';
$stored_exists = tep_db_query("SELECT customers_personal FROM customers_personal WHERE customers_id = '" . (int) $customer_id . "' LIMIT 1");
$stored_num = tep_db_fetch_array($stored_exists);
$stored_num = tep_cc_decrypt($stored_num['customers_personal']);
$cc_array = explode('|', $stored_num);
$cust_name = tep_parse_name($cc_array[2]);
$confirmation = array('title' => 'Credit Card', 'fields' => array(array('title' => 'Using the credit card on file:', 'field' => substr($cc_array[1], 0, 4) . str_repeat('X', 8) . substr($cc_array[1], -4)), array('title' => '', 'field' => tep_draw_hidden_field('payment', MODULE_PAYMENT_STORED_CC_TRUE_MODULE) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_TYPE, $cc_array[0]) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_NUMBER, $cc_array[1]) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_FIRSTNAME, $cust_name[1]) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_LASTNAME, $cust_name[0]) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_EXPIRATION, $cc_array[3]) . tep_draw_hidden_field(MODULE_PAYMENT_STORED_CC_FIELD_CHECKCODE, $cc_array[4]))));
return $confirmation;
}
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:12,代码来源:stored_cc.php
示例11: process_button
function process_button()
{
global $order, $currencies, $currency;
$my_language = MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE;
$my_currency = MODULE_PAYMENT_MONEYBOOKERS_CURRENCY;
if (!in_array($my_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR'))) {
$my_currency = 'USD';
}
$currencyObject = new currencies();
$process_button_string = tep_draw_hidden_field('pay_to_email', MODULE_PAYMENT_MONEYBOOKERS_ID) . tep_draw_hidden_field('language', $my_language) . tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencyObject->get_value($my_currency), $currencyObject->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency', $my_currency) . tep_draw_hidden_field('detail1_description', STORE_NAME) . tep_draw_hidden_field('detail1_text', 'Order - ' . date('d. M Y - H:i')) . tep_draw_hidden_field('firstname', $order->billing['firstname']) . tep_draw_hidden_field('lastname', $order->billing['lastname']) . tep_draw_hidden_field('address', $order->billing['street_address']) . tep_draw_hidden_field('postal_code', $order->billing['postcode']) . tep_draw_hidden_field('city', $order->billing['city']) . tep_draw_hidden_field('country', $order->billing['country']['moneybookers']) . tep_draw_hidden_field('pay_from_email', $order->customer['email_address']) . tep_draw_hidden_field('status_url', tep_href_link("checkout_process.php?sess_id=" . session_id(), '', 'SSL')) . tep_draw_hidden_field('cancel_url', tep_href_link("checkout_payment.php", '', 'SSL'));
return $process_button_string;
}
开发者ID:sayemk,项目名称:a2billing,代码行数:12,代码来源:moneybookers.php
示例12: _process_button
function _process_button()
{
$icepay_country = $this->getUserCountry(MODULE_PAYMENT_ICEPAY_EBANKING_COUNTRY);
$icepay_currency = $this->getUserCurrency(MODULE_PAYMENT_ICEPAY_EBANKING_CURRENCY);
$icepay_language = $this->getUserLanguage(MODULE_PAYMENT_ICEPAY_EBANKING_LANGUAGE);
$amount = $this->getOrderAmount(MODULE_PAYMENT_ICEPAY_EBANKING_CURRENCY);
$process_button_string = tep_draw_hidden_field('ic_merchantid', MODULE_PAYMENT_ICEPAY_MERCHANT_ID) . tep_draw_hidden_field('ic_paymentmethod', 'DIRECTEBANK') . tep_draw_hidden_field('ic_orderid', $this->order_id) . tep_draw_hidden_field('ic_amount', $amount) . tep_draw_hidden_field('ic_currency', $icepay_currency) . tep_draw_hidden_field('ic_language', $icepay_language) . $this->create_eBanking_box();
if (!MODULE_PAYMENT_ICEPAY_EBANKING_COUNTRY == "USER") {
$process_button_string .= tep_draw_hidden_field('ic_country', $icepay_country);
}
$process_button_string .= tep_draw_hidden_field('ic_description', STORE_NAME) . tep_draw_hidden_field('type', "directebank");
return $process_button_string;
}
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:13,代码来源:icepay_ebanking.php
示例13: ajax_start
function ajax_start()
{
extract(tep_load('defs', 'sessions'));
$result = false;
if ($cDefs->action != 'direct_management_select') {
return $result;
}
$cStrings =& $this->strings;
$contents = '<div class="bounder"><div class="formArea"><div class="blockpad">' . $cStrings->TEXT_INFO_DIRECT_MANAGEMENT_POPUP . '</div>' . tep_draw_form('dm_confirm', $cDefs->script, 'action=direct_management', 'POST', 'target="_blank"') . tep_draw_hidden_field('dm_select', 'confirm') . '<div class="formButtons">' . tep_image_submit('button_confirm.gif', IMAGE_CONFIRM) . '</div></form></div></div>';
echo $contents;
$cSessions->close();
$result = true;
return $result;
}
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:14,代码来源:admin_direct_management.php
示例14: process_button
function process_button()
{
global $order, $currencies, $currency;
if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') {
$my_currency = $currency;
} else {
$my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5);
}
if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD'))) {
$my_currency = 'USD';
}
$process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
return $process_button_string;
}
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:14,代码来源:paypal.php
示例15: confirmation
function confirmation() {
global $order;
$confirmation = array('title' => $this->title,
'fields' => array(array('title' => 'Clique o botão "Pagar com Itau Shopline" ao lado e após ser exibido o boleto, confirme o Pedido clicando no botão abaixo.',
'field' => tep_draw_form('form', MODULE_PAYMENT_ITAU_SHOPLINE_URL, 'post', 'name="form" onsubmit=carregabrw() target="SHOPLINE"') .
tep_draw_hidden_field('valor', $order->info['total'], '') .
tep_draw_hidden_field('cliente', $order->customer['firstname'] . ' ' . $order->customer['lastname'], '') .
tep_draw_hidden_field('endereco', $order->customer['street_address'], '') .
tep_draw_hidden_field('bairro', $order->customer['suburb'], '') .
tep_draw_hidden_field('cidade', $order->customer['city'], '') .
tep_draw_hidden_field('estado', $order->customer['state'], '') .
tep_draw_hidden_field('cep', $order->customer['postcode'], '') .
tep_draw_input_field('Itau', 'Itaú Shopline', '', 'submit', true) .
'</form>')));
return $confirmation;
}
开发者ID:andrem,项目名称:itau-shopline-oscommerce-module,代码行数:16,代码来源:shopline.php
示例16: process_button
function process_button($transactionID = 0, $key = "")
{
global $order, $currencies, $currency;
$my_language = MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE;
$my_currency = strtoupper($GLOBALS['A2B']->config['global']['base_currency']);
if (!in_array($my_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR'))) {
$my_currency = 'USD';
}
$currencyObject = new currencies();
$amount_toprocess = number_format($order->info['total'], $currencyObject->get_decimal_places($my_currency));
$amount_toprocess = str_replace(',', '.', $amount_toprocess);
$process_button_string = tep_draw_hidden_field('pay_to_email', MODULE_PAYMENT_MONEYBOOKERS_ID) . tep_draw_hidden_field('language', $my_language) . tep_draw_hidden_field('amount', $amount_toprocess) . tep_draw_hidden_field('currency', $my_currency) . tep_draw_hidden_field('detail1_description', STORE_NAME) . tep_draw_hidden_field('detail1_text', 'Order - ' . date('d. M Y - H:i')) . tep_draw_hidden_field('firstname', $order->billing['firstname']) . tep_draw_hidden_field('lastname', $order->billing['lastname']) . tep_draw_hidden_field('address', $order->billing['street_address']) . tep_draw_hidden_field('postal_code', $order->billing['postcode']) . tep_draw_hidden_field('city', $order->billing['city']) . tep_draw_hidden_field('country', $order->billing['country']['moneybookers']) . tep_draw_hidden_field('pay_from_email', $order->customer['email_address']);
if ($transactionID != 0) {
$process_button_string .= tep_draw_hidden_field('transaction_id', $transactionID);
}
$process_button_string .= tep_draw_hidden_field('status_url', tep_href_link("checkout_process.php?sess_id=" . session_id() . "&transactionID=" . $transactionID . "&key=" . $key, '', 'SSL')) . tep_draw_hidden_field('return_url', tep_href_link("userinfo.php", '', 'SSL')) . tep_draw_hidden_field('cancel_url', tep_href_link("checkout_payment.php", '', 'SSL'));
return $process_button_string;
}
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:18,代码来源:moneybookers.php
示例17: 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 (tep_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 = tep_draw_form('pages', basename($PHP_SELF), '', 'get');
if ($current_page_number > 1) {
$display_links .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, tep_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="' . tep_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</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 .= tep_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= tep_draw_hidden_field(tep_session_name(), tep_session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:44,代码来源:split_page_results.php
示例18: process
function process()
{
global $order, $cart, $buysafe_result, $currencies, $WantsBond, $PHP_SELF;
if (is_array($buysafe_result) && $buysafe_result['IsBuySafeEnabled'] == 'true') {
$WantsBond = $buysafe_result['BondCostDisplayText'] != '' ? true : false;
if (strstr($PHP_SELF, FILENAME_CHECKOUT_CONFIRMATION)) {
$hidden_fields = '';
if (is_array($_POST) && sizeof($_POST) > 0) {
reset($_POST);
while (list($key, $value) = each($_POST)) {
if (strlen($value) > 0 && $key != tep_session_name() && $key != 'WantsBond' && $key != 'x' && $key != 'y') {
$hidden_fields .= tep_draw_hidden_field($key, stripslashes($value));
}
}
}
$regs = array();
preg_match_all("'<BondingSignal[^>]*?>.*?</BondingSignal>'", $_SESSION['nusoap_response'], $regs);
$rollover = end($regs[0]);
$rollover = strip_tags(substr($rollover, strpos($rollover, '>') + 1));
$rollover = html_entity_decode($rollover);
$output_title = tep_draw_form('buysafe_confirmation', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post') . tep_draw_hidden_field('WantsBond', $WantsBond ? $WantsBond : 'false') . $hidden_fields . '
<script src="' . MODULE_ADDONS_BUYSAFE_ROLLOVER_URL . '" type="text/javascript" language="javascript" charset="utf-8"></script>
<script language="JavaScript" type="text/javascript">
<!--
function buySAFEOnClick() {
if (document.buysafe_confirmation.WantsBond.value == \'false\') {
document.buysafe_confirmation.WantsBond.value = \'true\';
} else {
document.buysafe_confirmation.WantsBond.value = \'false\';
}
document.buysafe_confirmation.submit();
}
//-->
</script>' . $rollover . '</form>';
} else {
$output_title = $buysafe_result['CartLineDisplayText'];
}
$this->output[] = array('title' => $output_title, 'text' => $buysafe_result['BondCostDisplayText'], 'value' => $buysafe_result['BondCostDisplayText'] ? $buysafe_result['TotalBondCost'] : 0);
if ($buysafe_result['BondCostDisplayText'] && $buysafe_result['TotalBondCost']) {
$order->info['total'] += $buysafe_result['TotalBondCost'];
}
}
// end if (is_array($buysafe_result))
}
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:44,代码来源:ot_buysafe.php
示例19: process_button
function process_button()
{
global $order, $currencies, $currency;
if (MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE == 'Selected Language') {
$my_language = 'EN';
} else {
$my_language = MODULE_PAYMENT_MONEYBOOKERS_LANGUAGE;
}
if (MODULE_PAYMENT_MONEYBOOKERS_CURRENCY == 'Selected Currency') {
$my_currency = $currency;
} else {
$my_currency = substr(MODULE_PAYMENT_MONEYBOOKERS_CURRENCY, 5);
}
if (!in_array($my_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR'))) {
$my_currency = 'EUR';
}
$process_button_string = tep_draw_hidden_field('pay_to_email', MODULE_PAYMENT_MONEYBOOKERS_ID) . tep_draw_hidden_field('language', $my_language) . tep_draw_hidden_field('amount', number_format($order->info['total'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency', $my_currency) . tep_draw_hidden_field('detail1_description', STORE_NAME) . tep_draw_hidden_field('detail1_text', 'Order - ' . date('d. M Y - H:i')) . tep_draw_hidden_field('firstname', $order->billing['firstname']) . tep_draw_hidden_field('lastname', $order->billing['lastname']) . tep_draw_hidden_field('address', $order->billing['street_address']) . tep_draw_hidden_field('postal_code', $order->billing['postcode']) . tep_draw_hidden_field('city', $order->billing['city']) . tep_draw_hidden_field('country', $order->billing['country']['moneybookers']) . tep_draw_hidden_field('pay_from_email', $order->customer['email_address']) . tep_draw_hidden_field('return_url', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
return $process_button_string;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:19,代码来源:moneybookers.php
示例20: execute
function execute()
{
global $PHP_SELF, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate;
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if (is_string($value) && $key != 'currency' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
$data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CURRENCIES_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . ' ' . tep_draw_form('currencies', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . ' ' . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>' . ' </div>' . '</div>';
$oscTemplate->addBlock($data, $this->group);
}
}
}
开发者ID:Sibzsolutions,项目名称:Savostore,代码行数:22,代码来源:bm_currencies.php
注:本文中的tep_draw_hidden_field函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论