summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-12-14 10:10:29 -0800
committerIvan Kohler <ivan@freeside.biz>2016-12-14 10:10:29 -0800
commit1de7a946746257c26097ea87ee4697d7fe6fd262 (patch)
tree5c56635f95e5a434cbafe5701d88584e15ea0d32
parent92066a1e4b35a3dbc5169387297087b5d0f87b6a (diff)
fix links for previous/next period inbound calls, RT#73652
-rw-r--r--fs_selfservice/FS-SelfService/cgi/view_cdr_details.html27
1 files changed, 15 insertions, 12 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html b/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
index d2be287ff..40eed80d8 100644
--- a/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
+++ b/fs_selfservice/FS-SelfService/cgi/view_cdr_details.html
@@ -13,22 +13,25 @@
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="50%">
-<%= if ($previous < $beginning) {
- $OUT .= qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
- $OUT .= qq!inbound=1;! if $inbound;
- $OUT .= qq!beginning=$previous;ending=$beginning">Previous period</A>!;
- }else{
+<%=
+ $ahref = qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
+ $ahref = qq!inbound=1;! if $inbound;
+ if ($previous < $beginning) {
+ $OUT .= $ahref.
+ qq!beginning=$previous;ending=$beginning">Previous period</A>!;
+ } else {
'';
- } %>
+ }
+%>
</TD>
<TD WIDTH="50%" ALIGN="right">
-<%= if ($next > $ending) {
- $OUT .= qq!<A HREF="${url}view_cdr_details;svcnum=$svcnum;!;
- $OUT .= qq!inbound=1;! if $inbound;
- $OUT .= qq!beginning=$ending;ending=$next">Next period</A>!;
- }else{
+<%=
+ if ($next > $ending) {
+ $OUT .= $ahref. qq!beginning=$ending;ending=$next">Next period</A>!;
+ } else {
'';
- }%>
+ }
+%>
</TD>
</TR>
</TABLE>