diff options
author | ivan <ivan> | 2010-02-21 22:55:13 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-21 22:55:13 +0000 |
commit | a6c0ee2ce16aa6edad33242e802b1388519a8faf (patch) | |
tree | 9353c7326dd4e2c4b776b0e1aa1fbacab8b47b68 /httemplate/view | |
parent | fc90ea523e28e68090d098063b26557c5de0bcf6 (diff) |
communigate forwarders, RT#7083
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/svc_forward.cgi | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/httemplate/view/svc_forward.cgi b/httemplate/view/svc_forward.cgi index 0847a5e65..43d8a4e8b 100755 --- a/httemplate/view/svc_forward.cgi +++ b/httemplate/view/svc_forward.cgi @@ -1,12 +1,26 @@ -<% include('/elements/header.html', 'Mail Forward View', menubar( - ( ( $pkgnum || $custnum ) - ? ( "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum", - ) - : ( "Cancel this (unaudited) mail forward" => - "${p}misc/cancel-unaudited.cgi?$svcnum" ) - ) -)) -%> +% if ( $custnum ) { + + <% include("/elements/header.html","View mail forward") %> + <% include( '/elements/small_custview.html', $custnum, '', 1, + "${p}view/cust_main.cgi") %> + <BR> + +% } else { + + <% include("/elements/header.html",'View mail forward', menubar( + "Cancel this (unaudited) mail forward" => + "javascript:areyousure('${p}misc/cancel-unaudited.cgi?$svcnum')", + )) + %> + + <SCRIPT> + function areyousure(href) { + if (confirm("Permanently delete this mail forward?") == true) + window.location.href = href; + } + </SCRIPT> + +% } <A HREF="<% $p %>edit/svc_forward.cgi?<% $svcnum %>">Edit this information</A> |