本文整理汇总了PHP中xtc_get_all_get_params函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_get_all_get_params函数的具体用法?PHP xtc_get_all_get_params怎么用?PHP xtc_get_all_get_params使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_get_all_get_params函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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
示例2: 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
示例3: getBuyNowButton
/**
* getBuyNowButton
*
* @param integer $id
* @param string $name
* @return string
*/
function getBuyNowButton($id, $name)
{
global $PHP_SELF;
return '<a href="' . xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id=' . $id . '&' . xtc_get_all_get_params(array('action')), 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $name . TEXT_NOW) . '</a>';
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:12,代码来源:product.php
示例4: xtc_db_query
if ($affiliate_payment_split->number_of_rows > 0) {
$affiliate_payment_values = xtc_db_query($affiliate_payment_split->sql_query);
$number_of_payment = 0;
while ($affiliate_payment = xtc_db_fetch_array($affiliate_payment_values)) {
$number_of_payment++;
if ($number_of_payment / 2 == floor($number_of_payment / 2)) {
$affiliate_payment_table .= '<tr class="productListing-even">';
} else {
$affiliate_payment_table .= '<tr class="productListing-odd">';
}
$affiliate_payment_table .= '<td class="smallText" align="right">' . $affiliate_payment['affiliate_payment_id'] . '</td>';
$affiliate_payment_table .= '<td class="smallText" align="center">' . xtc_date_short($affiliate_payment['affiliate_payment_date']) . '</td>';
$affiliate_payment_table .= '<td class="smallText" align="right">' . $xtPrice->xtcFormat($affiliate_payment['affiliate_payment_total'], true) . '</td>';
$affiliate_payment_table .= '<td class="smallText" align="right">' . $affiliate_payment['affiliate_payment_status_name'] . '</td>';
}
$smarty->assign('affiliate_payment_table', $affiliate_payment_table);
}
if ($affiliate_payment_split->number_of_rows > 0) {
$smarty->assign('affiliate_payment_split_count', $affiliate_payment_split->display_count(TEXT_DISPLAY_NUMBER_OF_PAYMENTS));
$smarty->assign('affiliate_payment_split_link', $affiliate_payment_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array('page', 'info', 'x', 'y'))));
}
$affiliate_payment_values = xtc_db_query("select sum(affiliate_payment_total) as total from " . TABLE_AFFILIATE_PAYMENT . " where affiliate_id = '" . $_SESSION['affiliate_id'] . "'");
$affiliate_payment = xtc_db_fetch_array($affiliate_payment_values);
$smarty->assign('affiliate_payment_total', $xtPrice->xtcFormat($affiliate_payment['total'], true));
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/affiliate_payment.html');
$smarty->assign('main_content', $main_content);
$smarty->assign('language', $_SESSION['language']);
$smarty->caching = 0;
$smarty->display(CURRENT_TEMPLATE . '/index.html');
开发者ID:BackupTheBerlios,项目名称:xtc-affiliate,代码行数:31,代码来源:affiliate_payment.php
示例5: xtc_get_all_get_params
if ($specials_split->number_of_rows > 0) {
//BOF - Dokuman - 2009-06-05 - replace table with div
/*
$smarty->assign('NAVBAR', '
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText">'.$specials_split->display_count(TEXT_DISPLAY_NUMBER_OF_SPECIALS).'</td>
<td align="right" class="smallText">'.TEXT_RESULT_PAGE.' '.$specials_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array ('page', 'info', 'x', 'y'))).'</td>
</tr>
</table>
');
*/
$smarty->assign('NAVBAR', '
<div style="width:100%;font-size:smaller">
<div style="float:left">' . $specials_split->display_count(TEXT_DISPLAY_NUMBER_OF_SPECIALS) . '</div>
<div style="float:right">' . TEXT_RESULT_PAGE . ' ' . $specials_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array('page', 'info', 'x', 'y'))) . '</div>
<br style="clear:both" />
</div>
');
//EOF - Dokuman - 2009-06-05 - replace table with div
}
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('module_content', $module_content);
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/specials.html');
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined('RM')) {
$smarty->load_filter('output', 'note');
}
$smarty->display(CURRENT_TEMPLATE . '/index.html');
include 'includes/application_bottom.php';
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:specials.php
示例6: Copyright
http://www.xt-commerce.com
Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(add_a_quickie.php,v 1.10 2001/12/19); www.oscommerce.com
Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contribution:
Add A Quickie v1.0 Autor Harald Ponce de Leon
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
// reset var
$box_smarty = new smarty();
$box_content = '';
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
// BOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL
$box_smarty->assign('FORM_ACTION', '<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=add_a_quickie', $request_type) . '">');
//$box_smarty->assign('FORM_ACTION','<form id="quick_add" method="post" action="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array ('action')) . 'action=add_a_quickie', 'NONSSL') . '">');
// EOF - GTB - 2010-09-20 - correct the Formular in dependences of the request type SSL / NONSSL
$box_smarty->assign('INPUT_FIELD', xtc_draw_input_field('quickie', '', 'style="width:170px"'));
$box_smarty->assign('SUBMIT_BUTTON', xtc_image_submit('button_add_quick.gif', BOX_HEADING_ADD_PRODUCT_ID));
$box_smarty->assign('FORM_END', '</form>');
$box_smarty->assign('BOX_CONTENT', $box_content);
$box_smarty->assign('language', $_SESSION['language']);
$box_smarty->caching = 0;
$box_add_a_quickie = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_add_a_quickie.html');
$smarty->assign('box_ADD_QUICKIE', $box_add_a_quickie);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:add_a_quickie.php
示例7: elseif
echo $showMessage;
} elseif ($messageBox == 'ERROR') {
$showMessage = showMessageError($message);
echo $showMessage;
}
?>
</div>
<div class="pageHeading col-xs-12 col-sm-6">
<p class="h2">
<?php
echo MODULE_PAYMENT_BILLSAFE_2_DETAILS;
?>
</p>
</div>
<div class="pageHeading text-right col-xs-12 col-sm-6"><?php
echo '<a class="btn btn-default" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('action'))) . '">' . BUTTON_BACK . '</a>';
?>
</div>
<div class="col-xs-12"><img width="100%" height="1" border="0" alt="" src="images/pixel_black.gif"></div>
<div class="col-xs-12 col-sm-4">
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr>
<td class="main" valign="top"><strong><?php
echo MODULE_PAYMENT_BILLSAFE_2_BADDRESS;
?>
</strong></td>
</tr><tr>
<td class="main"><?php
$customer = xtc_db_fetch_array(xtc_db_query('SELECT * FROM billsafe_orders_user_2 WHERE bsorders_id ="' . xtc_db_input($billsafe_orders['id']) . '"'));
$country_query = xtc_db_query('SELECT countries_name FROM countries WHERE countries_iso_code_2 = "' . xtc_db_input($customer['country']) . '"');
$country = xtc_db_fetch_array($country_query);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:billsafe_orders_2.php
示例8: array
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
$contents = array('form' => xtc_draw_form('orders', FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('text' => '<br />' . xtc_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
$contents[] = array('align' => 'center', 'text' => '<br /><input type="submit" class="button" value="' . BUTTON_DELETE . '"><a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . BUTTON_CANCEL . '</a>');
break;
default:
if (is_object($oInfo)) {
$heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . xtc_datetime_short($oInfo->date_purchased) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . BUTTON_EDIT . '</a> <a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . BUTTON_DELETE . '</a>');
if (AFTERBUY_ACTIVATED == 'true') {
$contents[] = array('align' => 'center', 'text' => '<a class="button" href="' . xtc_href_link(FILENAME_ORDERS, xtc_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=afterbuy_send') . '">' . BUTTON_AFTERBUY_SEND . '</a>');
}
// RATEPAY START
include 'includes/ratepay_order_buttons.php';
// RATEPAY END
//$contents[] = array('align' => 'center', 'text' => '');
$contents[] = array('text' => '<br />' . TEXT_DATE_ORDER_CREATED . ' ' . xtc_date_short($oInfo->date_purchased));
if (xtc_not_null($oInfo->last_modified)) {
$contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . xtc_date_short($oInfo->last_modified));
}
$contents[] = array('text' => '<br />' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
// elari added to display product list for selected order
$order = new order($oInfo->orders_id);
// BOF - Tomcraft - 2010-04-22 - Added a missing language definition
//$contents[] = array ('text' => '<br /><br />'.sizeof($order->products).' Products ');
$contents[] = array('text' => '<br /><br />' . sizeof($order->products) . ' ' . TEXT_PRODUCTS);
开发者ID:ratepay,项目名称:xtcommerce-module,代码行数:31,代码来源:orders.php
示例9: xtc_href_link
if (file_exists($pdffile)) {
$pdflink = xtc_href_link(FILENAME_PDFBILL_DISPLAY, 'oID=' . $_GET['order_id']);
$pdflink = sprintf('<a href="%s">' . PDFBILL_DOWNLOAD_INVOICE . '</a>', $pdflink);
$smarty->assign('IPDFBILL_INVOICE_DOWNLOAD', $pdflink);
}
// --- eof -- ipdfbill --------
// Stuff
$smarty->assign('ORDER_NUMBER', $order->info['order_id']);
//DokuMan - 2011-08-31 - fix order_id assignment
$smarty->assign('ORDER_DATE', xtc_date_long($order->info['date_purchased']));
$smarty->assign('ORDER_STATUS', $order->info['orders_status']);
$smarty->assign('BILLING_LABEL', xtc_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'));
$smarty->assign('PRODUCTS_EDIT', xtc_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));
// web28 - 2011-04-14 - change SSL -> NONSSL
$smarty->assign('SHIPPING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
$smarty->assign('BILLING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$smarty->assign('BUTTON_PRINT', '<a style="cursor:pointer" onclick="javascript:window.open(\'' . xtc_href_link(FILENAME_PRINT_ORDER, 'oID=' . $order->info['order_id']) . '\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, width=640, height=600\')">' . xtc_image_button('button_print.gif', TEXT_PRINT) . '</a>');
$from_history = preg_match("/page=/i", xtc_get_all_get_params());
// referer from account_history yes/no
$back_to = $from_history ? FILENAME_ACCOUNT_HISTORY : FILENAME_ACCOUNT;
// if from account_history => return to account_history
$smarty->assign('BUTTON_BACK', '<a href="' . xtc_href_link($back_to, xtc_get_all_get_params(array('order_id')), 'SSL') . '">' . xtc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>');
$smarty->assign('language', $_SESSION['language']);
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/account_history_info.html');
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined('RM')) {
$smarty->load_filter('output', 'note');
}
$smarty->display(CURRENT_TEMPLATE . '/index.html');
include 'includes/application_bottom.php';
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:account_history_info.php
示例10: while
while ($specials = xtc_db_fetch_array($specials_query)) {
$specials_array[] = $specials['products_id'];
}
}
?>
<!-- BOF - Tomcraft - 2009-11-06 - SPIFFY CAL 2.1 //-->
<script type="text/javascript">
var specialExpires = new ctlSpiffyCalendarBox("specialExpires", "new_special", "specials_expires","btnDate1","<?php
echo $expires_date;
?>
",2);
</script>
<!-- EOF - Tomcraft - 2009-11-06 - SPIFFY CAL 2.1 //-->
<div class='col-xs-12'>
<form name="new_special" <?php
echo 'action="' . xtc_href_link(FILENAME_SPECIALS, xtc_get_all_get_params(array('action', 'info', 'sID')) . 'action=' . $form_action, 'NONSSL') . '"';
?>
method="post"><?php
if ($form_action == 'update') {
echo xtc_draw_hidden_field('specials_id', $_GET['sID']);
}
?>
<div class="col-xs-12">
<div class="main col-xs-12 col-sm-1"><?php
echo TEXT_SPECIALS_PRODUCT;
echo $sInfo->products_name ? "" : '';
?>
</div>
<?php
$price = $sInfo->products_price;
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:specials.php
示例11: xtc_get_all_get_params
</td>
<td class="dataTableContent">
<?php
echo '<input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_INSERT . '"/>';
?>
</td>
</form>
</tr>
<?php
}
?>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_PRODUCTS_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS);
?>
</td>
<td class="smallText" align="right"><?php
echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_PRODUCTS_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'], xtc_get_all_get_params(array('page')));
?>
</td>
</tr>
</table>
<?php
}
?>
</div>
<!-- Artikel Einfügen Ende //-->
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:orders_edit_products.php
示例12: language
if (!isset($lng) || !is_object($lng)) {
//EOF - 2010-02-28 - Fix Undefined variable: lng
include DIR_WS_CLASSES . 'language.php';
$lng = new language();
}
$languages_string = '';
$count_lng = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
$count_lng++;
//BOF - Dokuman - 2010-01-29 - code optimization
//$languages_string .= ' <a href="' . xtc_href_link(basename($PHP_SELF), 'language=' . $key.'&'.xtc_get_all_get_params(array('language', 'currency')), $request_type) . '">' . xtc_image('lang/' . $value['directory'] .'/' . $value['image'], $value['name']) . '</a> ';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
$languages_string .= ' <a href="' . xtc_href_link(basename($PHP_SELF), 'language=' . $key . '&' . xtc_get_all_get_params(array('language', 'currency')), $request_type) . '">' . xtc_image('lang/' . $value['directory'] . '/' . $value['image'], $value['name']) . '</a> ';
} else {
$languages_string .= ' <a href="' . xtc_href_link(basename($PHP_SELF), 'language=' . $key . '&' . xtc_get_all_get_params(array('language', 'currency')), $request_type) . '">' . xtc_image('lang/' . $value['directory'] . '/' . $value['image'], $value['name']) . '</a> ';
}
//EOF - Dokuman - 2010-01-29 - code optimization
}
// dont show box if there's only 1 language
if ($count_lng > 1) {
$box_smarty = new smarty();
$box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$box_content = '';
$box_smarty->assign('BOX_CONTENT', $languages_string);
$box_smarty->assign('language', $_SESSION['language']);
// set cache ID
$box_smarty->caching = 0;
$box_languages = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_languages.html');
$smarty->assign('box_LANGUAGES', $box_languages);
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:languages.php
示例13: foreach
echo DATETIME;
?>
</td>
<td class="dataTableHeadingContent"><?php
echo CUSTOMER;
?>
</td>
</tr>
<?php
foreach ($logs as $log) {
?>
<tr <?php
echo $log['event_id'] == $event_id ? 'class="dataTableRowSelected"' : 'class="dataTableRow"';
?>
onmouseover="this.style.cursor='pointer'" onclick="document.location.href='<?php
echo xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('event_id')) . 'event_id=' . $log['event_id']);
?>
'">
<td class="dataTableContent"><?php
echo $log['event_id'];
?>
</td>
<td class="dataTableContent"><?php
echo $log['date_created'];
?>
</td>
<td class="dataTableContent"><?php
echo $log['customers_name'];
?>
</td>
</tr>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:payone_logs.php
示例14: elseif
if ($_POST['copy_as'] == 'link') {
$catfunc->link_product($product_id, $dest_category_id);
} elseif ($_POST['copy_as'] == 'duplicate') {
$catfunc->duplicate_product($product_id, $dest_category_id);
} else {
$messageStack->add_session('Copy type not specified.', 'error');
}
}
}
}
$action = is_array($_POST['multi_products']) && isset($_POST['link_to_product']) ? '&action=new_product' : '';
$pID = is_array($_POST['multi_products']) && isset($_POST['multi_products']) ? '&pID=' . end($_POST['multi_products']) : '';
xtc_redirect(xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $dest_category_id . $pID . $action . '&' . xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID'))));
}
// --- MULTI COPY ENDS ---
xtc_redirect(xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&' . xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID'))));
break;
#EOB multi_action_confirm
}
//EOB switch action
}
//EOB if action
// check if the catalog image directory exists
if (is_dir(DIR_FS_CATALOG_IMAGES)) {
if (!is_writeable(DIR_FS_CATALOG_IMAGES)) {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error');
}
} else {
$messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error');
}
// end of pre-checks and actions, HTML output follows
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:categories.php
示例15: before_process
function before_process()
{
if (isset($_SESSION['payment']) && $_SESSION['payment'] == $this->code) {
if (isset($_SESSION['paypal']['paymentId'])) {
if ($_POST['comments_added'] != '') {
$_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);
}
$error_mess = '';
if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true' && $_POST['conditions'] != 'conditions') {
$error_mess = '1';
}
if ($_POST['check_address'] != 'address') {
$error_mess .= '2';
}
if (!isset($_SESSION['shipping']) || $_SESSION['shipping'] !== false && !is_array($_SESSION['shipping'])) {
$error_mess .= '3';
}
if ($error_mess != '') {
xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_CONFIRMATION, xtc_get_all_get_params(array('conditions_message')) . 'conditions=true&conditions_message=' . $error_mess, 'SSL', true, false));
}
}
}
}
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:23,代码来源:paypalcart.php
示例16: xtc_redirect
xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
}
}
}
xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params(array('action', 'BUYproducts_id'))));
break;
case 'cust_order':
if (isset($_SESSION['customer_id']) && isset($_GET['pid'])) {
$_GET['pid'] = (int) $_GET['pid'];
if (xtc_has_product_attributes($_GET['pid'])) {
xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $_GET['pid']));
} else {
$_SESSION['cart']->add_cart($_GET['pid'], $_SESSION['cart']->get_quantity($_GET['pid']) + 1);
}
}
xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'NONSSL'));
break;
// BOF - Tomcraft - 2011-02-01 - Paypal Express Modul
// BOF - Tomcraft - 2011-02-01 - Paypal Express Modul
case 'paypal_express_checkout':
if (defined('MODULE_PAYMENT_PAYPALEXPRESS_STATUS') && MODULE_PAYMENT_PAYPALEXPRESS_STATUS == 'True') {
if (!is_object($product)) {
require_once DIR_WS_CLASSES . 'product.php';
$product = new product();
}
$o_paypal->paypal_express_auth_call();
xtc_redirect($o_paypal->payPalURL);
}
break;
// EOF - Tomcraft - 2011-02-01 - Paypal Express Modul
## Paypal
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:cart_actions.php
示例17: array
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PAYMENT . '</b>');
$contents = array('form' => xtc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br>');
$contents[] = array('align' => 'center', 'text' => '<br>' . xtc_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . xtc_href_link(AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . xtc_datetime_short($pInfo->affiliate_payment_date) . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . xtc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . xtc_href_link(FILENAME_AFFILIATE_PAYMENT, xtc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . xtc_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . xtc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . xtc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
}
break;
}
if (xtc_not_null($heading) && xtc_not_null($contents)) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
<?php
开发者ID:BackupTheBerlios,项目名称:xtc-affiliate,代码行数:31,代码来源:affiliate_payment.php
示例18: date
$_SESSION['customer_last_name'] = $check_customer['customers_lastname'];
$_SESSION['customer_id'] = $check_customer['customers_id'];
$_SESSION['customer_vat_id'] = $check_customer['customers_vat_id'];
$_SESSION['customer_default_address_id'] = $check_customer['customers_default_address_id'];
$_SESSION['customer_country_id'] = $check_country['entry_country_id'];
$_SESSION['customer_zone_id'] = $check_country['entry_zone_id'];
$date_now = date('Ymd');
xtc_db_query("update " . TABLE_CUSTOMERS_INFO . " SET customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 WHERE customers_info_id = '" . (int) $_SESSION['customer_id'] . "'");
xtc_write_user_info((int) $_SESSION['customer_id']);
// restore cart contents
$_SESSION['cart']->restore_contents();
if (is_object($econda)) {
$econda->_loginUser();
}
if (isset($_SESSION['REFERER']) && !empty($_SESSION['REFERER'])) {
xtc_redirect(xtc_href_link($_SESSION['REFERER'], xtc_get_all_get_params(array('review_prod_id')) . (isset($_GET['review_prod_id']) ? 'products_id=' . $_GET['review_prod_id'] : '')));
} elseif ($_SESSION['cart']->count_contents() > 0 && !isset($_GET['review_prod_id']) && !isset($_GET['order_id'])) {
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART), 'NONSSL');
} else {
xtc_redirect(xtc_href_link(FILENAME_DEFAULT), 'NONSSL');
}
}
}
}
$breadcrumb->add(NAVBAR_TITLE_LOGIN, xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
require DIR_WS_INCLUDES . 'header.php';
if (isset($_GET['info_message'])) {
$info_message = $_GET['info_message'];
}
$smarty->assign('info_message', $info_message);
$smarty->assign('account_option', ACCOUNT_OPTIONS);
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:login.php
示例19: xtc_draw_form
echo TEXT_PAYPAL_CAPTURE_SUBMIT;
?>
">
</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;
?>
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:orders_paypal.php
示例20: define
define('ASK_URL', 'http://submissions.ask.com/ping?sitemap=');
$SEO_DOMAINS = array(GOOGLE_URL, LIVE_URL, ASK_URL);
define('SITEMAPINDEX_HEADER', "<?xml version='1.0' encoding='UTF-8'?>" . "\n" . '
<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n" . '
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd"' . "\n" . '
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n");
define('SITEMAPINDEX_FOOTER', '</sitemapindex>');
define('SITEMAPINDEX_ENTRY', "\t" . '<sitemap>' . "\n\t\t" . '<loc>%s</loc>' . "\n\t\t" . '<lastmod>%s</lastmod>' . "\n\t" . '</sitemap>' . "\n");
define('SITEMAP_HEADER', "<?xml version='1.0' encoding='UTF-8'?>" . "\n" . '
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n" . '
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"' . "\n" . '
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n");
define('SITEMAP_FOOTER', '</urlset>');
define('SITEMAP_ENTRY', "\t" . '<url>' . "\n\t\t" . '<loc>%s</loc>' . "\n\t\t" . '<priority>%s</priority>' . "\n\t\t" . '<lastmod>%s</lastmod>' . "\n\t\t" . '<changefreq>%s</changefreq>' . "\n\t" . '</url>' . "\n");
$smarty = new Smarty();
$breadcrumb->add('Google Sitemap', xtc_href_link(FILENAME_GOOGLE_SITEMAP, xtc_get_all_get_params(), 'NONSSL'));
// include boxes
require DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php';
require DIR_WS_INCLUDES . 'header.php';
include DIR_WS_MODULES . 'default.php';
define('SITEMAP_CATALOG', HTTP_SERVER . DIR_WS_CATALOG);
$usegzip = false;
$autogenerate = false;
$output_to_file = false;
$notify_google = false;
$notify_url = '';
$c_cat_total = 0;
$c_prod_total = 0;
// request over http or command line?
if (count($_GET) > 0) {
// use gzip
开发者ID:shophelfer,项目名称:shophelfer.com-shop,代码行数:31,代码来源:google_sitemap.php
注:本文中的xtc_get_all_get_params函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论