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"> </TH>
21 <TH ALIGN="LEFT">Product</TH>
22 <TH ALIGN="LEFT">Status</TH>
23 <TH ALIGN="LEFT" COLSPAN=2>Service(s)</TH>
24 <TH ALIGN="LEFT"></TH>
27 <? foreach ( $cust_pkg AS $pkg ) {
28 if ( $pkg['status'] == 'one-time charge' ) { continue; }
29 //$link = '<A HREF="ticket.php?'. $ticket['id']. '">';
30 $rowspan = count($pkg['cust_svc']);
31 if ( $rowspan == 0 ) { $rowspan = 1; }
32 $td = '<TD ALIGN="LEFT" VALIGN="top" ROWSPAN="'. $rowspan. '">';
35 if ( in_array("Change packages", $menu_disable) == 0) {
36 $change_link = '<a href="packages_change.php?pkgnum=' . $pkg['pkgnum'] . '">[change]</a>';
40 <TD COLSPAN=4 STYLE="border-top:1px solid #999999"></TD>
43 <? echo $td ?><? echo $change_link ?> </TD>
44 <? echo $td ?><? echo htmlspecialchars($pkg['pkg_label']); ?></TD>
46 <FONT COLOR="#<? echo $pkg['statuscolor'] ?>"><B>
47 <? echo ucfirst($pkg['status']); ?>
49 <? if ( $pkg['status'] == 'active' && $pkg['bill'] ) { ?>
50 - renews on <? echo date('M jS Y', $pkg['bill']); ?>
54 foreach ( $pkg['cust_svc'] AS $svc ) {
55 $label = $svc['label'][0];
56 $value = $svc['label'][1];
57 $table = $svc['label'][2];
58 $svcnum = $svc['label'][3];
60 <? if ( $subsequent++ ) { echo '<TR>'; } ?>
61 <TD ALIGN="right"><? echo $label ?>: </TD>
62 <TD><? echo $value ?></TD>
70 <!-- <A HREF="services_new.php">Order a new service</A> -->
71 <FORM ACTION="services_new.php">
72 <INPUT TYPE="submit" VALUE="Order a new service">
75 <? include('elements/menu_footer.php'); ?>
76 <? include('elements/footer.php'); ?>