summaryrefslogtreecommitdiff
path: root/httemplate/view/svc_acct.cgi
diff options
context:
space:
mode:
authorivan <ivan>2002-07-06 08:50:48 +0000
committerivan <ivan>2002-07-06 08:50:48 +0000
commitbc53d77e5cd5543a76bb38aa2acf96fbfa61714d (patch)
tree0dd4f76ff6edb0786bf186d6625b7a813fe00be9 /httemplate/view/svc_acct.cgi
parent86bf1d97a86661716d2d0276b28985c24180153b (diff)
add "are you sure?" javascript on view/svc_acct.cgi "cancel unaudited account"
(closes: Bug#432)
Diffstat (limited to 'httemplate/view/svc_acct.cgi')
-rwxr-xr-xhttemplate/view/svc_acct.cgi17
1 files changed, 14 insertions, 3 deletions
diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi
index fd2a32547..f6c1b026c 100755
--- a/httemplate/view/svc_acct.cgi
+++ b/httemplate/view/svc_acct.cgi
@@ -39,16 +39,27 @@ if ( $svc_acct->domsvc ) {
$domain = $mydomain;
}
-print header('Account View', menubar(
+%>
+
+<SCRIPT>
+function areyousure(href) {
+ if (confirm("Permanently delete this account?") == true)
+ window.location.href = href;
+}
+</SCRIPT>
+
+<%= header('Account View', menubar(
( ( $pkgnum || $custnum )
? ( "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum",
"View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ( "Cancel this (unaudited) account" =>
- "${p}misc/cancel-unaudited.cgi?$svcnum" )
+ "javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')" )
),
"Main menu" => $p,
-));
+)) %>
+
+<%
#print qq!<BR><A HREF="../misc/sendconfig.cgi?$svcnum">Send account information</A>!;