Ticket #2916 Debian packages
[freeside.git] / ng_selfservice / main.php
1 <? $title ='My Account'; include('elements/header.php'); ?>
2 <? $current_menu = 'main.php'; include('elements/menu.php'); ?>
3 <?
4
5 $customer_info = $freeside->customer_info_short( array(
6   'session_id' => $_COOKIE['session_id'],
7 ) );
8
9
10 if ( isset($customer_info['error']) && $customer_info['error'] ) {
11   $error = $customer_info['error'];
12   header('Location:index.php?error='. urlencode($error));
13   die();
14 }
15
16 extract($customer_info);
17
18 ?>
19
20 Hello <? echo htmlspecialchars($name); ?><BR><BR>
21
22 <? if ( $signupdate_pretty ) { ?>
23   Thank you for being a customer since <? echo $signupdate_pretty; ?><BR><BR>
24 <? } ?>
25
26 Your current balance is: <B>$<? echo $balance ?></B><BR><BR>
27
28 <!--
29 your open invoices if you have any & payment link if you have one.  more insistant if you're late?
30 <BR><BR>
31
32 your tickets.  some notification if there's new responses since your last login 
33 <BR><BR>
34
35 anything else?
36 -->
37
38 <? include('elements/menu_footer.php'); ?>
39 <? include('elements/footer.php'); ?>