X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2F477partVI_census.html;h=b6043539a1e7c746643c10f976576bcb6f844a6d;hb=b55fb5df35587a35be4c347073364c132970a533;hp=15d2b814bb3850b0db25a9f6e2f60c8aece4d72d;hpb=613464e6e7b634586bca9fabac145d2850b0f0f7;p=freeside.git diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index 15d2b814b..b6043539a 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -144,15 +144,21 @@ my $link = 'cust_pkg.cgi?'. join(';', my $link_suffix = sub { my $row = shift; my $result = 'censustract='. $row->censustract. ';'; - $result .= 'report_option='. @row_option[$row->upload - 1] - if @row_option[$row->upload - 1]; - $result .= 'report_option='. @column_option[$row->download - 1] - if @column_option[$row->download - 1]; + my @ro = grep $_, + @row_option[$row->upload - 1], + @column_option[$row->download - 2], + @technology_option[$row->technology_code - 1], + ; + $result .= 'report_option='. join(',',@ro) if @ro; $result; }; my $html_foot = sub { if (scalar(keys %state_hash) > 1) { + + my $roa = join(',', grep $_, @technology_option); + $roa = ";report_option_any=$roa" if $roa; + '
WARNING: multiple states found
'. ''. #nicer formatting someday join('', map { ''. @@ -160,7 +166,7 @@ my $html_foot = sub { ( &FS::Report::FCC_477::statenum2state($_) || 'None' ). ''. ''.
'. - qq(). + qq(). $state_pkgcount{$_}. ' packages in '. $state_hash{$_}. ' census tracts'. '