return { 'error' => 'Illegal component' };
}
- my @args = $packet->{'args'} ? @{ $packet->{'args'} } : ();
+ my @args = $packet->{'args'} ? $packet->{'args'} : ();
if ( $session_comps{$comp} ) {
'Change billing address',
'Change service address',
'Change payment information',
+ 'Change packages',
'Change password(s)',
'Logout',
],
-<FONT SIZE="+1" COLOR="#ff0000"><? echo htmlspecialchars($error); ?><? if ($error) { echo '<BR><BR>'; } ?></FONT>
-
+<? if (isset($error)) { ?>
+ <FONT SIZE="+1" COLOR="#ff0000"><? echo htmlspecialchars($error); echo '<BR><BR>'; ?></FONT>
+<? } ?>
foreach ($menu_array AS $menu_item) {
if ( preg_match('/^\s*$/', $menu_item) ) {
- print_menu($submenu, $current_menu);
+ print_menu($submenu, $current_menu, $menu_disable);
$submenu = array();
} else {
$submenu[] = $menu_item;
}
}
- print_menu($submenu, $current_menu);
+ print_menu($submenu, $current_menu, $menu_disable);
- function print_menu($submenu_array, $current_menu) {
+ function print_menu($submenu_array, $current_menu, $menu_disable) {
if ( count($submenu_array) == 0 ) { return; }
$links = array();
echo '<ul>';
foreach ($links AS $link) {
$label = array_shift($labels);
- print_link($link, $label, $current_menu, array($link) );
- echo '</a></li>';
+ if ( in_array($label, $menu_disable) == 0) {
+ print_link($link, $label, $current_menu, array($link) );
+ echo '</a></li>';
+ }
}
echo '</ul>';
}
?>
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=1>
<TR>
+ <TH ALIGN="LEFT"> </TH>
<TH ALIGN="LEFT">Product</TH>
<TH ALIGN="LEFT">Status</TH>
<TH ALIGN="LEFT" COLSPAN=2>Service(s)</TH>
$rowspan = count($pkg['cust_svc']);
if ( $rowspan == 0 ) { $rowspan = 1; }
$td = '<TD ALIGN="LEFT" VALIGN="top" ROWSPAN="'. $rowspan. '">';
+
+ $change_link = '';
+ if ( in_array("Change packages", $menu_disable) == 0) {
+ $change_link = '<a href="packages_change.php?pkgnum=' . $pkg['pkgnum'] . '&pkg=' . $pkg['pkg_label'] . '">[change]</a>';
+ }
?>
<TR>
<TD COLSPAN=4 STYLE="border-top:1px solid #999999"></TD>
</TR>
<TR>
+ <? echo $td ?><? echo $change_link ?> </TD>
<? echo $td ?><? echo $pkg['pkg_label']; ?></TD>
<? echo $td ?>
<FONT COLOR="#<? echo $pkg['statuscolor'] ?>"><B>