0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
ropadefutbolbarata
/
[
Home
]
Name File: account.php
< back
<?php /* $Id: account.php 1739 2007-12-20 00:52:16Z 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 (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?> <!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'); ?> <script language="javascript"><!-- function rowOverEffect(object) { if (object.className == 'moduleRow') object.className = 'moduleRowOver'; } function rowOutEffect(object) { if (object.className == 'moduleRowOver') object.className = 'moduleRow'; } //--></script> </head> <body> <!-- header //--> <?php $tab_sel = 5; ?> <?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_top();?> <?php echo tep_draw_title_top();?> <?php echo HEADING_TITLE; ?> <?php echo tep_draw_title_bottom();?> <?php echo tep_draw1_top();?> <?php if ($messageStack->size('account') > 0) { ?> <table cellpadding="0" cellspacing="0" border="0"> <tr><td><?php echo $messageStack->output('account'); ?></td></tr> </table> <?php echo tep_pixel_trans();?> <?php } if (tep_count_customer_orders() > 0) { ?> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main indent_2"><b><?php echo OVERVIEW_TITLE; ?></b></td> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '"><u>' . OVERVIEW_SHOW_ALL_ORDERS . '</u></a>'; ?></td> </tr> </table> <?php echo tep_draw_infoBox_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main" align="center"><?php echo '<b>' . OVERVIEW_PREVIOUS_ORDERS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif','','','',' style="margin:0px 10px 0px 10px;"'); ?></td> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="vam_td"> <?php $orders_query = tep_db_query("select o.orders_id, o.date_purchased, o.delivery_name, o.delivery_country, o.billing_name, o.billing_country, ot.text as order_total, s.orders_status_name from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = ot.orders_id and ot.class = 'ot_total' and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and s.public_flag = '1' order by orders_id desc limit 3"); while ($orders = tep_db_fetch_array($orders_query)) { if (tep_not_null($orders['delivery_name'])) { $order_name = $orders['delivery_name']; $order_country = $orders['delivery_country']; } else { $order_name = $orders['billing_name']; $order_country = $orders['billing_country']; } ?> <tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="document.location.href='<?php echo tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL'); ?>'"> <td class="main" width="80" style="padding:5px 0px 5px 5px;"><?php echo tep_date_short($orders['date_purchased']); ?></td> <td class="main"><?php echo '#' . $orders['orders_id']; ?></td> <td class="main"><?php echo tep_output_string_protected($order_name) . ', ' . $order_country; ?></td> <td class="main"><?php echo $orders['orders_status_name']; ?></td> <td class="main" align="right"><?php echo $orders['order_total']; ?></td> <?php $button_text = '<a class="bg_button2" onMouseOut="this.id=\'bg_button2\';" onMouseOver="this.id=\'bg_button2\';" href="'. tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL').'">'.SMALL_IMAGE_BUTTON_VIEW.'</a>'; $button_img = '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $orders['orders_id'], 'SSL') . '">' . tep_image_button('button_view.png', SMALL_IMAGE_BUTTON_VIEW) . '</a>'; ?> <td class="main" align="right" style="padding:5px 5px 5px 5px;"><?php echo $button_img;?></a></td> </tr> <?php } ?> </table></td> </tr> </table> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_pixel_trans();?> <?php } ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><td class="main indent_2"><b><?php echo MY_ACCOUNT_TITLE; ?></b></td></tr> </table> <?php echo tep_draw_infoBox_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_personal.gif','','','',' style="margin:0px 10px 0px 10px;"'); ?></td> <td width="100%"><table border="0" width="100%" cellspacing="4" cellpadding="2"> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></td> </tr> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></td> </tr> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></td> </tr> </table></td> </tr> </table> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_pixel_trans();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr><td class="main indent_2"><b><?php echo MY_ORDERS_TITLE; ?></b></td></tr> </table> <?php echo tep_draw_infoBox_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_orders.gif','','','',' style="margin:0px 10px 0px 10px;"'); ?></td> <td width="100%"><table border="0" width="100%" cellspacing="4" cellpadding="2"> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></td> </tr> </table></td> </tr> </table> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_pixel_trans();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main indent_2"><b><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></b></td> </tr> </table> <?php echo tep_draw_infoBox_top();?> <table border="0" width="100%" cellspacing="0" cellpadding="2"><tr> <td width="60"><?php echo tep_image(DIR_WS_IMAGES . 'account_notifications.gif','','','',' style="margin:0px 10px 0px 10px;"'); ?></td> <td width="100%"><table border="0" width="100%" cellspacing="4" cellpadding="2"> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></td> </tr> <tr> <td class="main img_middle"><?php echo tep_image(DIR_WS_IMAGES . 'arrow_green.gif') . ' <a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></td> </tr> </table></td> </tr> </table> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_draw1_bottom();?> <?php echo tep_draw_bottom();?> </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