X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fsvc_broadband.cgi;h=6bf4f085087b80da69ce5ae7b72a779fd7957408;hb=df21571ae9b56b8645c53053fdabc78ca6eeffed;hp=e56ec399676332c1aa3295ab2667aa600ae3e4c7;hpb=c13c6407510f6fd1783ce0fbd97800afa27c30b5;p=freeside.git diff --git a/httemplate/search/svc_broadband.cgi b/httemplate/search/svc_broadband.cgi index e56ec3996..6bf4f0850 100755 --- a/httemplate/search/svc_broadband.cgi +++ b/httemplate/search/svc_broadband.cgi @@ -1,4 +1,4 @@ -<& elements/search.html, +<& elements/svc_Common.html, 'title' => 'Broadband Search Results', 'name' => 'broadband services', 'html_init' => $html_init, @@ -61,9 +61,8 @@ my $conf = new FS::Conf; my %search_hash; if ( $cgi->param('magic') eq 'unlinked' ) { %search_hash = ( 'unlinked' => 1 ); -} -else { - foreach (qw(custnum agentnum svcpart)) { +} else { + foreach (qw( custnum agentnum svcpart cust_fields )) { $search_hash{$_} = $cgi->param($_) if $cgi->param($_); } foreach (qw(pkgpart routernum towernum sectornum)) { @@ -72,7 +71,7 @@ else { } if ( $cgi->param('sortby') =~ /^(\w+)$/ ) { - $search_hash{'order_by'} = $1; + $search_hash{'order_by'} = "ORDER BY $1"; } my $sql_query = FS::svc_broadband->search(\%search_hash); @@ -106,5 +105,9 @@ my $html_init = include('/elements/email-link.html', 'search_hash' => \%search_hash, 'table' => 'svc_broadband' ); +$html_init .= ' | ' . + '' . emt('View a map of these services') . '';