diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-05-01 15:09:18 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-05-01 15:09:18 -0400 |
commit | afe6bb2515f2bde29a74c056221fd154dc10001f (patch) | |
tree | fa1439b142649a2cf5ddb263b9250e054f9fef4e /ng_selfservice | |
parent | 512dd310b4095d5163913acaeb9a6df34d882f6f (diff) |
RT#73993 - updated selfservice and ngselfservice to allow for the control of changes packages by agent.
Diffstat (limited to 'ng_selfservice')
-rw-r--r-- | ng_selfservice/elements/error.php | 5 | ||||
-rw-r--r-- | ng_selfservice/elements/menu.php | 12 | ||||
-rw-r--r-- | ng_selfservice/services.php | 7 |
3 files changed, 17 insertions, 7 deletions
diff --git a/ng_selfservice/elements/error.php b/ng_selfservice/elements/error.php index 2cff74f86..ee60c6e90 100644 --- a/ng_selfservice/elements/error.php +++ b/ng_selfservice/elements/error.php @@ -1,2 +1,3 @@ -<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> +<? } ?> diff --git a/ng_selfservice/elements/menu.php b/ng_selfservice/elements/menu.php index cb9d617c8..b68c8c18d 100644 --- a/ng_selfservice/elements/menu.php +++ b/ng_selfservice/elements/menu.php @@ -32,15 +32,15 @@ extract($skin_info); 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(); @@ -71,8 +71,10 @@ extract($skin_info); 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>'; } diff --git a/ng_selfservice/services.php b/ng_selfservice/services.php index ce47e9ea4..25fbdde4f 100644 --- a/ng_selfservice/services.php +++ b/ng_selfservice/services.php @@ -17,6 +17,7 @@ extract($list_pkgs); ?> <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> @@ -29,11 +30,17 @@ extract($list_pkgs); $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> |