- my $env;
- my ($count,$results)=StringSearch($env,$searchfield,'web');
- my $toggle="white";
- my @loop_data;
- for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
- my %row_data;
- if ($toggle eq 'white'){
- $row_data{toggle}="#ffffcc";
- } else {
- $row_data{toggle}="white";
- }
- $row_data{authtypecode} = $results->[$i]{'authtypecode'};
- $row_data{authtypetext} = $results->[$i]{'authtypetext'};
- $row_data{auth_tag_to_report} = $results->[$i]{'auth_tag_to_report'};
- push(@loop_data, \%row_data);
- }
- $template->param(loop => \@loop_data);
- if ($offset>0) {
- my $prevpage = $offset-$pagesize;
- $template->param(previous => "$script_name?offset=".$prevpage);
- }
- if ($offset+$pagesize<$count) {
- my $nextpage =$offset+$pagesize;
- $template->param(next => "$script_name?offset=".$nextpage);
- }
+ my $results = StringSearch($searchfield);
+ my $count = scalar @$results;
+ my @loop_data;
+ for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
+ push @loop_data, {
+ authtypecode => $results->[$i]{'authtypecode'},
+ authtypetext => $results->[$i]{'authtypetext'},
+ auth_tag_to_report => $results->[$i]{'auth_tag_to_report'},
+ summary => $results->[$i]{'summary'},
+ };
+ }
+ $template->param(loop => \@loop_data);
+ if ($offset>0) {
+ my $prevpage = $offset-$pagesize;
+ $template->param(previous => "$script_name?offset=".$prevpage);
+ }
+ if ($offset+$pagesize<$count) {
+ my $nextpage = $offset+$pagesize;
+ $template->param(next => "$script_name?offset=".$nextpage);
+ }