[freeside-commits] freeside/httemplate/search report_cdr.html, 1.15, 1.16 cdr.html, 1.26, 1.27

Ivan,,, ivan at wavetail.420.am
Mon May 2 09:24:52 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv32347

Modified Files:
	report_cdr.html cdr.html 
Log Message:
lastapp searching, RT#12181

Index: report_cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/report_cdr.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -d -r1.15 -r1.16
--- report_cdr.html	25 Oct 2010 00:28:41 -0000	1.15
+++ report_cdr.html	2 May 2011 16:24:50 -0000	1.16
@@ -70,9 +70,16 @@
   </TR>
 
   <TR>
-    <TD ALIGN="right">Charged Party or Source #: </TD>
+    <TD ALIGN="right">Last Application: </TD>
     <TD>
-      <INPUT TYPE="text" NAME="charged_party_or_src" VALUE="<% join(',', @charged_party_or_src ) |h %>" >
+      <INPUT TYPE="text" NAME="lastapp" VALUE="" >
+    </TD>
+  </TR>
+
+  <TR>
+    <TD ALIGN="right">Freeside service #: </TD>
+    <TD>
+      <INPUT TYPE="text" NAME="svcnum" VALUE="<% join(',', @svcnum ) %>" >
     </TD>
   </TR>
 

Index: cdr.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cdr.html,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -w -d -r1.26 -r1.27
--- cdr.html	10 Apr 2011 18:04:12 -0000	1.26
+++ cdr.html	2 May 2011 16:24:50 -0000	1.27
@@ -182,7 +182,7 @@
 if ( $cgi->param('dcontext') =~ /^\s*(.+)\s*$/ ) {
   my $dcontext = $1;
   $hashref->{'dcontext'} = $dcontext;
-  push @search, "dcontext = '$dcontext'";
+  push @search, 'dcontext = '. dbh->quote($dcontext);
 }
 
 if ( $cgi->param('charged_party') ) {
@@ -208,6 +208,12 @@
   push @qsearch, $search;
 }
 
+if ( $cgi->param('lastapp') =~ /^\s*(.+)\s*$/ ) {
+  my $lastapp = $1;
+  $hashref->{'lastapp'} = $lastapp;
+  push @search, 'lastapp = '. dbh->quote($lastapp);
+}
+
 if ( $cgi->param('svcnum') =~ /^([\d, ]+)$/ ) {
   my $svcnum = $1;
   my $search = "svcnum IN ($svcnum)";



More information about the freeside-commits mailing list