本文整理汇总了PHP中xtc_draw_hidden_field函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_draw_hidden_field函数的具体用法?PHP xtc_draw_hidden_field怎么用?PHP xtc_draw_hidden_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_draw_hidden_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: xtc_hide_session_id
function xtc_hide_session_id()
{
global $session_started;
if ($session_started == true && defined('SID') && xtc_not_null(SID)) {
return xtc_draw_hidden_field(xtc_session_name(), xtc_session_id());
}
}
示例2: _paymentDataFormProcess
function _paymentDataFormProcess($active_genre_identifier)
{
$payment_smarty = new Smarty();
$payment_smarty->template_dir = DIR_FS_EXTERNAL . 'payone/templates/';
$error = parent::get_error();
if ($error != '') {
$payment_smarty->assign('error', $error['error']);
}
$genre_config = $this->config[$active_genre_identifier];
$payment_smarty->assign('genre_specific', $genre_config['genre_specific']);
$standard_parameters = parent::_standard_parameters('creditcardcheck');
$standard_parameters['responsetype'] = 'REDIRECT';
$standard_parameters['storecarddata'] = 'yes';
$standard_parameters['encoding'] = 'UTF-8';
$standard_parameters['successurl'] = (ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . FILENAME_CHECKOUT_PROCESS . '?' . xtc_session_name() . '=' . xtc_session_id();
$standard_parameters['errorurl'] = (ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . FILENAME_CHECKOUT_CONFIRMATION . '?' . xtc_session_name() . '=' . xtc_session_id() . '&conditions=true&payment_error=' . $this->code;
$standard_parameters['hash'] = $this->payone->computeHash($standard_parameters, $this->global_config['key']);
// not in hash but needed as hidden field
$cctypes = $this->payone->getTypesForGenre($active_genre_identifier);
for ($i = 0, $n = count($cctypes); $i < $n; $i++) {
if ($cctypes[$i]['typekey'] == $_SESSION[$this->code]['cardtype']) {
$standard_parameters['cardtype'] = $cctypes[$i]['shorttype'];
break;
}
}
$ccexpires_years = array();
for ($y = 0, $base = date('y'); $y < 10; $y++) {
$ccexpires_years[] = $base + $y;
}
$payment_smarty->assign('ccexpires_years', $ccexpires_years);
$ccexpires_months = array();
for ($m = 1; $m <= 12; $m++) {
$ccexpires_months[] = sprintf('%02d', $m);
}
$payment_smarty->assign('ccexpires_months', $ccexpires_months);
$hidden = array();
foreach ($standard_parameters as $key => $value) {
$hidden[] = xtc_draw_hidden_field($key, $value);
}
$payment_smarty->assign('hidden', implode("\n", $hidden) . "\n");
$payment_smarty->assign('payonecss', DIR_WS_EXTERNAL . 'payone/css/payone.css');
$payment_smarty->caching = 0;
$module_form = $payment_smarty->fetch('checkout_payone_cc_form.html');
return $module_form;
}
示例3: get_html
function get_html()
{
global $PHP_SELF;
$config = $this->_payone->getConfig();
$this->set_content_data('notice', $config['credit_risk']['notice']['text']);
$this->set_content_data('confirmation', $config['credit_risk']['confirmation']['text']);
$this->set_content_data('timeofcheck', $config['credit_risk']['timeofcheck']);
$this->set_content_data('IMGBUTTON_CONFIRM', xtc_image_button('button_confirm.gif', IMAGE_BUTTON_CONFIRM));
$this->set_content_data('IMGBUTTON_CANCEL', xtc_image_button('small_delete.gif', IMAGE_BUTTON_CANCEL));
$hidden = xtc_draw_hidden_field('p1crcheck', 'true') . PHP_EOL;
foreach ($_POST as $key => $value) {
$hidden .= xtc_draw_hidden_field($key, $value) . PHP_EOL;
}
$this->set_content_data('form_action', xtc_draw_form('p1crconfirm', xtc_href_link(basename($PHP_SELF), '', 'SSL')) . $hidden);
$this->set_content_data('payonecss', DIR_WS_EXTERNAL . 'payone/css/payone.css');
$t_html_output = $this->_payone->build_html('checkout_payone_cr.html', $this->content);
return $t_html_output;
}
示例4: xtc_draw_form
?>
">
</form>
</div>
<?php
}
if ((in_array('captured', $status_array) || in_array('completed', $status_array)) && $admin_info_array['total'] > $amount_array['refund']) {
?>
<div class="pp_capture pp_box">
<div class="pp_boxheading"><?php
echo TEXT_PAYPAL_REFUND;
?>
</div>
<?php
echo xtc_draw_form('capture', FILENAME_ORDERS, xtc_get_all_get_params());
echo xtc_draw_hidden_field('cmd', 'refund');
echo '<div class="refund_row">';
echo '<div class="' . (10 - $count['refund'] > 0 ? 'info_message' : 'error_message') . '">' . TEXT_PAYPAL_REFUND_LEFT . ' ' . (10 - $count['refund']) . '</div>';
echo '<br/>';
echo '<label for="refund_comment" style="vertical-align: top; margin-top: 5px;">' . TEXT_PAYPAL_REFUND_COMMENT . '</label>';
echo xtc_draw_textarea_field('refund_comment', '', '60', '8', '', 'id="refund_comment"');
echo '<br/>';
echo '<label for="refund_price">' . TEXT_PAYPAL_REFUND_AMOUNT . '</label>';
echo xtc_draw_input_field('refund_price', '', 'id="refund_price" style="width: 135px"');
echo '</div>';
?>
<br />
<input type="submit" class="button" name="refund_submit" value="<?php
echo TEXT_PAYPAL_REFUND_SUBMIT;
?>
">
示例5: xtc_draw_form
<?php
echo xtc_draw_form('orders', FILENAME_ORDERS, '', 'get');
?>
<?php
echo HEADING_TITLE_SEARCH . ' ' . xtc_draw_input_field('oID', '', 'size="12"') . xtc_draw_hidden_field('action', 'edit') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id());
?>
</form>
</td>
</tr>
<tr>
<td class="main" valign="top">Customers</td>
<td class="main" valign="top" align="right"><?php
echo xtc_draw_form('status', FILENAME_ORDERS, '', 'get');
?>
<?php
echo HEADING_TITLE_STATUS . ' ' . xtc_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), array(array('id' => '0', 'text' => TEXT_VALIDATING)), $orders_statuses), '', 'onChange="this.form.submit();"') . xtc_draw_hidden_field(xtc_session_name(), xtc_session_id());
?>
</form></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
示例6: process_button
function process_button()
{
global $order;
$payment_type = $this->title;
$process_button_string = xtc_draw_hidden_field('paymentType', $payment_type);
if (MODULE_PAYMENT_BILLSAFE_2HP_LAYER == 'true') {
if (MODULE_PAYMENT_BILLSAFE_2HP_SERVER == 'Live') {
$lisb = 'false';
} else {
$lisb = 'true';
}
$process_button_string .= '<script type="text/javascript" src="https://content.billsafe.de/lpg/js/client.js"></script>
<script type="text/javascript"><!--
var formElement = document.getElementById(\'checkout_confirmation\');
var lpg = new BillSAFE.LPG.client({form: formElement, conditions: {installment: [{element: \'paymentType\', value: \'' . $payment_type . '\'}]}, sandbox: ' . $lisb . '});
//--></script>';
}
return $process_button_string;
}
示例7: process_button
function process_button()
{
global $_POST;
$process_button_string = xtc_draw_hidden_field('banktransfer_blz', $this->iban_mode ? $this->banktransfer_bic : $this->banktransfer_blz) . xtc_draw_hidden_field('banktransfer_bankname', $this->banktransfer_bankname) . xtc_draw_hidden_field('banktransfer_number', $this->iban_mode ? $this->banktransfer_iban : $this->banktransfer_number) . xtc_draw_hidden_field('banktransfer_owner', $this->banktransfer_owner) . xtc_draw_hidden_field('banktransfer_owner_email', $this->banktransfer_owner_email) . xtc_draw_hidden_field('banktransfer_status', $this->banktransfer_status) . xtc_draw_hidden_field('banktransfer_prz', $this->banktransfer_prz) . (isset($_POST['banktransfer_fax']) ? xtc_draw_hidden_field('banktransfer_fax', $this->banktransfer_fax) : '');
return $process_button_string;
}
示例8: payment
// load the selected payment module
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') {
示例9: showSpecialsBox
function showSpecialsBox()
{
global $pInfo;
//web28 - 2010-07-27 - show products_price
// include localized categories specials strings
require_once DIR_FS_LANGUAGES . $_SESSION['language'] . '/admin/categories_specials.php';
//BOF web28 - 2010-07-27 - show products_price
if (PRICE_IS_BRUTTO == 'true') {
$products_price_sp = xtc_round($pInfo->products_price * ((100 + xtc_get_tax_rate($pInfo->products_tax_class_id)) / 100), PRICE_PRECISION);
$products_price_netto_sp = TEXT_NETTO . '<strong>' . $pInfo->products_price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100 . '</strong> ';
} else {
$products_price_sp = xtc_round($pInfo->products_price, PRICE_PRECISION);
$products_price_netto_sp = '';
}
//EOF web28 - 2010-07-27 - show products_price
// if editing an existing product
if (isset($_GET['pID'])) {
$specials_query = "SELECT p.products_tax_class_id,\n p.products_id,\n p.products_price,\n pd.products_name,\n s.specials_id,\n s.specials_quantity,\n s.specials_new_products_price,\n s.specials_date_added,\n s.specials_last_modified,\n s.expires_date,\n s.status\n FROM " . TABLE_PRODUCTS . " p,\n " . TABLE_PRODUCTS_DESCRIPTION . " pd,\n " . TABLE_SPECIALS . " s\n WHERE p.products_id = pd.products_id\n AND pd.language_id = '" . (int) $_SESSION['languages_id'] . "'\n AND p.products_id = s.products_id\n AND s.products_id = '" . (int) $_GET['pID'] . "'";
//DokuMan - 2011-11-8 - added missing s.status from SP1b
$specials_query = xtDBquery($specials_query);
// if there exists already a special for this product
if (xtc_db_num_rows($specials_query, true) > 0) {
$special = xtc_db_fetch_array($specials_query, true);
$sInfo = new objectInfo($special);
}
}
$price = $sInfo->products_price;
$new_price = $sInfo->specials_new_products_price;
$new_price_netto = '';
//web28 - 2010-07-27 - show special_price netto
if (PRICE_IS_BRUTTO == 'true') {
$price_netto = xtc_round($price, PRICE_PRECISION);
if ($price > 0) {
$new_price_netto = TEXT_NETTO . '<strong>' . xtc_round($new_price, PRICE_PRECISION) . '</strong>';
//web28 - 2010-07-27 - show special_price netto
}
$price = $price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100;
$new_price = $new_price * (xtc_get_tax_rate($sInfo->products_tax_class_id) + 100) / 100;
}
$price = xtc_round($price, PRICE_PRECISION);
$new_price = xtc_round($new_price, PRICE_PRECISION);
// build the expires date in the format YYYY-MM-DD
if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0 and $sInfo->expires_date != 0) {
$expires_date = substr($sInfo->expires_date, 0, 4) . "-" . substr($sInfo->expires_date, 5, 2) . "-" . substr($sInfo->expires_date, 8, 2);
} else {
$expires_date = "";
}
if ($sInfo->status == 1) {
$status = 'checked="checked"';
} else {
$status = '';
}
// tell the storing script if to update existing special,
// or to insert a new one
echo xtc_draw_hidden_field('specials_action', isset($_GET['pID']) && xtc_db_num_rows($specials_query, true) > 0 ? "update" : "insert");
echo xtc_draw_hidden_field('tax_rate', xtc_get_tax_rate($pInfo->products_tax_class_id));
//web28 - 2010-07-27 - add hidden field
echo xtc_draw_hidden_field('products_price_hidden', $pInfo->products_price);
//web28 - 2010-07-27 - FIX wrong specials price
if (isset($_GET['pID']) and xtc_db_num_rows($specials_query, true) > 0) {
echo xtc_draw_hidden_field('specials_id', $sInfo->specials_id);
}
?>
<script type="text/javascript">
var specialExpires = new ctlSpiffyCalendarBox("specialExpires", "new_product", "specials_expires","btnDate2","<?php
echo $expires_date;
?>
",2);
</script>
<script language="JavaScript" type="text/JavaScript">
function showSpecial() {
//alert(document.getElementById("special").style.display);
if (document.getElementById("special").style.display =="none" || document.getElementById("special").style.display =="") {
document.getElementById("special").style.display="block";
document.getElementById('butSpecial').innerHTML= '<a href="JavaScript:showSpecial()" class="btn btn-default">« Sonderangebot</a>';
} else {
document.getElementById("special").style.display="none";
document.getElementById('butSpecial').innerHTML= '<a href="JavaScript:showSpecial()" class="btn btn-default">Sonderangebot »</a>';
}
}
</script>
<style type='text/css'>#special{display: none;}</style>
<noscript>
<style type="text/css">#special{display: block;}</style>
</noscript>
<div id="special">
<div style="padding: 8px 0px 3px 5px;">
<div class="main">
<strong><?php
echo SPECIALS_TITLE;
?>
</strong>
</div>
</div>
<div class='col-xs-12' style="width: 100%; border: 1px solid; border-color: #aaaaaa; padding:5px; background-color: #f3f3f3;">
<?php
if (!isset($_GET['pID'])) {
?>
<div class="col-xs-12 col-sm-9 col-md-5 col-lg-5">
//.........这里部分代码省略.........
示例10: xtc_db_query
if ($_SESSION['customers_status']['customers_status_id'] != 0) {
xtc_db_query("-- product_info.php\n UPDATE " . TABLE_PRODUCTS_DESCRIPTION . "\n SET products_viewed = products_viewed+1\n WHERE products_id = '" . $product->data['products_id'] . "'\n AND language_id = " . $_SESSION['languages_id']);
}
// 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
示例11: xtc_db_query
xtc_db_query("UPDATE " . TABLE_CUSTOMERS_INFO . " SET customers_info_date_account_last_modified = now() WHERE customers_info_id = '" . (int) $_SESSION['customer_id'] . "'");
$messageStack->add_session('account', SUCCESS_PASSWORD_UPDATED, 'success');
xtc_redirect(xtc_href_link(FILENAME_ACCOUNT, '', 'SSL'));
} else {
$error = true;
$messageStack->add('account_password', ERROR_CURRENT_PASSWORD_NOT_MATCHING);
}
}
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_PASSWORD, xtc_href_link(FILENAME_ACCOUNT, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_PASSWORD, xtc_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'));
require DIR_WS_INCLUDES . 'header.php';
if ($messageStack->size('account_password') > 0) {
$smarty->assign('error', $messageStack->output('account_password'));
}
$smarty->assign('FORM_ACTION', xtc_draw_form('account_password', xtc_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'), 'post', 'onsubmit="return check_form(account_password);"') . xtc_draw_hidden_field('action', 'process'));
$smarty->assign('INPUT_ACTUAL', xtc_draw_password_fieldNote(array('name' => 'password_current', 'text' => ' ' . (xtc_not_null(ENTRY_PASSWORD_CURRENT_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CURRENT_TEXT . '</span>' : ''))));
$smarty->assign('INPUT_NEW', xtc_draw_password_fieldNote(array('name' => 'password_new', 'text' => ' ' . (xtc_not_null(ENTRY_PASSWORD_NEW_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_NEW_TEXT . '</span>' : ''))));
$smarty->assign('INPUT_CONFIRM', xtc_draw_password_fieldNote(array('name' => 'password_confirmation', 'text' => ' ' . (xtc_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>' : ''))));
$smarty->assign('BUTTON_BACK', '<a href="' . xtc_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
$smarty->assign('BUTTON_SUBMIT', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$smarty->assign('FORM_END', '</form>');
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/account_password.html');
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined('RM')) {
$smarty->load_filter('output', 'note');
}
示例12: xtc_href_link
</div>
</div>
<?php
if (!isset($_GET['action'])) {
echo '<div class="pageHeading flt-l" style="margin: 3px 40px;"><a class="button" href="' . xtc_href_link(basename($PHP_SELF), 'action=new') . '">' . BUTTON_INSERT . '</a></div>';
}
include_once DIR_FS_EXTERNAL . 'paypal/modules/admin_menu.php';
?>
<div class="clear div_box mrg5" style="margin-top:-1px;">
<table class="clear tableConfig">
<?php
if (isset($_GET['action']) && $_GET['action'] == 'edit') {
$list = $paypal->get_profile($_GET['id']);
echo xtc_draw_form('config', basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=update');
for ($i = 0, $n = count($list); $i < $n; $i++) {
echo xtc_draw_hidden_field('config[id]', $list[$i]['id']);
?>
<tr>
<td class="dataTableConfig col-left"><?php
echo TEXT_PAYPAL_PROFILE_STATUS;
?>
</td>
<td class="dataTableConfig col-middle"><?php
echo draw_on_off_selection('config[status]', $status_array, $list[$i]['status']);
?>
</td>
<td class="dataTableConfig col-right"><?php
echo TEXT_PAYPAL_PROFILE_STATUS_INFO;
?>
</td>
</tr>
示例13: array
echo '<a class="btn btn-default" href="javascript:SwitchCheck()" onclick="this.blur()">' . BUTTON_REVERSE_SELECTION . '</a> ';
echo '<a class="btn btn-default" href="javascript:SwitchProducts()" onclick="this.blur()">' . BUTTON_SWITCH_PRODUCTS . '</a> ';
echo '<a class="btn btn-default" href="javascript:SwitchCategories()" onclick="this.blur()">' . BUTTON_SWITCH_CATEGORIES . '</a> ';
?>
</div>
</div>
<!-- categories & products column ENDS -->
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'copy_to':
//close multi-action form, not needed here
$heading[] = array('text' => '</form><b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
$contents = array('form' => xtc_draw_form('copy_to', FILENAME_CATEGORIES, 'action=copy_to_confirm&cPath=' . $cPath) . xtc_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => TEXT_INFO_COPY_TO_INTRO);
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENT_CATEGORIES . '<br /><b>' . xtc_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
if (QUICKLINK_ACTIVATED == 'true') {
$contents[] = array('text' => '<hr noshade>');
$contents[] = array('text' => '<b>' . TEXT_MULTICOPY . '</b><br />' . TEXT_MULTICOPY_DESC);
$cat_tree = xtc_get_category_tree('0', '', '0');
$tree = '';
for ($i = 0; $n = sizeof($cat_tree), $i < $n; $i++) {
$tree .= '<input type="checkbox" name="cat_ids[]" value="' . $cat_tree[$i]['id'] . '"><font size="1">' . $cat_tree[$i]['text'] . '</font><br />';
}
$contents[] = array('text' => $tree . '<br /><hr noshade>');
$contents[] = array('text' => '<b>' . TEXT_SINGLECOPY . '</b><br />' . TEXT_SINGLECOPY_DESC);
}
$contents[] = array('text' => '<br />' . TEXT_CATEGORIES . '<br />' . xtc_draw_pull_down_menu('categories_id', xtc_get_category_tree('0', '', '0'), $current_category_id));
$contents[] = array('text' => '<br />' . TEXT_HOW_TO_COPY . '<br />' . xtc_draw_radio_field('copy_as', 'link', true) . ' ' . TEXT_COPY_AS_LINK . '<br />' . xtc_draw_radio_field('copy_as', 'duplicate') . ' ' . TEXT_COPY_AS_DUPLICATE);
示例14: array
$groups_array = array();
$groups_query = xtc_db_query("select distinct affiliate_banners_group from " . TABLE_AFFILIATE_BANNERS . " order by affiliate_banners_group");
while ($groups = xtc_db_fetch_array($groups_query)) {
$groups_array[] = array('id' => $groups['affiliate_banners_group'], 'text' => $groups['affiliate_banners_group']);
}
?>
<tr>
<td><?php
echo xtc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr><?php
echo xtc_draw_form('new_banner', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"');
if ($form_action == 'update') {
echo xtc_draw_hidden_field('affiliate_banners_id', $abID);
}
?>
<td><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php
echo TEXT_BANNERS_TITLE;
?>
</td>
<td class="main"><?php
echo xtc_draw_input_field('affiliate_banners_title', $abInfo->affiliate_banners_title, '', true);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
示例15: xtc_draw_form
<tr>
<td class="dataTableHeadingContent" width="10%" align="left"> </td>
<td class="dataTableHeadingContent" width="30%" align="left"> </td>
<td class="dataTableHeadingContent" width="30%" align="left"> </td>
<td class="dataTableHeadingContent" width="30%" align="left"> </td>
</tr>
</table>
</div>
</form>
<br />
<br />
<?php
echo xtc_draw_form('adress_edit', FILENAME_ORDERS_EDIT, 'action=address_edit', 'post');
echo xtc_draw_hidden_field('oID', $_GET['oID']);
echo xtc_draw_hidden_field('cID', $order->customer['ID']);
?>
<div class='col-xs-12 hidden-lg hidden-md'>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" width="10%" align="left"> </td>
<td class="dataTableHeadingContent" width="30%" align="left"><?php
echo TEXT_INVOICE_ADDRESS;
?>
</td>
</tr>
<tr class="dataTableRow">
<td class="dataTableContent" align="left">
<?php
echo TEXT_COMPANY;
?>