[freeside-commits] freeside/httemplate/search svc_broadband.cgi, 1.4, 1.4.2.1
Ivan,,,
ivan at wavetail.420.am
Tue Sep 18 14:37:38 PDT 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv20091
Modified Files:
Tag: FREESIDE_1_7_BRANCH
svc_broadband.cgi
Log Message:
fix svc_broadband search by svcpart (links from browse/part_svc, in particular
Index: svc_broadband.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/svc_broadband.cgi,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- svc_broadband.cgi 3 Feb 2007 11:36:30 -0000 1.4
+++ svc_broadband.cgi 18 Sep 2007 21:37:35 -0000 1.4.2.1
@@ -28,11 +28,12 @@
%
%} elsif ( $cgi->param('svcpart') =~ /^(\d+)$/ ) {
%
-% @svc_broadband =
-% qsearch( 'svc_broadband', {}, '',
-% " WHERE $1 = ( SELECT svcpart FROM cust_svc ".
-% " WHERE cust_svc.svcnum = svc_external.svcnum ) "
-% );
+% @svc_broadband = qsearch( {
+% 'table' => 'svc_broadband',
+% 'addl_from' => 'LEFT JOIN cust_svc USING svcnum',
+% 'extra_sql' => "WHERE svcpart = $1",
+% }
+% );
%
%} elsif ( $cgi->param('ip_addr') =~ /^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})$/ ) {
% my $ip_addr = $1;
@@ -54,14 +55,14 @@
<!-- mason kludge -->
%
-% eidiot "No matching ip address found!\n";
+% eidiot "No matching broadband services found!\n";
%} else {
%
<!-- mason kludge -->
%
% my($total)=scalar(@svc_broadband);
-% print header("IP Address Search Results",''), <<END;
+% print header("Broadband Search Results",''), <<END;
%
% $total matching broadband services found
% <TABLE BORDER=4 CELLSPACING=0 CELLPADDING=0>
More information about the freeside-commits
mailing list