X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2F477partVI_census.html;h=534d872f39171e916e490fe51dae993b76811771;hb=006b2392be94f9670eddf3d01ba89c00f9c16c05;hp=15d2b814bb3850b0db25a9f6e2f60c8aece4d72d;hpb=fef193f602ffa3ce056c4f3a13699138cdccf300;p=freeside.git diff --git a/httemplate/search/477partVI_census.html b/httemplate/search/477partVI_census.html index 15d2b814b..534d872f3 100755 --- a/httemplate/search/477partVI_census.html +++ b/httemplate/search/477partVI_census.html @@ -144,15 +144,27 @@ 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_r = join(',', grep $_, @row_option); + $roa_r = ";report_option_any_r=$roa_r" if $roa_r; + + my $roa_c = join(',', grep $_, @column_option); + $roa_c = ";report_option_any_c=$roa_c" if $roa_c; + + my $roa_t = join(',', grep $_, @technology_option); + $roa_t = ";report_option_any_t=$roa_t" if $roa_t; + '
WARNING: multiple states found
'. ''. #nicer formatting someday join('', map { ''. @@ -160,8 +172,9 @@ my $html_foot = sub { ( &FS::Report::FCC_477::statenum2state($_) || 'None' ). ''. ''. '';
'. - qq(). - $state_pkgcount{$_}. ' packages in '. + qq(). + $state_pkgcount{$_}. + ' packages in '. $state_hash{$_}. ' census tracts'. '