<?php
/* --------------------------------------------------------------
print_order.php 2009-01-19 mb
Gambio OHG
http://www.gambio.de
Copyright (c) 2008 Gambio OHG
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
based on:
(c) 2003 nextcommerce (print_order.php,v 1.1 2003/08/19); www.nextcommerce.org
(c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: print_order.php 1166 2005-08-21 00:52:02Z mz $)
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
require('includes/application_top.php');
// include needed functions
require_once(DIR_FS_INC .'xtc_get_order_data.inc.php');
require_once(DIR_FS_INC .'xtc_get_attributes_model.inc.php');
require_once(DIR_FS_INC .'xtc_not_null.inc.php');
require_once(DIR_FS_INC .'xtc_format_price_order.inc.php');
$smarty = new Smarty;
$order_query_check = xtc_db_query("SELECT
customers_id
FROM ".TABLE_ORDERS."
WHERE orders_id='".(int)$_GET['oID']."'");
$order_check = xtc_db_fetch_array($order_query_check);
// if ($_SESSION['customer_id'] == $order_check['customers_id'])
// {
// get order data
include(DIR_WS_CLASSES . 'order.php');
$order = new order($_GET['oID']);
$smarty->assign('address_label_customer',xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'));
$smarty->assign('address_label_shipping',xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$smarty->assign('address_label_payment',xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$smarty->assign('csID',$order->customer['csID']);
// get products data
$order_query=xtc_db_query("SELECT
products_id,
orders_products_id,
products_model,
products_name,
final_price,
products_quantity
FROM ".TABLE_ORDERS_PRODUCTS."
WHERE orders_id='".(int)$_GET['oID']."'");
$order_data=array();
while ($order_data_values = xtc_db_fetch_array($order_query)) {
// BOF GM_MOD
$attributes_query=xtc_db_query("SELECT
products_options,
products_options_values,
price_prefix,
options_values_price
FROM ".TABLE_ORDERS_PRODUCTS_ATTRIBUTES."
WHERE orders_products_id='".$order_data_values['orders_products_id']."'
AND orders_id='".(int)$_GET['oID']."'");
$attributes_data='';
$attributes_model='';
while ($attributes_data_values = xtc_db_fetch_array($attributes_query)) {
$attributes_data .='<br />'.$attributes_data_values['products_options'].':'.$attributes_data_values['products_options_values'];
$attributes_model .='<br />'.xtc_get_attributes_model($order_data_values['products_id'],$attributes_data_values['products_options_values'],$attributes_data_values['products_options']);
}
$order_data[]=array(
'PRODUCTS_MODEL' => $order_data_values['products_model'],
'PRODUCTS_NAME' => $order_data_values['products_name'],
'PRODUCTS_ATTRIBUTES' => $attributes_data,
'PRODUCTS_ATTRIBUTES_MODEL' => $attributes_model,
'PRODUCTS_PRICE' => xtc_format_price_order($order_data_values['final_price'],1,$order->info['currency']),
'PRODUCTS_QTY' => $order_data_values['products_quantity']);
}
// get order_total data
$oder_total_query=xtc_db_query("SELECT
title,
text,
class,
value,
sort_order
FROM ".TABLE_ORDERS_TOTAL."
WHERE orders_id='".$_GET['oID']."'
ORDER BY sort_order ASC");
$order_total=array();
while ($oder_total_values = xtc_db_fetch_array($oder_total_query)) {
$order_total[]=array(
'TITLE' => $oder_total_values['title'],
'CLASS'=> $oder_total_values['class'],
'VALUE'=> $oder_total_values['value'],
'TEXT' => $oder_total_values['text']);
if ($oder_total_values['class']='ot_total') $total=$oder_total_values['value'];
}
// assign language to template for caching
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('logo_path',HTTP_SERVER . DIR_WS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/img/');
$smarty->assign('oID',$_GET['oID']);
if ($order->info['payment_method']!='' && $order->info['payment_method']!='no_payment') {
include(DIR_FS_CATALOG.'lang/'.$_SESSION['language'].'/modules/payment/'.$order->info['payment_method'].'.php');
$payment_method=constant(strtoupper('MODULE_PAYMENT_'.$order->info['payment_method'].'_TEXT_TITLE'));
$smarty->assign('PAYMENT_METHOD',$payment_method);
}
$smarty->assign('COMMENTS', $order->info['comments']);
$smarty->assign('DATE',xtc_date_long($order->info['date_purchased']));
$smarty->assign('order_data', $order_data);
$smarty->assign('order_total', $order_total);
// dont allow cache
$smarty->caching = false;
$smarty->template_dir=DIR_FS_CATALOG.'templates';
$smarty->compile_dir=DIR_FS_CATALOG.'templates_c';
$smarty->config_dir=DIR_FS_CATALOG.'lang';
$smarty->display(CURRENT_TEMPLATE . '/admin/print_order.html');
// } else {
// $smarty->display(CURRENT_TEMPLATE . '/error_message.html');
// }
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| backups/ | 2025-01-28 22:35 | 109 B | 76129f60960:kunden | dxwrx-rx-r | |
| gm/ | 2013-11-12 20:53 | 3.67 MB | 76129f60960:kunden | dxwrx-rx-r | |
| images/ | 2013-11-12 20:54 | 728.74 KB | 76129f60960:kunden | dxwrx-rx-r | |
| includes/ | 2013-11-12 20:54 | 9.48 MB | 76129f60960:kunden | dxwrx-rx-r | |
| sync4/ | 2013-11-12 20:53 | 13 B | 76129f60960:kunden | dxwrx-rx-r | |
| templates/ | 2013-11-12 20:54 | 91.42 KB | 76129f60960:kunden | dxwrx-rx-r | |
| yoochoose/ | 2013-11-12 20:54 | 592.85 KB | 76129f60960:kunden | dxwrx-rx-r | |
| accounting.php | 2013-11-12 20:52 | 8.29 KB | 76129f60960:kunden | -xw-x----- | |
| backup.php | 2013-11-12 20:52 | 26.38 KB | 76129f60960:kunden | -xw-x----- | |
| banner_manager.php | 2013-11-12 20:53 | 25.85 KB | 76129f60960:kunden | -xw-x----- | |
| banner_statistics.php | 2013-11-12 20:52 | 8.07 KB | 76129f60960:kunden | -xw-x----- | |
| billsafe_orders_2.php | 2013-11-12 20:53 | 40.46 KB | 76129f60960:kunden | -xw-x----- | |
| billsafe_print_order_2.php | 2013-11-12 20:52 | 13.06 KB | 76129f60960:kunden | -xw-x----- | |
| blacklist.php | 2013-11-12 20:52 | 11.53 KB | 76129f60960:kunden | -xw-x----- | |
| brickfox.php | 2013-11-12 20:53 | 5.46 KB | 76129f60960:kunden | -xw-x----- | |
| campaigns.php | 2013-11-12 20:52 | 10.85 KB | 76129f60960:kunden | -xw-x----- | |
| categories.php | 2013-11-12 20:52 | 18.53 KB | 76129f60960:kunden | -xw-x----- | |
| clear_cache.php | 2013-11-12 20:52 | 8.46 KB | 76129f60960:kunden | -xw-x----- | |
| configuration.php | 2013-11-12 20:53 | 16.61 KB | 76129f60960:kunden | -xw-x----- | |
| content_manager.php | 2013-11-12 20:52 | 52.29 KB | 76129f60960:kunden | -xw-x----- | |
| content_preview.php | 2013-11-12 20:52 | 2.61 KB | 76129f60960:kunden | -xw-x----- | |
| countries.php | 2013-11-12 20:52 | 15.68 KB | 76129f60960:kunden | -xw-x----- | |
| coupon_admin.php | 2013-11-12 20:52 | 50.67 KB | 76129f60960:kunden | -xw-x----- | |
| create_account.php | 2013-11-12 20:52 | 28.53 KB | 76129f60960:kunden | -xw-x----- | |
| credits.php | 2013-11-12 20:52 | 6.97 KB | 76129f60960:kunden | -xw-x----- | |
| cross_sell_groups.php | 2013-11-12 20:52 | 13.02 KB | 76129f60960:kunden | -xw-x----- | |
| csv_backend.php | 2013-11-12 20:52 | 19.86 KB | 76129f60960:kunden | -xw-x----- | |
| currencies.php | 2013-11-12 20:52 | 17.6 KB | 76129f60960:kunden | -xw-x----- | |
| customers.php | 2013-11-12 20:52 | 58.49 KB | 76129f60960:kunden | -xw-x----- | |
| customers_status.php | 2013-11-12 20:53 | 36.57 KB | 76129f60960:kunden | -xw-x----- | |
| econda.php | 2013-11-12 20:52 | 6.31 KB | 76129f60960:kunden | -xw-x----- | |
| ekomi.php | 2013-11-12 20:52 | 14.11 KB | 76129f60960:kunden | -xw-x----- | |
| fck_wrapper.php | 2013-11-12 20:52 | 501 B | 76129f60960:kunden | -xw-x----- | |
| filelist.txt | 2013-11-12 20:52 | 268.55 KB | 76129f60960:kunden | -xw-x----- | |
| geo_zones.php | 2013-11-12 20:52 | 23.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_analytics.php | 2013-11-12 20:52 | 4.9 KB | 76129f60960:kunden | -xw-x----- | |
| gm_backup_files_zip.php | 2013-11-12 20:52 | 11.35 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks.php | 2013-11-12 20:52 | 4.26 KB | 76129f60960:kunden | -xw-x----- | |
| gm_bookmarks_action.php | 2013-11-12 20:52 | 2.46 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter.php | 2013-11-12 20:53 | 5.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_counter_action.php | 2013-11-12 20:52 | 1.8 KB | 76129f60960:kunden | -xw-x----- | |
| gm_ebay.php | 2013-11-12 20:52 | 8.85 KB | 76129f60960:kunden | -xw-x----- | |
| gm_emails.php | 2013-11-12 20:53 | 12.16 KB | 76129f60960:kunden | -xw-x----- | |
| gm_emails_preview.php | 2013-11-12 20:52 | 5.95 KB | 76129f60960:kunden | -xw-x----- | |
| gm_feature_control.php | 2013-11-12 20:53 | 24.84 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gmotion.php | 2013-11-12 20:52 | 8.11 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint.php | 2013-11-12 20:52 | 3.56 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_categories.php | 2013-11-12 20:52 | 7.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_configuration.php | 2013-11-12 20:52 | 7.58 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_edit.php | 2013-11-12 20:52 | 19.55 KB | 76129f60960:kunden | -xw-x----- | |
| gm_gprint_overview.php | 2013-11-12 20:52 | 4.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_guestbook.php | 2013-11-12 20:52 | 9.43 KB | 76129f60960:kunden | -xw-x----- | |
| gm_id_starts.php | 2013-11-12 20:52 | 7.96 KB | 76129f60960:kunden | -xw-x----- | |
| gm_invoicing.php | 2013-11-12 20:52 | 12.14 KB | 76129f60960:kunden | -xw-x----- | |
| gm_janolaw.php | 2013-11-12 20:52 | 4.48 KB | 76129f60960:kunden | -xw-x----- | |
| gm_lang_edit.php | 2013-11-12 20:52 | 4.24 KB | 76129f60960:kunden | -xw-x----- | |
| gm_lightbox.php | 2013-11-12 20:52 | 4.69 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo.php | 2013-11-12 20:52 | 5.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_logo_action.php | 2013-11-12 20:53 | 1.11 KB | 76129f60960:kunden | -xw-x----- | |
| gm_meta.php | 2013-11-12 20:52 | 3.63 KB | 76129f60960:kunden | -xw-x----- | |
| gm_meta_action.php | 2013-11-12 20:52 | 2.91 KB | 76129f60960:kunden | -xw-x----- | |
| gm_miscellaneous.php | 2013-11-12 20:52 | 28.65 KB | 76129f60960:kunden | -xw-x----- | |
| gm_module_export.php | 2013-11-12 20:52 | 13.28 KB | 76129f60960:kunden | -xw-x----- | |
| gm_module_part_export.php | 2013-11-12 20:52 | 3.73 KB | 76129f60960:kunden | -xw-x----- | |
| gm_offline.php | 2013-11-12 20:52 | 4.29 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch.php | 2013-11-12 20:52 | 3.18 KB | 76129f60960:kunden | -xw-x----- | |
| gm_opensearch_action.php | 2013-11-12 20:52 | 2.15 KB | 76129f60960:kunden | -xw-x----- | |
| gm_order_menu.php | 2013-11-12 20:52 | 9.18 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf.php | 2013-11-12 20:52 | 5.99 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf_action.php | 2013-11-12 20:52 | 8.83 KB | 76129f60960:kunden | -xw-x----- | |
| gm_pdf_order.php | 2013-11-12 20:52 | 23.01 KB | 76129f60960:kunden | -xw-x----- | |
| gm_product_export.php | 2013-11-12 20:53 | 4.53 KB | 76129f60960:kunden | -xw-x----- | |
| gm_scroller.php | 2013-11-12 20:52 | 6.52 KB | 76129f60960:kunden | -xw-x----- | |
| gm_security.php | 2013-11-12 20:52 | 10.91 KB | 76129f60960:kunden | -xw-x----- | |
| gm_send_order.php | 2013-11-12 20:52 | 8.77 KB | 76129f60960:kunden | -xw-x----- | |
| gm_seo_boost.php | 2013-11-12 20:52 | 5.77 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sitemap.php | 2013-11-12 20:52 | 4.83 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sitemap_creator.php | 2013-11-12 20:53 | 1.19 KB | 76129f60960:kunden | -xw-x----- | |
| gm_slider.php | 2013-11-12 20:53 | 28.49 KB | 76129f60960:kunden | -xw-x----- | |
| gm_sql.php | 2013-11-12 20:52 | 6.84 KB | 76129f60960:kunden | -xw-x----- | |
| gm_statusbar.php | 2013-11-12 20:52 | 6.46 KB | 76129f60960:kunden | -xw-x----- | |
| gm_style_edit.php | 2013-11-12 20:52 | 50.56 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_info.php | 2013-11-12 20:52 | 7.41 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_shop_id.php | 2013-11-12 20:52 | 6.32 KB | 76129f60960:kunden | -xw-x----- | |
| gm_trusted_shops_widget.php | 2013-11-12 20:52 | 9.44 KB | 76129f60960:kunden | -xw-x----- | |
| gv_mail.php | 2013-11-12 20:52 | 17.47 KB | 76129f60960:kunden | -xw-x----- | |
| gv_queue.php | 2013-11-12 20:52 | 11.83 KB | 76129f60960:kunden | -xw-x----- | |
| gv_sent.php | 2013-11-12 20:52 | 8.71 KB | 76129f60960:kunden | -xw-x----- | |
| index.php | 2013-11-12 20:52 | 1.03 KB | 76129f60960:kunden | -xw-x----- | |
| interkurierConnect.php | 2013-11-12 20:52 | 5.77 KB | 76129f60960:kunden | -xw-x----- | |
| languages.php | 2013-11-12 20:53 | 30.67 KB | 76129f60960:kunden | -xw-x----- | |
| lettr_de.php | 2013-11-12 20:52 | 8.03 KB | 76129f60960:kunden | -xw-x----- | |
| listcategories.php | 2013-11-12 20:53 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| listproducts.php | 2013-11-12 20:52 | 2.9 KB | 76129f60960:kunden | -xw-x----- | |
| magnabundle.dat | 2013-11-12 20:53 | 6 B | 76129f60960:kunden | -xw-x----- | |
| magnalister.php | 2013-11-12 20:52 | 10.24 KB | 76129f60960:kunden | -xw-x----- | |
| mail.php | 2013-11-12 20:52 | 12.89 KB | 76129f60960:kunden | -xw-x----- | |
| manufacturers.php | 2013-11-12 20:52 | 16.46 KB | 76129f60960:kunden | -xw-x----- | |
| mediafinanz.php | 2013-11-12 20:52 | 4.53 KB | 76129f60960:kunden | -xw-x----- | |
| minisql.php | 2013-11-12 20:52 | 2.84 KB | 76129f60960:kunden | -xw-x----- | |
| mobile.php | 2013-11-12 20:52 | 11.7 KB | 76129f60960:kunden | -xw-x----- | |
| module_export.php | 2013-11-12 20:52 | 13.5 KB | 76129f60960:kunden | -xw-x----- | |
| module_newsletter.php | 2013-11-12 20:52 | 27.89 KB | 76129f60960:kunden | -xw-x----- | |
| modules.php | 2013-11-12 20:52 | 11.26 KB | 76129f60960:kunden | -xw-x----- | |
| nc_clickandbuy.php | 2013-11-12 20:52 | 8.58 KB | 76129f60960:kunden | -xw-x----- | |
| new_attributes.php | 2013-11-12 20:52 | 5.39 KB | 76129f60960:kunden | -xw-x----- | |
| orders.php | 2013-11-12 20:52 | 72.31 KB | 76129f60960:kunden | -xw-x----- | |
| orders_actions.php | 2013-11-12 20:52 | 337 B | 76129f60960:kunden | -xw-x----- | |
| orders_edit.php | 2013-11-12 20:52 | 39.75 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_address.php | 2013-11-12 20:52 | 6.49 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_options.php | 2013-11-12 20:52 | 5.92 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_other.php | 2013-11-12 20:53 | 11 KB | 76129f60960:kunden | -xw-x----- | |
| orders_edit_products.php | 2013-11-12 20:52 | 6.94 KB | 76129f60960:kunden | -xw-x----- | |
| orders_status.php | 2013-11-12 20:52 | 16.09 KB | 76129f60960:kunden | -xw-x----- | |
| paypal.php | 2013-11-12 20:53 | 10.52 KB | 76129f60960:kunden | -xw-x----- | |
| phpminiadmin.php | 2013-11-12 20:53 | 29.89 KB | 76129f60960:kunden | -xw-x----- | |
| popup_image.php | 2013-11-12 20:52 | 1.91 KB | 76129f60960:kunden | -xw-x----- | |
| popup_memo.php | 2013-11-12 20:52 | 5.54 KB | 76129f60960:kunden | -xw-x----- | |
| print_order.php | 2013-11-12 20:52 | 5.62 KB | 76129f60960:kunden | -xw-x----- | |
| print_packingslip.php | 2013-11-12 20:52 | 5.65 KB | 76129f60960:kunden | -xw-x----- | |
| products_attributes.php | 2013-11-12 20:52 | 51.66 KB | 76129f60960:kunden | -xw-x----- | |
| products_expected.php | 2013-11-12 20:52 | 6.71 KB | 76129f60960:kunden | -xw-x----- | |
| products_vpe.php | 2013-11-12 20:52 | 15.16 KB | 76129f60960:kunden | -xw-x----- | |
| properties.php | 2013-11-12 20:52 | 2.92 KB | 76129f60960:kunden | -xw-x----- | |
| properties_combis.php | 2013-11-12 20:53 | 3.66 KB | 76129f60960:kunden | -xw-x----- | |
| quantity_units.php | 2013-11-12 20:53 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| request_port.php | 2013-11-12 20:52 | 10.4 KB | 76129f60960:kunden | -xw-x----- | |
| reviews.php | 2013-11-12 20:52 | 19.72 KB | 76129f60960:kunden | -xw-x----- | |
| robots_download.php | 2013-11-12 20:53 | 4.47 KB | 76129f60960:kunden | -xw-x----- | |
| saferpay.php | 2013-11-12 20:52 | 12.76 KB | 76129f60960:kunden | -xw-x----- | |
| server_info.php | 2013-11-12 20:52 | 7.16 KB | 76129f60960:kunden | -xw-x----- | |
| shipping_status.php | 2013-11-12 20:52 | 23.12 KB | 76129f60960:kunden | -xw-x----- | |
| shopgate.php | 2013-11-12 20:52 | 135 B | 76129f60960:kunden | -xw-x----- | |
| show_logs.php | 2013-11-12 20:53 | 9.77 KB | 76129f60960:kunden | -xw-x----- | |
| specials.php | 2013-11-12 20:52 | 22.29 KB | 76129f60960:kunden | -xw-x----- | |
| start.php | 2013-11-12 20:52 | 11.76 KB | 76129f60960:kunden | -xw-x----- | |
| stats_campaigns.php | 2013-11-12 20:52 | 13.39 KB | 76129f60960:kunden | -xw-x----- | |
| stats_customers.php | 2013-11-12 20:52 | 5.48 KB | 76129f60960:kunden | -xw-x----- | |
| stats_products_purchased.php | 2013-11-12 20:52 | 5.1 KB | 76129f60960:kunden | -xw-x----- | |
| stats_products_viewed.php | 2013-11-12 20:52 | 4.78 KB | 76129f60960:kunden | -xw-x----- | |
| stats_sales_report.php | 2013-11-12 20:52 | 20.98 KB | 76129f60960:kunden | -xw-x----- | |
| stats_stock_warning.php | 2013-11-12 20:53 | 4.94 KB | 76129f60960:kunden | -xw-x----- | |
| tax_classes.php | 2013-11-12 20:52 | 11.43 KB | 76129f60960:kunden | -xw-x----- | |
| tax_rates.php | 2013-11-12 20:53 | 13.6 KB | 76129f60960:kunden | -xw-x----- | |
| template_configuration.php | 2013-11-12 20:52 | 40.73 KB | 76129f60960:kunden | -xw-x----- | |
| validcategories.php | 2013-11-12 20:52 | 2.62 KB | 76129f60960:kunden | -xw-x----- | |
| validproducts.php | 2013-11-12 20:53 | 2.8 KB | 76129f60960:kunden | -xw-x----- | |
| whos_online.php | 2013-11-12 20:52 | 8.05 KB | 76129f60960:kunden | -xw-x----- | |
| xtbooster.php | 2013-11-12 20:52 | 137.04 KB | 76129f60960:kunden | -xw-x----- | |
| yatego.php | 2013-11-12 20:52 | 16.33 KB | 76129f60960:kunden | -xw-x----- | |
| yoochoose.php | 2013-11-12 20:52 | 12.85 KB | 76129f60960:kunden | -xw-x----- | |
| zones.php | 2013-11-12 20:52 | 11.57 KB | 76129f60960:kunden | -xw-x----- | |