Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require ('includes/application_top.php');
- $inpost_data_dir = DIR_FS_ADMIN . 'ext/inpost/data';
- $inpost_api_url = MODULE_SHIPPING_PACZKOMATY_API_URL;
- require_once ('ext/inpost/inpost.php');
- $pass_phrase = "awsxdrfvgyhnjikmloqw";
- $pass_phrase_hash = md5($pass_phrase);
- require (DIR_WS_CLASSES . 'currencies.php');
- $currencies = new currencies();
- $orders_statuses = array();
- $orders_status_array = array();
- $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$languages_id . "'");
- while ($orders_status = tep_db_fetch_array($orders_status_query)) {
- $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']);
- $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];
- }
- $enabled_shipping = array();
- $enabled_shipping[] = array('id' => '0', 'text' => 'Dowolna wysyłka');
- $module_directory = DIR_FS_CATALOG_MODULES . 'shipping/';
- $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
- if ($dir = @dir($module_directory)) {
- while ($file = $dir->read()) {
- if (!is_dir($module_directory . $file)) {
- if (substr($file, strrpos($file, '.')) == $file_extension) {
- $directory_array[] = $file;
- }
- }
- }
- sort($directory_array);
- $dir->close();
- }
- for ($i = 0, $n = sizeof($directory_array);$i < $n;$i++) {
- $file = $directory_array[$i];
- include (DIR_FS_CATALOG_LANGUAGES . $language . '/modules/shipping/' . $file);
- include ($module_directory . $file);
- $class = substr($file, 0, strrpos($file, '.'));
- if (tep_class_exists($class)) {
- $module = new $class;
- if ($module->check() > 0) {
- $enabled_shipping[] = array('id' => $class . '_' . $class, 'text' => $module->title);
- }
- }
- }
- $enabled_payment = array();
- $enabled_payment[] = array('id' => '0', 'text' => 'Dowolna płatność');
- $module_payment_directory = DIR_FS_CATALOG_MODULES . 'payment/';
- $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
- if ($dir_payment = @dir($module_payment_directory)) {
- while ($file_payment = $dir_payment->read()) {
- if (!is_dir($module_payment_directory . $file_payment)) {
- if (substr($file_payment, strrpos($file_payment, '.')) == $file_extension) {
- $directory_payment_array[] = $file_payment;
- }
- }
- }
- sort($directory_payment_array);
- $dir_payment->close();
- }
- for ($i = 0, $n = sizeof($directory_payment_array);$i < $n;$i++) {
- $file_payment = $directory_payment_array[$i];
- include (DIR_FS_CATALOG_LANGUAGES . $language . '/modules/payment/' . $file_payment);
- include ($module_payment_directory . $file_payment);
- $class_payment = substr($file_payment, 0, strrpos($file_payment, '.'));
- if (tep_class_exists($class_payment)) {
- $module_payment = new $class_payment;
- if ($module_payment->check() > 0) {
- $enabled_payment[] = array('id' => $module_payment->title, 'text' => $module_payment->title);
- }
- }
- }
- $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
- if (tep_not_null($action)) {
- switch ($action) {
- case 'update_order':
- $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
- $status = tep_db_prepare_input($HTTP_POST_VARS['status']);
- $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
- if ($czy_jest_sms) {
- $numer_sms = tep_db_prepare_input($HTTP_POST_VARS['numer_sms']);
- }
- $order_updated = false;
- $check_status_query = tep_db_query("select customers_id, customers_name, customers_email_address, orders_status, date_purchased, customers_dummy_account from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
- $check_status = tep_db_fetch_array($check_status_query);
- if (($check_status['orders_status'] != $status) || $comments != '' || ($status == DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE)) {
- tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'");
- $check_status_query2 = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
- $check_status2 = tep_db_fetch_array($check_status_query2);
- if ($check_status2['orders_status'] == DOWNLOADS_ORDERS_STATUS_UPDATED_VALUE) {
- tep_db_query("update " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " set download_maxdays = '" . tep_get_configuration_key_value('DOWNLOAD_MAX_DAYS') . "', download_count = '" . tep_get_configuration_key_value('DOWNLOAD_MAX_COUNT') . "' where orders_id = '" . (int)$oID . "'");
- }
- if (USE_POINTS_SYSTEM == 'true') {
- if ((isset($_POST['confirm_points']) && ($_POST['confirm_points'] == 'on')) || (isset($_POST['delete_points']) && ($_POST['delete_points'] == 'on'))) {
- $customer_query = tep_db_query("select customer_id, points_pending from " . TABLE_CUSTOMERS_POINTS_PENDING . " where points_status = 1 and points_type = 'SP' and orders_id = '" . (int)$oID . "' limit 1");
- $customer_points = tep_db_fetch_array($customer_query);
- if (tep_db_num_rows($customer_query)) {
- if (isset($_POST['delete_points']) && ($_POST['delete_points'] == 'on')) {
- tep_db_query("delete from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '" . (int)$oID . "' and points_type = 'SP' limit 1");
- $sql = "optimize table " . TABLE_CUSTOMERS_POINTS_PENDING . "";
- }
- if (isset($_POST['confirm_points']) && ($_POST['confirm_points'] == 'on')) {
- tep_db_query("update " . TABLE_CUSTOMERS_POINTS_PENDING . " set points_status = 2 where orders_id = '" . (int)$oID . "' and points_type = 'SP' limit 1");
- $sql = "optimize table " . TABLE_CUSTOMERS_POINTS_PENDING . "";
- if (tep_not_null(POINTS_AUTO_EXPIRES)) {
- $expire = date('Y-m-d', strtotime('+ ' . POINTS_AUTO_EXPIRES . ' month'));
- tep_db_query("update " . TABLE_CUSTOMERS . " set customers_shopping_points = customers_shopping_points + '" . $customer_points['points_pending'] . "', customers_points_expires = '" . $expire . "' where customers_id = '" . (int)$customer_points['customer_id'] . "'");
- } else {
- tep_db_query("update " . TABLE_CUSTOMERS . " set customers_shopping_points = customers_shopping_points + '" . $customer_points['points_pending'] . "' where customers_id = '" . (int)$customer_points['customer_id'] . "'");
- }
- }
- }
- }
- }
- $jezyk_tablica = explode('-', $_POST['jezyk']);
- $jezyk = $jezyk_tablica[0];
- $jezyk_id = $jezyk_tablica[1];
- $customer_notified = '0';
- if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
- $notify_comments = '';
- if (isset($HTTP_POST_VARS['notify_comments']) && ($HTTP_POST_VARS['notify_comments'] == 'on')) {
- if ($comments != '') {
- eval('$ac = ' . strtoupper($jezyk) . '_EMAIL_TEXT_COMMENTS_UPDATE;');
- $notify_comments = sprintf($ac, $comments);
- }
- }
- $custom_name = $check_status['customers_name'];
- $custom_email = $check_status['customers_email_address'];
- $date_1 = tep_date_long($check_status['date_purchased']);
- $guest = $check_status['customers_dummy_account'];
- $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . (int)$jezyk_id . "' AND orders_status_id = '" . (int)$HTTP_POST_VARS['status'] . "'");
- $orders_status = tep_db_fetch_array($orders_status_query);
- $stats = $orders_status['orders_status_name'];
- mail_orders($custom_name, $custom_email, $oID, $date_1, $stats, $notify_comments, $jezyk, $guest);
- $customer_notified = '1';
- }
- if ($czy_jest_sms) {
- $customer_notified_sms = '0';
- if (isset($HTTP_POST_VARS['notify_sms']) && ($HTTP_POST_VARS['notify_sms'] == 'on')) {
- $orders_query_sms_raw = "select text from " . TABLE_ORDERS_TOTAL . " where class = 'ot_total' and orders_id = '" . (int)$oID . "'";
- $orders_query_sms = tep_db_query($orders_query_sms_raw);
- while ($totals = tep_db_fetch_array($orders_query_sms)) {
- $orders_id = $totals['text'];
- }
- $message_sms = SMS_MESSAGE;
- $message_sms = str_replace('[nazwa_sklepu]', STORE_NAME, $message_sms);
- $message_sms = str_replace('[order_id]', 'Nr zamowienia: ' . $oID, $message_sms);
- $message_sms = str_replace('[order_total]', $orders_id, $message_sms);
- $message_sms = str_replace('[orders_status]', $orders_status_array[$status], $message_sms);
- $message_sms = strip_tags($message_sms);
- $trans = array("Ä„" => "A", "Ć" => "C", "Ę" => "E", "Å" => "L", "Ń" => "N", "Ó" => "O", "Åš" => "S", "Å»" => "Z", "Ź" => "Z", "Ä…" => "a", "ć" => "c", "Ä™" => "e", "Å‚" => "l", "Å„" => "n", "ó" => "o", "Å›" => "s", "ż" => "z", "ź" => "z");
- $message_sms = strtr($message_sms, $trans);
- $customer_notified_sms = '1';
- $username = SMS_USERNAME;
- $password = md5(SMS_PASSWORD);
- $to = $numer_sms;
- $message = urlencode($message_sms);
- $from = urlencode(SMS_FROM);
- if ($username && $password && $to && $message) {
- send_sms($username, $password, $from, $to, $message);
- }
- }
- tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, customer_notified_sms, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($customer_notified_sms) . "', '" . tep_db_input($comments) . "')");
- } else {
- tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
- }
- if (PROMO_POLECONY_STATUS == 'true') {
- if (tep_db_input($status) == PROMO_POLECONY_ORDER_STATUS_ID) {
- $check_polecony_query = tep_db_query("select customers_id, customers_polecony, customers_polecajacy_id from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$check_status['customers_id'] . "' and customers_polecony='1'");
- $check_polecony = tep_db_fetch_array($check_polecony_query);
- if ($check_polecony > 0) {
- require (DIR_WS_FUNCTIONS . 'coupons.php');
- $select_polecajacy_query = tep_db_query("select customers_id, customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$check_polecony['customers_polecajacy_id'] . "'");
- $select_polecajacy = tep_db_fetch_array($select_polecajacy_query);
- $default_tax_class_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'DEFAULT_PRODUCT_TAX_CLASS'");
- $default_tax_class = tep_db_fetch_array($default_tax_class_query);
- $default_tax_rates_query = tep_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_class_id = '" . $default_tax_class['configuration_value'] . "'");
- $default_tax_rates = tep_db_fetch_array($default_tax_rates_query);
- $coupons_id = kgt_create_random_coupon();
- $coupons_desc = 'Kupon promocji Polecony-Nagrodzony, osoba polecajÄ…ca : ' . $select_polecajacy['customers_firstname'] . ' ' . $select_polecajacy['customers_lastname'];
- $coupon_amount = PROMO_POLECONY_RABAT;
- $coupons_type = 'fixed';
- $coupons_max_use = '1';
- $coupons_min_order = PROMO_POLECONY_MIN_ORDER;
- $coupons_number_available = '1';
- $coupons_min_order_type = 'price';
- $coupons_date_start = kgt_parse_date(date("Y-m-d"), DATE_FORMAT_SHORT);
- $coupons_date_end = kgt_parse_date(date("Y-m-d", (strtotime(date("Y-m-d")) + (60 * 60 * 24 * PROMO_POLECONY_OKRES))), DATE_FORMAT_SHORT);
- tep_db_query($sql = "insert into " . TABLE_DISCOUNT_COUPONS . " values (
- '" . $coupons_id . "',
- '" . $coupons_desc . "',
- '" . $coupon_amount . "',
- '" . $coupons_type . "',
- '" . $coupons_date_start . "',
- '" . $coupons_date_end . "',
- " . $coupons_max_use . ",
- " . $coupons_min_order . ",
- '" . $coupons_min_order_type . "',
- " . $coupons_number_available . ") ");
- $polecajacy_name = MakeUTF($select_polecajacy['customers_firstname'] . ' ' . $select_polecajacy['customers_lastname']);
- $polecajacy_mail = $select_polecajacy['customers_email_address'];
- mail_orders_polecony($polecajacy_name, $polecajacy_mail, $coupons_id, $coupons_date_start, $coupons_date_end, $jezyk);
- tep_db_query("update " . TABLE_CUSTOMERS . " set customers_polecony = '2' where customers_id = '" . (int)$check_status['customers_id'] . "' and customers_polecony='1'");
- }
- }
- }
- $order_updated = true;
- }
- if ($order_updated == true) {
- $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
- } else {
- $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
- }
- tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit'));
- break;
- case 'deleteconfirm':
- $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
- tep_remove_order($oID, $HTTP_POST_VARS['restock']);
- tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action'))));
- break;
- case 'status_change':
- if (isset($_POST['new_status_order_id'])) {
- $notify_comments = '';
- $customer_notified = '0';
- $oID = tep_db_prepare_input($_POST['new_status_order_id']);
- $status = tep_db_prepare_input($_POST['new_status']);
- $check_status_query = tep_db_query("select customers_id, customers_name, customers_email_address, orders_status, customers_telephone, date_purchased, customers_dummy_account from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
- $check_status = tep_db_fetch_array($check_status_query);
- tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'");
- if (isset($_POST['powiadom_email']) && ($_POST['powiadom_email'] == 'on')) {
- $customer_notified = '1';
- $custom_name = $_POST['customers_name'];
- $custom_email = $_POST['customers_email'];
- $date_1 = tep_date_long($_POST['date_purchased']);
- $guest = $check_status['customers_dummy_account'];
- $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '1' AND orders_status_id = '" . (int)$status . "'");
- $orders_status = tep_db_fetch_array($orders_status_query);
- $stats = $orders_status['orders_status_name'];
- $jezyk = 'POLISH';
- mail_orders($custom_name, $custom_email, $oID, $date_1, $stats, $notify_comments, $jezyk, $guest);
- $messageStack->add_session('Satus zamówienia został zmieniony', 'success');
- }
- tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '')");
- }
- tep_redirect(tep_href_link(FILENAME_DEFAULT));
- break;
- }
- }
- if (($action == 'edit') && isset($HTTP_GET_VARS['oID'])) {
- $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
- $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");
- $order_exists = true;
- if (!tep_db_num_rows($orders_query)) {
- $order_exists = false;
- $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error');
- }
- }
- include (DIR_WS_CLASSES . 'order.php');
- print (agF1gTdKEBPd6CaJ($brapuc663));
- require (DIR_WS_INCLUDES . 'header.php');
- print (agF1gTdKEBPd6CaJ($apllkj664));
- include ('help/oscgold_klienci.php');
- $teksc = P_ZAMOW_START;
- $teksc = preg_replace("/\r\n|\n\r|\r|\n/", " ", $teksc);
- echo '
- <script type=\'text/javascript\' language=\'javascript\'>
- function close_div() {
- document.getElementById(\'pop_window\').innerHTML = \'\';
- document.getElementById(\'pop_overlay\').style.display = \'none\';
- document.getElementById(\'blad\').style.display = \'none\';
- document.getElementById(\'ekran\').style.display = \'none\';
- }
- function views_div(tekst) {
- document.getElementById(\'blad\').style.display=\'block\';
- document.getElementById(\'pop_overlay\').style.display = \'block\';
- document.getElementById(\'ekran\').style.display = \'block\';
- document.getElementById(\'ekran\').innerHTML = unescape("<div id=\'pop_window\' style=\'display:block;position:absolute; top:5%; left:5%; z-index:9999;\'>"+
- "<table style=\'background-color:#ffffff;border:1px solid #000000;\' width=\'90%\' cellpadding=\'5\' cellspacing=\'0\'><tr><td style=\'background-color: #333344;border-bottom: 2px solid #000000;border-top: 1px solid #78A3F2;border-left: 1px solid #78A3F2;border-right: 1px solid #204095;\' align=\'center\'>"+
- "<table width=\'98%\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\'><tr><td width=\'50%\' align=\'left\' style=\'font: bold 13px tahoma,arial, sans-serif; color:#ffffff\'>Pomoc<%2Ftd><td width=\'50%\' align=\'right\'>"+
- "<img src=\'popupbox/close.gif\' border=\'0\' style=\'cursor:pointer\' alt=\'Zamknij\' onclick=\'javascript:close_div();\'><%2Ftd><%2Ftr><%2Ftable><%2Ftd><%2Ftr><tr><td>"+
- "<table width=\'98%\' border=\'0\' cellpadding=\'0\' cellspacing=\'10\'><tr><td>"+
- "<p style=\'font: normal 13px tahoma,arial, sans-serif; color:#616161\'>"+tekst+
- "<br><br><small>System pomocy stworzony i przeznaczony do sklepu internetowego <a href=\'http://www.oscgold.com\'>oscGold<%2Fa>. Autor J.Krysiak firma Kamelia-Net. Kopiowanie bez zgody autora zabronione.<%2Fsmall> "+
- "<%2Fp><%2Ftd><%2Ftr><%2Ftable>"+
- "<input type=\'button\' value=\'Zamknij\' onclick=\'javascript:close_div();\'>"+
- "<%2Ftd><%2Ftr><%2Ftable><%2Fdiv>");
- }
- </script>';
- print (agF1gTdKEBPd6CaJ($ejahgl665));
- if (($action == 'edit') && ($order_exists == true)) {
- $order = new order($oID);
- print (agF1gTdKEBPd6CaJ($jprhqq666));
- echo HEADING_TITLE;
- print (agF1gTdKEBPd6CaJ($nabkah667));
- echo tep_draw_separator('pixel_trans.gif', '80', '80');
- print (agF1gTdKEBPd6CaJ($vsnesu668));
- echo '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $HTTP_GET_VARS['oID']) . '">' . tep_image_button('button_edit.gif', 'Edytuj') . '</a> <a href="' . tep_href_link('../pdfinvoice.php', 'order_id=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a><br>';
- if ($order->info['currency'] == 'PLN') {
- echo '<a href="' . tep_href_link('invoice_edit.php', 'type=1&oID=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_o_pdf.gif', ICON_PDF_ORIGINAL_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=2&oID=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_k_pdf.gif', ICON_PDF_COPY_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=4&oID=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_d_pdf.gif', ICON_PDF_DUPLIKAT_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=3&oID=' . $HTTP_GET_VARS['oID'] . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_f_pdf.gif', ICON_PDF_PROFORMA_INVOICE) . '</a>';
- } else {
- echo '';
- };
- print (agF1gTdKEBPd6CaJ($fnruui669));
- echo $HTTP_GET_VARS['oID'] . ' (' . tep_datetime_short($order->info['date_purchased']) . ')' . (($order->customer['is_dummy_account']) ? ' <b>BEZ REJESTRACJI !!!</b>' : '') . '';
- print (agF1gTdKEBPd6CaJ($pvipho670));
- echo tep_draw_separator('pixel_trans.gif', '100%', '1');
- print (agF1gTdKEBPd6CaJ($oirede671));
- echo ENTRY_CUSTOMER;
- print (agF1gTdKEBPd6CaJ($naculb672));
- echo tep_address_format($order->customer['format_id'], $order->customer, 1, '', '<br>');
- print (agF1gTdKEBPd6CaJ($snnheb673));
- echo ENTRY_SHIPPING_ADDRESS;
- print (agF1gTdKEBPd6CaJ($rleoqg674));
- echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br>');
- print (agF1gTdKEBPd6CaJ($rxwfmh675));
- echo ENTRY_BILLING_ADDRESS;
- print (agF1gTdKEBPd6CaJ($iomkvp676));
- echo tep_address_format($order->billing['format_id'], $order->billing, 1, '', '<br>');
- print (agF1gTdKEBPd6CaJ($fpvpwr677));
- echo ENTRY_TELEPHONE_NUMBER;
- print (agF1gTdKEBPd6CaJ($otjupa678));
- echo $order->customer['telephone'];
- print (agF1gTdKEBPd6CaJ($ggcvil679));
- echo ENTRY_EMAIL_ADDRESS;
- print (agF1gTdKEBPd6CaJ($rpuaex680));
- echo '<a href="mailto:' . $order->customer['email_address'] . '"><u>' . $order->customer['email_address'] . '</u></a>';
- print (agF1gTdKEBPd6CaJ($tenvrw681));
- echo ENTRY_PAYMENT_METHOD;
- print (agF1gTdKEBPd6CaJ($wjcviw682));
- echo $order->info['payment_method'];
- print (agF1gTdKEBPd6CaJ($jwyyuu683));
- if (tep_not_null($order->info['cc_type']) || tep_not_null($order->info['cc_owner']) || tep_not_null($order->info['cc_number'])) {;
- print (agF1gTdKEBPd6CaJ($ljmpdk684));
- echo tep_draw_separator('pixel_trans.gif', '1', '10');
- print (agF1gTdKEBPd6CaJ($qyritt685));
- echo ENTRY_CREDIT_CARD_TYPE;
- print (agF1gTdKEBPd6CaJ($geihjg686));
- echo $order->info['cc_type'];
- print (agF1gTdKEBPd6CaJ($yabyhy687));
- echo ENTRY_CREDIT_CARD_OWNER;
- print (agF1gTdKEBPd6CaJ($jdvugo688));
- echo $order->info['cc_owner'];
- print (agF1gTdKEBPd6CaJ($ysnhse689));
- echo ENTRY_CREDIT_CARD_NUMBER;
- print (agF1gTdKEBPd6CaJ($fwrfqs690));
- echo $order->info['cc_number'];
- print (agF1gTdKEBPd6CaJ($iwelfi691));
- echo ENTRY_CREDIT_CARD_EXPIRES;
- print (agF1gTdKEBPd6CaJ($efceen692));
- echo $order->info['cc_expires'];
- print (agF1gTdKEBPd6CaJ($uewbbp693));
- };
- print (agF1gTdKEBPd6CaJ($lgfako694));
- echo tep_draw_separator('pixel_trans.gif', '1', '10');
- print (agF1gTdKEBPd6CaJ($nhpngw695));
- echo TABLE_HEADING_PRODUCTS;
- print (agF1gTdKEBPd6CaJ($rsuglt696));
- echo TABLE_HEADING_PRODUCTS_MODEL;
- print (agF1gTdKEBPd6CaJ($gpiwnc697));
- echo TABLE_HEADING_TAX;
- print (agF1gTdKEBPd6CaJ($cdvxwu698));
- echo TABLE_HEADING_PRICE_EXCLUDING_TAX;
- print (agF1gTdKEBPd6CaJ($gwltct699));
- echo TABLE_HEADING_PRICE_INCLUDING_TAX;
- print (agF1gTdKEBPd6CaJ($iwpkox700));
- echo TABLE_HEADING_TOTAL_EXCLUDING_TAX;
- print (agF1gTdKEBPd6CaJ($mdsffq701));
- echo TABLE_HEADING_TOTAL_INCLUDING_TAX;
- print (agF1gTdKEBPd6CaJ($imgsbr702));
- for ($i = 0, $n = sizeof($order->products);$i < $n;$i++) {
- $lp = $i + 1;
- echo '<tr class="dataTableRow">' . "\n";
- echo '<td class="dataTableContent" align="right">' . $lp . '</td>' . "\n";
- if ($order->products[$i]['id'] > 0) {
- echo '<td class="dataTableContent" valign="top"><a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'product_info.php?products_id=' . $order->products[$i]['id'] . '" target="_blank">' . $order->products[$i]['name'] . '</a>';
- } else {
- echo '<td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
- }
- if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {
- for ($j = 0, $k = sizeof($order->products[$i]['attributes']);$j < $k;$j++) {
- echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
- if ($order->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format(tep_add_tax($order->products[$i]['attributes'][$j]['price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
- echo '</i></small></nobr>';
- }
- }
- $attr_q = tep_db_query("select ota.*, pta.products_text_attributes_name from orders_text_attributes as ota, products_text_attributes as pta where ota.orders_id = " . $HTTP_GET_VARS['oID'] . " and ota.products_id = " . $order->products[$i]['orders_products_id'] . " and pta.products_text_attributes_id = ota.products_text_attributes_id");
- while ($attr = tep_db_fetch_array($attr_q)) {
- echo '<br><nobr><small> <i> - ' . $attr['products_text_attributes_name'] . ': ' . stripslashes($attr['products_text_attributes_text']);
- echo '</i></small></nobr>';
- }
- echo ' </td>' . "\n";
- if (PRZELICZ_ZAMOWIENIE_BRUTTO == 'true') {
- $wartosc_brutto = $currencies->calculate_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'], $order->info['currency'], $order->info['currency_value']);
- $wartosc_vat = ($wartosc_brutto * $order->products[$i]['tax']) / (100 + $order->products[$i]['tax']);
- $wartosc_netto = $wartosc_brutto - $wartosc_vat;
- } else {
- $wartosc_netto = $currencies->calculate_price($order->products[$i]['final_price'], '', $order->products[$i]['qty'], $order->info['currency'], $order->info['currency_value']);
- $wartosc_vat = $wartosc_netto * ($order->products[$i]['tax'] / 100);
- $wartosc_brutto = $wartosc_netto + $wartosc_vat;
- }
- if ($order->products[$i]['id'] > 0) {
- echo '<td class="dataTableContent" valign="top"><a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'product_info.php?products_id=' . $order->products[$i]['id'] . '" target="_blank">' . $order->products[$i]['model'] . '</a></td>' . "\n";
- } else {
- echo '<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
- }
- echo '<td class="dataTableContent" align="right" valign="top">' . $order->products[$i]['qty'] . '</td>' . "\n";
- echo '<td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($wartosc_netto, true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($wartosc_vat, true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($wartosc_brutto, true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
- echo ' </tr>' . "\n";
- };
- print (agF1gTdKEBPd6CaJ($bgcjxu703));
- for ($i = 0, $n = sizeof($order->totals);$i < $n;$i++) {
- echo '<tr>' . "\n" . ' <td align="right" class="smallText" style="font-size:12px">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText" style="color:#ff0000;font-size:12px">' . $order->totals[$i]['text'] . '</td>' . "\n" . '</tr>' . "\n";
- };
- print (agF1gTdKEBPd6CaJ($maalau704));
- echo tep_draw_separator('pixel_trans.gif', '1', '5');
- print (agF1gTdKEBPd6CaJ($nubixr705));
- echo tep_draw_separator('pixel_trans.gif', '100%', '1');
- print (agF1gTdKEBPd6CaJ($xjumms706));
- echo tep_draw_separator('pixel_trans.gif', '1', '5');
- print (agF1gTdKEBPd6CaJ($ijvqwh707));
- echo TABLE_HEADING_DATE_ADDED;
- print (agF1gTdKEBPd6CaJ($qinpbq708));
- echo TABLE_HEADING_CUSTOMER_NOTIFIED;
- print (agF1gTdKEBPd6CaJ($xoifwv709));
- if ($czy_jest_sms) {
- echo '<td class="smallText" style="border:1px #b7b7b7 solid; border-right:0px" align="center"><b>' . TABLE_HEADING_CUSTOMER_NOTIFIED_SMS . '</b></td>';
- };
- print (agF1gTdKEBPd6CaJ($tarmuf710));
- echo TABLE_HEADING_STATUS;
- print (agF1gTdKEBPd6CaJ($rkoxfx711));
- echo TABLE_HEADING_COMMENTS;
- print (agF1gTdKEBPd6CaJ($clgkwu712));
- if ($czy_jest_sms) {
- $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, customer_notified_sms, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");
- } else {
- $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");
- }
- if (tep_db_num_rows($orders_history_query)) {
- while ($orders_history = tep_db_fetch_array($orders_history_query)) {
- echo ' <tr>' . "\n" . ' <td class="smallText" align="center" style="border:1px #b7b7b7 solid; border-right:0px; border-top:0px">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . ' <td class="smallText" align="center" style="border:1px #b7b7b7 solid; border-right:0px; border-top:0px">';
- if ($orders_history['customer_notified'] == '1') {
- echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n";
- } else {
- echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n";
- }
- if ($czy_jest_sms) {
- echo ' <td class="smallText" align="center" style="border:1px #b7b7b7 solid; border-right:0px; border-top:0px">';
- if ($orders_history['customer_notified_sms'] == '1') {
- echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK) . "</td>\n";
- } else {
- echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS) . "</td>\n";
- }
- }
- echo ' <td class="smallText" style="border:1px #b7b7b7 solid; border-right:0px; border-top:0px">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n" . ' <td class="smallText" style="border:1px #b7b7b7 solid; border-top:0px">' . nl2br(tep_db_output($orders_history['comments'])) . ' </td>' . "\n" . ' </tr>' . "\n";
- }
- } else {
- echo ' <tr>' . "\n" . ' <td class="smallText" colspan="5" style="border:1px #b7b7b7 solid; border-top:0px">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . ' </tr>' . "\n";
- };
- print (agF1gTdKEBPd6CaJ($eknkki713));
- echo tep_draw_separator('pixel_trans.gif', '1', '5');
- print (agF1gTdKEBPd6CaJ($lvxkcv714));
- echo tep_draw_separator('pixel_trans.gif', '100%', '1');
- print (agF1gTdKEBPd6CaJ($khlntl715));
- echo tep_draw_separator('pixel_trans.gif', '1', '5');
- print (agF1gTdKEBPd6CaJ($rpdxvl716));
- echo tep_draw_form('status', FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=update_order');
- print (agF1gTdKEBPd6CaJ($lbwvcu717));
- echo TABLE_HEADING_COMMENTS;
- print (agF1gTdKEBPd6CaJ($coowhu718));
- echo tep_draw_textarea_field('comments', 'soft', '100', '5', '', ' style="background:#ececec; border:1px solid #b7b7b7"');
- print (agF1gTdKEBPd6CaJ($uejfxq719));
- echo ENTRY_STATUS;
- print (agF1gTdKEBPd6CaJ($kkqria720));
- echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status'], 'style="width: 250px; padding: 2px;"');
- print (agF1gTdKEBPd6CaJ($lyapbg721));
- require (DIR_WS_MODULES . 'standard_order_comments.php');
- print (agF1gTdKEBPd6CaJ($wdlrpr722));
- echo ENTRY_NOTIFY_CUSTOMER;
- print (agF1gTdKEBPd6CaJ($uqglmx723));
- echo tep_draw_checkbox_field('notify', '', true);
- print (agF1gTdKEBPd6CaJ($bokpip724));
- if ($czy_jest_sms) {
- $telephone = preg_replace('/\W/', '', $order->customer['telephone']);
- if (!is_numeric($telephone)) {
- }
- $telefony = '';
- $table_telefony = preg_split("/[,]/", TELEFONY_KOMORKOWE);
- $size = sizeof($table_telefony);
- for ($i = 0, $n = $size;$i < $n;$i++) {
- $telefony.= $table_telefony[$i] . '[0-9]';
- if ($i < $n - 1) {
- $telefony.= '|';
- }
- }
- if (preg_match("/^0?(48)?.?(" . $telefony . ")[0-9]{6}$/i", $telephone)) {;
- print (agF1gTdKEBPd6CaJ($koemcn725));
- echo ENTRY_NOTIFY_CUSTOMER_SMS;
- print (agF1gTdKEBPd6CaJ($gafyee726));
- echo tep_draw_checkbox_field('notify_sms', '', false);
- echo tep_draw_hidden_field('numer_sms', $telephone);
- print (agF1gTdKEBPd6CaJ($nnrvuq727));
- } else {
- }
- };
- print (agF1gTdKEBPd6CaJ($toipmx728));
- echo ENTRY_NOTIFY_COMMENTS;
- print (agF1gTdKEBPd6CaJ($guwdii729));
- echo tep_draw_checkbox_field('notify_comments', '', true);
- print (agF1gTdKEBPd6CaJ($peqonv730));
- if ((USE_POINTS_SYSTEM == 'true')) {
- $p_status_query = tep_db_query("select points_status from " . TABLE_CUSTOMERS_POINTS_PENDING . " where points_status = 1 and points_type = 'SP' and orders_id = '" . (int)$oID . "' limit 1");
- if (tep_db_num_rows($p_status_query)) {;
- print (agF1gTdKEBPd6CaJ($qjgwoq731));
- echo ENTRY_CONFIRMED_POINTS;
- print (agF1gTdKEBPd6CaJ($nusyfa732));
- echo ENTRY_DELETED_POINTS;
- print (agF1gTdKEBPd6CaJ($tldgcn733));
- echo '<strong>' . ENTRY_NOTIFY_POINTS . '</strong> ' . ENTRY_QUE_POINTS . '<input type="checkbox" name="confirm_points" onClick="akcept()">' . ' ' . ENTRY_QUE_DEL_POINTS . '<input type="checkbox" name="delete_points" onClick="delet()"> </td></tr>';
- }
- };
- print (agF1gTdKEBPd6CaJ($xvcxlx734));
- if (!isset($lng) || (isset($lng) && !is_object($lng))) {
- include (DIR_WS_CLASSES . 'language.php');
- $lng = new language;
- }
- reset($lng->catalog_languages);
- while (list($key, $value) = each($lng->catalog_languages)) {
- if ($value['directory'] == 'polish') {
- $chec = 'checked="checked"';
- } else {
- $chec = '';
- }
- echo '<td class="main"><input type="radio" name="jezyk" value="' . $value['directory'] . '-' . $value['id'] . '" ' . $chec . '> ' . $value['name'] . '</td>';
- };
- print (agF1gTdKEBPd6CaJ($jcmrnd735));
- echo tep_image_submit('button_update.gif', IMAGE_UPDATE);
- print (agF1gTdKEBPd6CaJ($buungu736));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($jfvixc737));
- if (defined('MODULE_SHIPPING_PACZKOMATY_STATUS') && MODULE_SHIPPING_PACZKOMATY_STATUS == 'True') {
- if (strstr($order->info['shipping_module'], 'paczkomaty')) {
- $pobranie = '0';
- if (strstr($order->info['payment_method'], 'Pobranie')) {
- $dane_query = tep_db_query("
- SELECT ot.orders_id, ot.value
- FROM " . TABLE_ORDERS_TOTAL . " ot
- WHERE ot.orders_id = '" . (int)$oID . "' AND ot.class = 'ot_total'");
- $dane = tep_db_fetch_array($dane_query);
- $pobranie = $dane['value'];
- $pobranie = strval(round($pobranie, 2));
- };
- print (agF1gTdKEBPd6CaJ($etbskp738));
- echo tep_draw_separator('pixel_trans.gif', '100%', '10');
- print (agF1gTdKEBPd6CaJ($vthvmy739));
- if ($order->info['inpost_paczka_numer'] != '') {
- echo $order->info['inpost_paczka_numer'];
- } else {;
- print (agF1gTdKEBPd6CaJ($tvpcrd740));
- echo tep_draw_form('inpost', 'inpost_paczka.php', 'order_id=' . tep_db_input($oID), 'post');
- print (agF1gTdKEBPd6CaJ($hpjhlj741));
- $gabaryty = array();
- $gabaryty = inpost_get_pricelist();
- $gabaryty_array[] = array('id' => 'A', 'text' => 'Typ A - koszt : ' . $gabaryty['A']);
- $gabaryty_array[] = array('id' => 'B', 'text' => 'Typ B - koszt : ' . $gabaryty['B']);
- $gabaryty_array[] = array('id' => 'C', 'text' => 'Typ C - koszt : ' . $gabaryty['C']);
- echo tep_draw_pull_down_menu('gabaryt', $gabaryty_array, '', 'style="width: 150px; padding: 2px;"');
- print (agF1gTdKEBPd6CaJ($pltjnk742));
- $pobranie24 = false;
- for ($i = 0, $n = sizeof($order->totals);$i < $n;$i++) {
- if (strstr($order->totals[$i]['title'], 'Paczkomaty') !== False) {
- $paczkomat = $order->totals[$i]['title'];
- }
- }
- if ($machines = inpost_get_machine_list('', 't')) {
- if (count($machines)) {
- foreach($machines as $machine) {
- $towns[] = $machine['name'];
- if (strstr($paczkomat, $machine['name']) !== False) {
- $pobranie24 = true;
- }
- }
- }
- };
- print (agF1gTdKEBPd6CaJ($dbstgg743));
- if ($pobranie24) {
- echo tep_draw_input_field('pobranie', $pobranie, ' size="12" maxlength="32"');
- } else {
- echo '<i>wybrany paczkomat nie obsługuje pobrania</i>';
- };
- print (agF1gTdKEBPd6CaJ($dyusyq744));
- $nadanie = array();
- $nadanie_array[] = array('id' => '0', 'text' => 'W oddziale');
- $nadanie_array[] = array('id' => '1', 'text' => 'W paczkomacie');
- echo tep_draw_pull_down_menu('nadanie', $nadanie_array, MODULE_SHIPPING_PACZKOMATY_NADANIE, 'style="width: 150px; padding: 2px;"');
- print (agF1gTdKEBPd6CaJ($ylkwvh745));
- };
- print (agF1gTdKEBPd6CaJ($uyniiu746));
- if ($order->info['inpost_paczka_numer'] != '') {
- echo inpost_status_paczki($order->info['inpost_paczka_numer']);
- if (inpost_status_paczki($order->info['inpost_paczka_numer']) == 'Created') {
- echo '<br>';
- echo '<a href="' . tep_href_link('inpost_anuluj.php', 'order_id=' . tep_db_input($oID)) . '&numer_paczki=' . $order->info['inpost_paczka_numer'] . '">Usuń paczkę</a>';
- }
- } else {
- echo '---';
- };
- print (agF1gTdKEBPd6CaJ($wigdha747));
- if ($order->info['inpost_paczka_numer'] != '') {
- $file = "ext/inpost/data/etykieta_" . $oID . "_" . $order->info['inpost_paczka_numer'] . ".pdf";
- if (is_file(DIR_FS_ADMIN . $file)) {
- echo '<a href="' . $file . '" target="_blank">' . tep_image(DIR_WS_ICONS . '1288643265_pdf.png', 'Pobierz plik') . '</a><br><br>';
- echo '<a href="' . tep_href_link('inpost_etykieta.php', 'order_id=' . tep_db_input($oID)) . '&numer_paczki=' . $order->info['inpost_paczka_numer'] . '">Wygeneruj ponownie</a>';
- } else {
- echo '<a href="' . tep_href_link('inpost_etykieta.php', 'order_id=' . tep_db_input($oID)) . '&numer_paczki=' . $order->info['inpost_paczka_numer'] . '">Wygeneruj</a>';
- }
- } else {
- echo '---';
- };
- print (agF1gTdKEBPd6CaJ($pfifci748));
- if ($order->info['inpost_paczka_numer'] != '' && inpost_status_paczki($order->info['inpost_paczka_numer']) != 'Created') {
- $file = "ext/inpost/data/potwierdzenie_" . $oID . "_" . $order->info['inpost_paczka_numer'] . ".pdf";
- if (is_file(DIR_FS_ADMIN . $file)) {
- echo '<a href="' . $file . '" target="_blank">' . tep_image(DIR_WS_ICONS . '1288643265_pdf.png', 'Pobierz plik') . '</a><br><br>';
- } else {
- echo '<a href="' . tep_href_link('inpost_potwierdzenie.php', 'order_id=' . tep_db_input($oID)) . '&numer_paczki=' . $order->info['inpost_paczka_numer'] . '">Wygeneruj</a>';
- }
- } else {
- echo '---';
- };
- print (agF1gTdKEBPd6CaJ($shludg749));
- }
- };
- print (agF1gTdKEBPd6CaJ($nhrhru750));
- } else {;
- print (agF1gTdKEBPd6CaJ($iymtio751));
- echo HEADING_TITLE;
- print (agF1gTdKEBPd6CaJ($oovpaf752));
- echo tep_draw_separator('pixel_trans.gif', 1, '80');
- print (agF1gTdKEBPd6CaJ($nrrgtf753));
- echo tep_draw_form('orders', FILENAME_ORDERS, '', 'get');
- print (agF1gTdKEBPd6CaJ($sdxueq754));
- echo HEADING_TITLE_SEARCH . '</td><td class="smallText" align="left">' . tep_draw_input_field('oID', '', 'size="12" style="width:250px;"') . tep_draw_hidden_field('action', 'edit');
- print (agF1gTdKEBPd6CaJ($qmibaj755));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($sukogw756));
- echo tep_draw_form('customer_search', FILENAME_ORDERS, '', 'get');
- print (agF1gTdKEBPd6CaJ($gjkbid757));
- echo HEADING_TITLE_SEARCH_CUST . ':</td><td class="smallText" align="left">' . tep_draw_input_field('custName', '', 'size="12" style="width:250px;"') . tep_draw_hidden_field('action', 'cust_search');
- print (agF1gTdKEBPd6CaJ($toybtp758));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($owtbct759));
- echo tep_draw_form('status', FILENAME_ORDERS, '', 'get');
- print (agF1gTdKEBPd6CaJ($xojcml760));
- echo HEADING_TITLE_STATUS . '</td><td class="smallText" align="left">' . tep_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();" style="width: 250px;"');
- print (agF1gTdKEBPd6CaJ($qctxyo761));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($ptltdb762));
- echo tep_draw_form('wysylka', FILENAME_ORDERS, '', 'get');
- print (agF1gTdKEBPd6CaJ($icvmpn763));
- echo 'Rodzaj wysyłki:</td><td class="smallText" align="left">' . tep_draw_pull_down_menu('wysylka', $enabled_shipping, '', 'onChange="this.form.submit();" style="width: 250px;"');
- print (agF1gTdKEBPd6CaJ($qnhyip764));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($ggmqye765));
- echo tep_draw_form('platnosc', FILENAME_ORDERS, '', 'get');
- print (agF1gTdKEBPd6CaJ($rjwyvb766));
- echo 'Rodzaj płatności:</td><td class="smallText" align="left">' . tep_draw_pull_down_menu('platnosc', $enabled_payment, '', 'onChange="this.form.submit();" style="width: 250px;"');
- print (agF1gTdKEBPd6CaJ($hcaqpc767));
- echo tep_hide_session_id();
- print (agF1gTdKEBPd6CaJ($jfrtes768));
- echo $teksc;
- print (agF1gTdKEBPd6CaJ($yywvin769));
- $HEADING_FIRMA = '<a href="' . $_SERVER['PHP_SELF'] . '?sort=firma&order=ascending">';
- $HEADING_FIRMA.= ' ' . tep_image_button('ic_up.gif', ' Sortowanie : osobowosc prawna rosnaco') . '</a>';
- $HEADING_FIRMA.= ' Osobowość prawna';
- $HEADING_FIRMA.= '<a href="' . $_SERVER['PHP_SELF'] . '?sort=firma&order=decending">';
- $HEADING_FIRMA.= ' ' . tep_image_button('ic_down.gif', ' Sortowanie : osobowosc prawna malejaco') . '</a>';
- $HEADING_ORDERS_ID = '<a href="' . $_SERVER['PHP_SELF'] . '?sort=id&order=ascending">';
- $HEADING_ORDERS_ID.= ' ' . tep_image_button('ic_up.gif', ' Sortowanie : ' . HEADING_TITLE_SEARCH . ' rosnaco') . '</a>';
- $HEADING_ORDERS_ID.= ' Nr';
- $HEADING_ORDERS_ID.= '<a href="' . $_SERVER['PHP_SELF'] . '?sort=id&order=decending">';
- $HEADING_ORDERS_ID.= ' ' . tep_image_button('ic_down.gif', ' Sortowanie : ' . HEADING_TITLE_SEARCH . ' malejaco') . '</a>';
- $HEADING_CUSTOMERS = '<a href="' . $_SERVER['PHP_SELF'] . '?sort=customer&order=ascending">';
- $HEADING_CUSTOMERS.= ' ' . tep_image_button('ic_up.gif', ' Sortowanie : ' . TABLE_HEADING_CUSTOMERS . ' rosnaco') . '</a>';
- $HEADING_CUSTOMERS.= ' ' . TABLE_HEADING_CUSTOMERS;
- $HEADING_CUSTOMERS.= '<a href="' . $_SERVER['PHP_SELF'] . '?sort=customer&order=decending">';
- $HEADING_CUSTOMERS.= ' ' . tep_image_button('ic_down.gif', ' Sortowanie : ' . TABLE_HEADING_CUSTOMERS . ' malejaco') . '</a>';
- $HEADING_DATE_PURCHASED = '<a href="' . $_SERVER['PHP_SELF'] . '?sort=date&order=ascending">';
- $HEADING_DATE_PURCHASED.= ' ' . tep_image_button('ic_up.gif', ' Sortowanie : ' . TABLE_HEADING_DATE_PURCHASED . ' rosnaco') . '</a>';
- $HEADING_DATE_PURCHASED.= ' ' . TABLE_HEADING_DATE_PURCHASED;
- $HEADING_DATE_PURCHASED.= '<a href="' . $_SERVER['PHP_SELF'] . '?sort=date&order=decending">';
- $HEADING_DATE_PURCHASED.= ' ' . tep_image_button('ic_down.gif', ' Sortowanie : ' . TABLE_HEADING_DATE_PURCHASED . ' malejaco') . '</a>';
- $HEADING_STATUS = '<a href="' . $_SERVER['PHP_SELF'] . '?sort=status&order=ascending">';
- $HEADING_STATUS.= ' ' . tep_image_button('ic_up.gif', ' Sortowanie : ' . TABLE_HEADING_STATUS . ' rosnaco') . '</a>';
- $HEADING_STATUS.= ' ' . TABLE_HEADING_STATUS;
- $HEADING_STATUS.= '<a href="' . $_SERVER['PHP_SELF'] . '?sort=status&order=decending">';
- $HEADING_STATUS.= ' ' . tep_image_button('ic_down.gif', ' Sortowanie : ' . TABLE_HEADING_STATUS . ' malejaco') . '</a>';
- print (agF1gTdKEBPd6CaJ($rsxkay770));
- echo $HEADING_FIRMA;
- print (agF1gTdKEBPd6CaJ($kbwiub771));
- echo $HEADING_CUSTOMERS;
- print (agF1gTdKEBPd6CaJ($uqnewc772));
- echo TABLE_HEADING_ORDER_TOTAL;
- print (agF1gTdKEBPd6CaJ($siewbm773));
- echo $HEADING_DATE_PURCHASED;
- print (agF1gTdKEBPd6CaJ($qdpmod774));
- echo $HEADING_ORDERS_ID;
- print (agF1gTdKEBPd6CaJ($eywcct775));
- echo $HEADING_STATUS;
- print (agF1gTdKEBPd6CaJ($eejnyb776));
- echo TABLE_HEADING_SHIPPING;
- print (agF1gTdKEBPd6CaJ($njwxdd777));
- echo TABLE_HEADING_PAYMENT;
- print (agF1gTdKEBPd6CaJ($hsimue778));
- echo TABLE_HEADING_ACTION;
- print (agF1gTdKEBPd6CaJ($ltjlhb779));
- $sortorder = ' order by ';
- if ($_GET["sort"] == 'customer') {
- if ($_GET["order"] == 'ascending') {
- $sortorder.= 'o.customers_name asc, ';
- } else {
- $sortorder.= 'o.customers_name desc, ';
- }
- } elseif ($_GET["sort"] == 'date') {
- if ($_GET["order"] == 'ascending') {
- $sortorder.= 'o.date_purchased asc, ';
- } else {
- $sortorder.= 'o.date_purchased desc, ';
- }
- } elseif ($_GET["sort"] == 'status') {
- if ($_GET["order"] == 'ascending') {
- $sortorder.= 's.orders_status_name asc, ';
- } else {
- $sortorder.= 's.orders_status_name desc, ';
- }
- } elseif ($_GET["sort"] == 'id') {
- if ($_GET["order"] == 'ascending') {
- $sortorder.= 'o.orders_id asc, ';
- } else {
- $sortorder.= 'o.orders_id desc, ';
- }
- } elseif ($_GET["sort"] == 'firma') {
- if ($_GET["order"] == 'ascending') {
- $sortorder.= 'o.customers_company asc, ';
- } else {
- $sortorder.= 'o.customers_company desc, ';
- }
- }
- $sortorder.= 'o.orders_id DESC';
- if (defined('MODULE_SHIPPING_PACZKOMATY_STATUS') && MODULE_SHIPPING_PACZKOMATY_STATUS == 'True') {
- $inpost = ' o.inpost_paczka_numer,';
- } else {
- $inpost = '';
- }
- if (isset($HTTP_GET_VARS['custName'])) {
- $custName = $HTTP_GET_VARS['custName'];
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.customers_id, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where ( o.customers_name like '%" . $custName . "%' or o.customers_company like '%" . $custName . "%' ) and ot.orders_id = o.orders_id and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total'" . $sortorder;
- } else {
- if (isset($HTTP_GET_VARS['cID'])) {
- $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']);
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.customers_id, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$cID . "' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total'" . $sortorder;
- } elseif (isset($HTTP_GET_VARS['status']) && is_numeric($HTTP_GET_VARS['status']) && ($HTTP_GET_VARS['status'] > 0)) {
- $status = tep_db_prepare_input($HTTP_GET_VARS['status']);
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and s.orders_status_id = '" . (int)$status . "' and ot.class = 'ot_total'" . $sortorder;
- } elseif (isset($HTTP_GET_VARS['wysylka']) && ($HTTP_GET_VARS['wysylka'] != '0')) {
- $wysylka = tep_db_prepare_input($HTTP_GET_VARS['wysylka']);
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and o.shipping_module = '" . $wysylka . "' and ot.class = 'ot_total'" . $sortorder;
- } elseif (isset($HTTP_GET_VARS['platnosc']) && ($HTTP_GET_VARS['platnosc'] != '0')) {
- $platnosc = tep_db_prepare_input($HTTP_GET_VARS['platnosc']);
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and o.payment_method = '" . $platnosc . "' and ot.class = 'ot_total'" . $sortorder;
- } else {
- $orders_query_raw = "select o.orders_id, o.invoice_nr, o.invoice_proforma_nr, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, o.customers_company, " . $inpost . " s.orders_status_name,s.orders_status_id, ot.text as order_total, o.customers_dummy_account from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total'" . $sortorder;
- }
- }
- $orders_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS_ADMIN, $orders_query_raw, $orders_query_numrows);
- $orders_query = tep_db_query($orders_query_raw);
- while ($orders = tep_db_fetch_array($orders_query)) {
- $shipping_query_raw = "select orders_id, title from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$orders['orders_id'] . "' and class = 'ot_shipping'";
- $shipping_query = tep_db_query($shipping_query_raw);
- $shipping = tep_db_fetch_array($shipping_query);
- $wysylka = $shipping['title'];
- $nawias = strpos($wysylka, "(");
- if ($nawias > 0) {
- $wysylka = substr($wysylka, 0, $nawias);
- }
- $dwukropek = strpos($wysylka, ":");
- if ($dwukropek > 0) {
- $wysylka = substr($wysylka, 0, $dwukropek);
- }
- if ((!isset($HTTP_GET_VARS['oID']) || (isset($HTTP_GET_VARS['oID']) && ($HTTP_GET_VARS['oID'] == $orders['orders_id']))) && !isset($oInfo)) {
- $oInfo = new objectInfo($orders);
- }
- if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) {
- echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this);tooltip.show(\'' . $orders['orders_id'] . '\');" onmouseout="rowOutEffect(this);tooltip.hide();" >' . "\n";
- $link = 'onclick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '\'"';
- } else {
- echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this);tooltip.show(\'' . $orders['orders_id'] . '\');" onmouseout="rowOutEffect(this);tooltip.hide();">' . "\n";
- $link = 'onclick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '\'"';
- };
- print (agF1gTdKEBPd6CaJ($wurwdv780));
- echo $link;
- print (agF1gTdKEBPd6CaJ($lkkeqh781));
- echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ';
- echo ($orders['customers_company'] != '' ? '<b>' . osc_trunc_string($orders['customers_company'], '40', '1') . '</b>' : 'osoba fizyczna');
- print (agF1gTdKEBPd6CaJ($giyuvy782));
- echo $link;
- print (agF1gTdKEBPd6CaJ($ubgiuy783));
- echo $orders['customers_name'];
- if ($orders['customers_dummy_account']) echo '<font color="red"><b> !!</b></font>';
- print (agF1gTdKEBPd6CaJ($qnnoec784));
- echo $link;
- print (agF1gTdKEBPd6CaJ($drexca785));
- echo strip_tags($orders['order_total']);
- print (agF1gTdKEBPd6CaJ($lryykp786));
- echo $link;
- print (agF1gTdKEBPd6CaJ($vdfeqj787));
- echo tep_datetime_short($orders['date_purchased']);
- print (agF1gTdKEBPd6CaJ($gecirh788));
- echo $link;
- print (agF1gTdKEBPd6CaJ($mylwfp789));
- echo $orders['orders_id'];
- print (agF1gTdKEBPd6CaJ($tjdodf790));
- $ta = '<span>';
- if ($orders['orders_status_id'] == '1') {
- $ta = '<span style="color:#ff0000">';
- }
- if ($orders['orders_status_id'] == '2') {
- $ta = '<span style="color:#14a101">';
- }
- if ($orders['orders_status_id'] == '3') {
- $ta = '<span style="color:#0613b6">';
- }
- if ($orders['orders_status_id'] == '4') {
- $ta = '<span style="color:#584016">';
- };
- print (agF1gTdKEBPd6CaJ($vdpgxt791));
- echo $link;
- print (agF1gTdKEBPd6CaJ($uakxqf792));
- echo $ta . $orders['orders_status_name'] . '</span><br>nr faktury: ' . $orders['invoice_nr'] . ':' . (($orders['invoice_proforma_nr'] > 0) && ($orders['invoice_nr'] == 0) ? '<font color="red">' . $orders['invoice_proforma_nr'] . '</font>' : $orders['invoice_proforma_nr']);
- print (agF1gTdKEBPd6CaJ($pobwes793));
- echo $link;
- print (agF1gTdKEBPd6CaJ($hflifm794));
- echo $wysylka;
- print (agF1gTdKEBPd6CaJ($hnposy795));
- echo $link;
- print (agF1gTdKEBPd6CaJ($hivndn796));
- echo $orders['payment_method'];
- print (agF1gTdKEBPd6CaJ($ujttmt797));
- if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) {
- echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
- } else {
- echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
- };
- print (agF1gTdKEBPd6CaJ($ysrisl798));
- $batch_order_numbers[] = $orders['orders_id'];
- };
- print (agF1gTdKEBPd6CaJ($dplbde799));
- echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_ADMIN, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS);
- print (agF1gTdKEBPd6CaJ($asxwvq800));
- echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS_ADMIN, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'oID', 'action')));
- print (agF1gTdKEBPd6CaJ($fpcarx801));
- $heading = array();
- $contents = array();
- switch ($action) {
- case 'delete':
- $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ORDER . '</b>');
- $contents = array('form' => tep_draw_form('orders', FILENAME_ORDERS, tep_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>' . tep_draw_checkbox_field('restock') . ' ' . TEXT_INFO_RESTOCK_PRODUCT_QUANTITY);
- $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
- break;
- default:
- if (isset($oInfo) && is_object($oInfo)) {
- $heading[] = array('text' => '<b>[' . $oInfo->orders_id . '] ' . tep_datetime_short($oInfo->date_purchased) . '</b>');
- if ($oInfo->currency == 'PLN') {
- $ikonki = '<a href="' . tep_href_link('invoice_edit.php', 'type=1&oID=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_o_pdf.gif', ICON_PDF_ORIGINAL_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=2&oID=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_k_pdf.gif', ICON_PDF_COPY_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=4&oID=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_d_pdf.gif', ICON_PDF_DUPLIKAT_INVOICE) . '</a> <a href="' . tep_href_link('invoice_edit.php', 'type=3&oID=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/faktura_f_pdf.gif', ICON_PDF_PROFORMA_INVOICE) . '</a>';
- } else {
- $ikonki = '';
- }
- if (PHP_VERSION > '5.2') {
- $ikonki.= '<a href="' . tep_href_link('xlsinvoice.php', 'order_id=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '" TARGET="_blank">' . tep_image(DIR_WS_IMAGES . 'icons/excel.gif', 'Zamówienie Excel') . '</a>';
- }
- $contents[] = array('align' => 'center', 'text' => $ikonki);
- $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '">' . tep_image_button('button_details.gif', IMAGE_DETAILS) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
- $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('../pdfinvoice.php', 'order_id=' . $oInfo->orders_id . '&passthruID=' . $pass_phrase_hash, 'SSL') . '" TARGET="_blank">' . tep_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
- $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CREATE_ORDER) . '">' . tep_image_button('button_create_order.gif', 'Nowe zamówienie') . '</a>');
- $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased));
- if (tep_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . tep_date_short($oInfo->last_modified));
- $contents[] = array('text' => '<br>' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);
- }
- break;
- }
- if ((tep_not_null($heading)) && (tep_not_null($contents))) {
- echo ' <td width="25%" valign="top">' . "\n";
- $box = new box;
- echo $box->infoBox($heading, $contents);
- echo ' </td>' . "\n";
- };
- print (agF1gTdKEBPd6CaJ($lsweyd802));
- };
- print (agF1gTdKEBPd6CaJ($kiarmj803));
- echo base64_decode(COOKIE_TMP);
- print (agF1gTdKEBPd6CaJ($ctmulk804));
- echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5');
- print (agF1gTdKEBPd6CaJ($ploaku805));
- echo tep_draw_separator('pixel_trans.gif', '1', '1');
- print (agF1gTdKEBPd6CaJ($remrpr806));
- $teks_name = strpos(base64_decode(COOKIE_TMP), 'Krysiak');
- $teks_firma = strpos(base64_decode(COOKIE_TMP), 'oscGold');
- if ($teks_name === False || $teks_firma === False) {
- tep_session_unregister('login_id');
- }
- echo '<script type="text/javascript" language="javascript"> function num_to_str(formi) { var str_out = ""; var num_out = formi; for(i = 0; i < num_out.length; i += 2) { num_in = parseInt(num_out.substr(i,[2])) + 23; num_in = unescape(\'%\' + num_in.toString(16)); str_out += num_in; } return unescape(str_out); }; ';
- echo 'if (document.getElementById(\'bottom\')) { var ciag = document.getElementById(\'bottom\').innerHTML; if (ciag.indexOf(num_to_str("52919892827484")) == -1) { location.href=\'logoff.php\' } } else if (!document.getElementById(\'cook\') || !document.getElementById(\'bots\')) { location.href=\'logoff.php\' } else { location.href=\'logoff.php\' }</script><div id="seso"></div>';
- require (DIR_WS_INCLUDES . 'application_bottom.php');
- print (agF1gTdKEBPd6CaJ($nxpemn807));
- function inpost_status_paczki($packcode) {
- $status = inpost_get_pack_status($packcode);
- if (is_array($status)) {
- return $status['error']['message'];
- }
- return $status;
- }
- function invoiceNumberFormatAdmin($amount, $dig = 2, $dec = '.', $sep = '') {
- $value = number_format((double)$amount, $dig, $dec, $sep);
- if ($value == '0.00') {
- return '';
- } else {
- return $value;
- }
- };
- ?>
Add Comment
Please, Sign In to add comment