$template->param(add_validate => 1);
my $dbh = C4::Context->dbh;
my @tab = split / |,/, $input->param('word');
- my $sth=$dbh->prepare("replace stopwords (word) values (?)");
+ my $sth=$dbh->prepare("INSERT INTO stopwords (word) VALUES (?)");
foreach my $insert_value (@tab) {
$sth->execute($insert_value);
}
my $env;
my ($count,$results)=StringSearch($env,$searchfield,'web');
my @loop;
- my $toggle = 'white';
for (my $i=$offset; $i < ($offset+$pagesize<$count?$offset+$pagesize:$count); $i++){
- my %row = (word => $results->[$i]{'word'},
- toggle => $toggle);
+ my %row = (word => $results->[$i]{'word'});
push @loop, \%row;
- $toggle = ($toggle eq 'white') ? '#ffffcc' : 'white' ;
}
$template->param(loop => \@loop);
}
}
-$template->param(
- intranetcolorstylesheet => C4::Context->preference("intranetcolorstylesheet"),
- intranetstylesheet => C4::Context->preference("intranetstylesheet"),
- IntranetNav => C4::Context->preference("IntranetNav"),
- );
output_html_with_http_headers $input, $cookie, $template->output;