$title ='My Services'; include('elements/header.php'); ?>
$current_menu = 'services.php'; include('elements/menu.php'); ?>
$list_pkgs = $freeside->list_pkgs( array(
'session_id' => $_COOKIE['session_id'],
) );
if ( isset($list_pkgs['error']) && $list_pkgs['error'] ) {
$error = $list_pkgs['error'];
header('Location:index.php?error='. urlencode($error));
die();
}
extract($list_pkgs);
?>
Product |
Status |
Service(s) |
|
foreach ( $cust_pkg AS $pkg ) {
if ( $pkg['status'] == 'one-time charge' ) { continue; }
//$link = '';
$rowspan = count($pkg['cust_svc']);
if ( $rowspan == 0 ) { $rowspan = 1; }
$td = '';
?>
|
|
echo $td ?> echo $pkg['pkg_label']; ?>
echo $td ?>
echo ucfirst($pkg['status']); ?>
if ( $pkg['status'] == 'active' && $pkg['bill'] ) { ?>
- renews on echo date('M jS Y', $pkg['bill']); ?>
} ?>
$subsequent = 0;
foreach ( $pkg['cust_svc'] AS $svc ) {
$label = $svc['label'][0];
$value = $svc['label'][1];
$table = $svc['label'][2];
$svcnum = $svc['label'][3];
?>
if ( $subsequent++ ) { echo '
'; } ?>
echo $label ?>: |
echo $value ?> |
} ?>
} ?>
include('elements/menu_footer.php'); ?>
include('elements/footer.php'); ?>