import torrus 1.0.9
[freeside.git] / fs_selfservice / fri / modules / dashboard.module
index 6fd24e0..62d6de4 100644 (file)
@@ -46,8 +46,6 @@ class dashboard {
    */
   function display($args) {
 
-    global $ARI_HELP_FEATURE_CODES;
-
     $display = new Display();
 
     // args
@@ -86,9 +84,11 @@ class dashboard {
     
     if ( $fs_info['balance'] > 0 ) {
   
-      // XXX correct URL
-      $ret .= '<B><A HREF="'. $url.
-              'make_payment">Make a payment</A></B><BR><BR>';
+      #$ret .= '<B><A HREF="'. $_SESSION['ARI_ROOT'].
+      #        '?m=billing&f=make_payment">Make a payment</A></B><BR><BR>';
+      $ret .= '<B><A HREF="/selfservice/selfservice.cgi?session='.
+              $_SESSION['freeside_session_id'].
+              ';action=make_payment">Make a payment</A></B><BR><BR>';
 
     }
 
@@ -97,7 +97,9 @@ class dashboard {
   
       $ret .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
               '<TR><TH BGCOLOR="#ff6666" COLSPAN=5>Open Invoices</TH></TR>';
-      $link = '<A HREF="'. $url. 'myaccount'; // #XXX url
+      $link = '<A HREF="'. $_SESSION['ARI_ROOT'].
+              '?m=billing&f=view_invoice&invnum=';
+      
       $col1 = "eeeeee";
       $col2 = "cccccc";
       $col = $col1;
@@ -107,8 +109,7 @@ class dashboard {
         $invoice = $i[value];
   
         $td = '<TD BGCOLOR="#'. $col. '">';
-        $a  = '<A HREF="'. $url. 'view_invoice;invnum='.
-              $invoice['invnum']. '">';
+        $a  = $link. $invoice['invnum']. '">';
         $ret .=
           "<TR>$td$a". 'Invoice #'. $invoice['invnum']. "</A></TD>$td</TD>".
           "$td$a". $invoice['date']. "</A></TD>$td</TD>".
@@ -129,8 +130,8 @@ class dashboard {
       $ret .= 'You have no outstanding invoices.<BR><BR>';
     }
 
-    $ret .= 'Received calls (10)<br><br>';
-    $ret .= 'Placed calls (10)';
+    #$ret .= 'Received calls (10)<br><br>';
+    #$ret .= 'Placed calls (10)';
 
 //    if ( @tickets ) {
 //      $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.