selfservice, TNG, RT#22193
[freeside.git] / ng_selfservice / main.php
diff --git a/ng_selfservice/main.php b/ng_selfservice/main.php
new file mode 100644 (file)
index 0000000..792c961
--- /dev/null
@@ -0,0 +1,39 @@
+<? $title ='My Account'; include('elements/header.php'); ?>
+<? $current_menu = 'main.php'; include('elements/menu.php'); ?>
+<?
+
+$customer_info = $freeside->customer_info_short( array(
+  'session_id' => $_COOKIE['session_id'],
+) );
+
+
+if ( isset($customer_info['error']) && $customer_info['error'] ) {
+  $error = $customer_info['error'];
+  header('Location:index.php?error='. urlencode($error));
+  die();
+}
+
+extract($customer_info);
+
+?>
+
+Hello <? echo htmlspecialchars($name); ?><BR><BR>
+
+<? if ( $signupdate_pretty ) { ?>
+  Thank you for being a customer since <? echo $signupdate_pretty; ?><BR><BR>
+<? } ?>
+
+Your current balance is: <B>$<? echo $balance ?></B><BR><BR>
+
+<!--
+your open invoices if you have any & payment link if you have one.  more insistant if you're late?
+<BR><BR>
+
+your tickets.  some notification if there's new responses since your last login 
+<BR><BR>
+
+anything else?
+-->
+
+<? include('elements/menu_footer.php'); ?>
+<? include('elements/footer.php'); ?>