本文整理汇总了PHP中tep_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_draw_hidden_field函数的具体用法?PHP tep_draw_hidden_field怎么用?PHP tep_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_draw_hidden_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
}
示例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;
}
示例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);
}
}
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}