projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
self-service access for contacts, RT#25533
[freeside.git]
/
fs_selfservice
/
FS-SelfService
/
cgi
/
view_cdr_details.html
diff --git
a/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
b/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
index
6d4d847
..
f396682
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
+++ b/
fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
@@
-1,5
+1,5
@@
-<%=
$url = "$selfurl?session=$session_id;action="; ''; %>
-
<%= include('header', 'Call usage
for '.
+<%=
include('header', ($inbound ? 'Received calls' : 'Dialed calls' ) .
+
'
for '.
Date::Format::time2str('%b %o %Y', $beginning).
' - '.
Date::Format::time2str('%b %o %Y', $ending)
Date::Format::time2str('%b %o %Y', $beginning).
' - '.
Date::Format::time2str('%b %o %Y', $ending)
@@
-9,7
+9,7
@@
<%= if ( $error ) {
$OUT .= qq!<FONT SIZE="+1" COLOR="#ff0000">$error</FONT><BR><BR>!;
} ''; %>
<%= if ( $error ) {
$OUT .= qq!<FONT SIZE="+1" COLOR="#ff0000">$error</FONT><BR><BR>!;
} ''; %>
-
+
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="50%">
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="50%">
@@
-32,9
+32,11
@@
</TABLE>
<TABLE BGCOLOR="#cccccc">
<TR>
</TABLE>
<TABLE BGCOLOR="#cccccc">
<TR>
-<%= foreach my $header (@header) {
- $OUT .= qq(<TH ALIGN="right">$header</TH>);
- }
+<%= $space = '<TD> </TD>';
+ $OUT .= join($space,
+ map { '<TH ALIGN="right">'.$_.'</TH>' }
+ @header
+ )
%>
</TR>
<%= my $total = 0;
%>
</TR>
<%= my $total = 0;
@@
-42,7
+44,9
@@
my $dtotal = 0;
foreach my $usage ( @usage ) {
$OUT .= '<TR>';
my $dtotal = 0;
foreach my $usage ( @usage ) {
$OUT .= '<TR>';
- $OUT .= qq(<TD>$_</TD>) foreach @{$usage};
+ $OUT .= join($space,
+ map { "<TD>$_</TD>" } @{$usage}
+ );
$OUT .= '</TR>';
}
%>
$OUT .= '</TR>';
}
%>
@@
-50,5
+54,4
@@
</TABLE>
<BR>
</TABLE>
<BR>
-</TD></TR></TABLE>
<%= include('footer') %>
<%= include('footer') %>