create prospects from towercoverage.com EUS, #39776
[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 <P>Hello <? echo htmlspecialchars($name); ?></P>
21
22 <? if ( $signupdate_pretty ) { ?>
23   <P>Thank you for being a customer since <? echo $signupdate_pretty; ?></P>
24 <? } ?>
25
26 <P>Your current balance is: <B>$<? echo $balance ?></B></P>
27
28 <? echo $announcement ?>
29
30 <!--
31 your open invoices if you have any & payment link if you have one.  more insistant if you're late?
32 <BR><BR>
33
34 your tickets.  some notification if there's new responses since your last login 
35 <BR><BR>
36
37 anything else?
38 -->
39
40 <? include('elements/menu_footer.php'); ?>
41 <? include('elements/footer.php'); ?>