0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
ropadefutbolbarata.hacked
/
[
Home
]
Name File: checkout_success.php
< back
<?php /* $Id: checkout_success.php 1749 2007-12-21 04:23:36Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // if the customer is not logged on, redirect them to the shopping cart page if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { $notify_string = ''; if (isset($HTTP_POST_VARS['notify']) && !empty($HTTP_POST_VARS['notify'])) { $notify = $HTTP_POST_VARS['notify']; if (!is_array($notify)) { $notify = array($notify); } for ($i=0, $n=sizeof($notify); $i<$n; $i++) { if (is_numeric($notify[$i])) { $notify_string .= 'notify[]=' . $notify[$i] . '&'; } } if (!empty($notify_string)) { $notify_string = 'action=notify&' . substr($notify_string, 0, -1); } } tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); $breadcrumb->add(NAVBAR_TITLE_1); $breadcrumb->add(NAVBAR_TITLE_2); $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'"); $global = tep_db_fetch_array($global_query); if ($global['global_product_notifications'] != '1') { $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); $products_array = array(); $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name"); while ($products = tep_db_fetch_array($products_query)) { $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']); } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <?php require(DIR_WS_INCLUDES . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_includes.php'); ?> </head> <body> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php include(DIR_WS_BOXES . 'panel_top.php');?><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?> <?php echo tep_draw_top();?> <?php echo tep_draw_title_top();?> <?php echo HEADING_TITLE; ?> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td valign="top" class="main" style="padding:0px 0px 20px 0px;"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_on_board.gif', HEADING_TITLE, '', '', ' align="left" style="margin:0px 20px 0px 0px;"'); ?><?php echo TEXT_SUCCESS; ?></td></tr> </table> <?php echo tep_pixel_trans();?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td class="main"> <?php if ($global['global_product_notifications'] != '1') { echo '<br><br><br>'.tep_draw_infoBox_top(); $products_displayed = array(); for ($i=0, $n=sizeof($products_array); $i<$n; $i++) { if (!in_array($products_array[$i]['id'], $products_displayed)) { echo '<div class="ofh productsNotifications"><div class="fl_left">'. tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . '</div><div class="fl_left">' . $products_array[$i]['text'] . '</div></div>'; $products_displayed[] = $products_array[$i]['id']; } } echo tep_draw_infoBox_bottom().'</p>'; } else { echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER; } ?> </tr> <tr><td class="main"><br><b><?php echo TEXT_THANKS_FOR_SHOPPING; ?></b></td></tr> </table> <?php echo tep_pixel_trans();?> <?php echo tep_draw_infoBox2_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td align="right" class="main"><?php echo tep_image_submit('button_continue.png', IMAGE_BUTTON_CONTINUE); ?></td></tr> </table> <?php echo tep_draw_infoBox2_bottom();?> <?php echo tep_pixel_trans();?> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="25%" class="vam"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%" class="vam" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td> <td width="50%" class="vam"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> </tr> </table></td> <td width="25%" class="vam"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%" class="vam"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="25%" class="vam"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="50%" class="vam"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td> <td width="50%" class="vam"><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td> </tr> </table></td> </tr> <tr> <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_DELIVERY; ?></td> <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_PAYMENT; ?></td> <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td> <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td> </tr> </table></td> </tr> <?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?> </table> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> </form></td> <!-- body_text_eof //--> <td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> <?php require(DIR_WS_INCLUDES . 'footer_includes.php'); ?> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
©
2018. | Recode by D7net