1 <? $title ='My Services'; include('elements/header.php'); ?>
2 <? $current_menu = 'services.php'; include('elements/menu.php'); ?>
5 $list_pkgs = $freeside->list_pkgs( array(
6 'session_id' => $_COOKIE['session_id'],
9 if ( isset($list_pkgs['error']) && $list_pkgs['error'] ) {
10 $error = $list_pkgs['error'];
11 header('Location:index.php?error='. urlencode($error));
18 <TABLE BORDER=0 CELLSPACING=2 CELLPADDING=1>
20 <TH ALIGN="LEFT">Product</TH>
21 <TH ALIGN="LEFT">Status</TH>
22 <TH ALIGN="LEFT" COLSPAN=2>Service(s)</TH>
23 <TH ALIGN="LEFT"></TH>
26 <? foreach ( $cust_pkg AS $pkg ) {
27 if ( $pkg['status'] == 'one-time charge' ) { continue; }
28 //$link = '<A HREF="ticket.php?'. $ticket['id']. '">';
29 $rowspan = count($pkg['cust_svc']);
30 if ( $rowspan == 0 ) { $rowspan = 1; }
31 $td = '<TD ALIGN="LEFT" VALIGN="top" ROWSPAN="'. $rowspan. '">';
34 <TD COLSPAN=4 STYLE="border-top:1px solid #999999"></TD>
37 <? echo $td ?><? echo $pkg['pkg_label']; ?></TD>
39 <FONT COLOR="#<? echo $pkg['statuscolor'] ?>"><B>
40 <? echo ucfirst($pkg['status']); ?>
42 <? if ( $pkg['status'] == 'active' && $pkg['bill'] ) { ?>
43 - renews on <? echo date('M jS Y', $pkg['bill']); ?>
47 foreach ( $pkg['cust_svc'] AS $svc ) {
48 $label = $svc['label'][0];
49 $value = $svc['label'][1];
50 $table = $svc['label'][2];
51 $svcnum = $svc['label'][3];
53 <? if ( $subsequent++ ) { echo '<TR>'; } ?>
54 <TD ALIGN="right"><? echo $label ?>: </TD>
55 <TD><? echo $value ?></TD>
63 <!-- <A HREF="services_new.php">Order a new service</A> -->
64 <FORM ACTION="services_new.php">
65 <INPUT TYPE="submit" VALUE="Order a new service">
68 <? include('elements/menu_footer.php'); ?>
69 <? include('elements/footer.php'); ?>