X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fview_usage_details.html;h=27afe12a701fe7f3716b85cbce2fe65eed3f2da3;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hp=afa99ffb5ecf54d11409e3a2d63086b9a18365d5;hpb=c83d3328b27ea804fe6a15ea3e9daf032f0b197e;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/view_usage_details.html b/fs_selfservice/FS-SelfService/cgi/view_usage_details.html
index afa99ffb5..27afe12a7 100644
--- a/fs_selfservice/FS-SelfService/cgi/view_usage_details.html
+++ b/fs_selfservice/FS-SelfService/cgi/view_usage_details.html
@@ -1,10 +1,10 @@
-
MyAccount
-MyAccount
-<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
-
-Service usage details
+<%= $url = "$selfurl?;action="; ''; %>
+<%= include('header', 'Service usage details for '.
+ Date::Format::time2str('%b %o %Y', $beginning).
+ ' - '.
+ Date::Format::time2str('%b %o %Y', $ending)
+ )
+%>
<%= if ( $error ) {
$OUT .= qq!$error
!;
@@ -47,7 +47,9 @@
$OUT .= ' | ';
$OUT .= Date::Format::time2str('%T%P %a %b %o %Y', $usage->{'acctstarttime'});
$OUT .= ' | ';
- my $duration = $usage->{'acctstoptime'} - $usage->{'acctstarttime'};
+ my $duration = ( $usage->{'acctstoptime'} && $usage->{'acctstarttime'} )
+ ? ( $usage->{'acctstoptime'} - $usage->{'acctstarttime'} )
+ : 0;
$total += $duration;
my $h = int($duration/3600);
my $m = sprintf("%02d", int(($duration % 3600) / 60));
@@ -65,7 +67,7 @@
my $m = sprintf("%02d", int(($total % 3600) / 60));
my $s = sprintf("%02d", $total % 60);
$OUT .= qq! | | | !;
- $OUT .= qq!======== | ! x 3;
+ $OUT .= qq!
| ! x 3;
$OUT .= qq!
!;
$OUT .= qq! | | $h:$m:$s | !;
$OUT .= qq!!;
@@ -77,7 +79,4 @@
- |
-
-powered by freeside
-
+<%= include('footer') %>