X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fview_usage_details.html;h=27afe12a701fe7f3716b85cbce2fe65eed3f2da3;hb=8f1188e8550992bf3d9078e7a6042420eaf92bd5;hp=74a4c3d12c8596a412dcd4f554c240f3d68a9aae;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;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 74a4c3d12..27afe12a7 100644
--- a/fs_selfservice/FS-SelfService/cgi/view_usage_details.html
+++ b/fs_selfservice/FS-SelfService/cgi/view_usage_details.html
@@ -1,13 +1,10 @@
-
MyAccount
-MyAccount
-<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
-
-Service usage details for
-<%= Date::Format::time2str('%b %o %Y', $beginning) %> -
-<%= Date::Format::time2str('%b %o %Y', $ending) %>
-
+<%= $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
!;
@@ -50,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));
@@ -80,7 +79,4 @@
- |
-
-powered by freeside
-
+<%= include('footer') %>