Location: PHPKode > projects > eclime > eclime-1.1.3b/catalog/account.php
<?php
require_once ( 'includes/application_top.php' );
@include_once ( DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT);

if ( false == tep_session_is_registered('customer_id') ) {
	$navigation->set_snapshot();
	$messageStack->add_session('login', sprintf(TEXT_LOGIN_FIRST, tep_href_link(FILENAME_CREATE_ACCOUNT)), 'success');
	tep_redirect(tep_href_link(FILENAME_LOGIN, 'my_account_f=' . $_GET['my_account_f'], 'SSL'));
}

require_once ( DIR_WS_FUNCTIONS . '/' . FILENAME_ACCOUNT);



$content = CONTENT_ACCOUNT;
$smarty->assign('my_account_active', ' class="active"');

##### GIFT CARD START
$gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'");
$gv_result = tep_db_fetch_array($gv_query);
$gv_amount = $gv_result['amount'];
##### GIFT CARD END

$smarty->assign('RECENT_ORDERS', tep_get_recent_orders(30));

$smarty->assign('HEADER_TITLE', HEADING_TITLE);

$smarty->assign('URL_GV_CARD', tep_href_link(FILENAME_GV_CARD, '', 'SSL'));
$smarty->assign('MY_GIFT_CARD', MY_GIFT_CARD);

$smarty->assign('URL_SHOPPING_CART', tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));
$smarty->assign('MY_SHOPPING_CART', MY_SHOPPING_CART);

$smarty->assign('URL_WISHLIST', tep_href_link(FILENAME_WISHLIST, '', 'SSL'));
$smarty->assign('MY_WISHLIST', MY_WISHLIST);

$smarty->assign('URL_ACCOUNT_HISTORY', tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
$smarty->assign('MY_ORDERS_VIEW', MY_ORDERS_VIEW);

$smarty->assign('URL_ADDRESS_BOOK', tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL'));
$smarty->assign('MY_ACCOUNT_ADDRESS_BOOK', MY_ACCOUNT_ADDRESS_BOOK);

$smarty->assign('URL_ACCOUNT_EDIT', tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL'));
$smarty->assign('MY_ACCOUNT_INFORMATION', MY_ACCOUNT_INFORMATION);

$smarty->assign('URL_ACCOUNT_PASSWORD', tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'));
$smarty->assign('MY_ACCOUNT_PASSWORD', MY_ACCOUNT_PASSWORD);

$smarty->assign('URL_ACCOUNT_NEWSLETTERS', tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'));
$smarty->assign('EMAIL_NOTIFICATIONS_NEWSLETTERS', EMAIL_NOTIFICATIONS_NEWSLETTERS);

$smarty->assign('count_customer_orders', tep_count_customer_orders());
$smarty->assign('count_shopping_cart_contents', $cart->count_contents());

$smarty->assign('gv_amount', $gv_amount);
$smarty->assign('gv_amount_show', $currencies->display_price($gv_amount, 1));
$smarty->assign('messagestack', $messageStack->get_messages());

require_once ( DIR_WS_INCLUDES . 'meta_tags.php' );

$page_content = $smarty->fetch('account.tpl' );
$smarty->assign('page_content', $page_content);

require_once ( DIR_WS_INCLUDES . 'application_bottom.php' );
$smarty->display('common/page.tpl' );
?>
Return current item: eclime