235 |
$cfg_global->val('global', 'dbi_passwd') || '' |
$cfg_global->val('global', 'dbi_passwd') || '' |
236 |
); |
); |
237 |
|
|
238 |
my $total = $index->check($field); |
my $total = $index->count($field,$limit); |
239 |
if (! $total) { |
if (! $total) { |
240 |
my $tmpl = $self->load_tmpl('no_index.html'); |
my $tmpl = $self->load_tmpl('no_index.html'); |
241 |
$tmpl->param('field',$field); |
$tmpl->param('field',$field); |
258 |
get_data_callback => sub { |
get_data_callback => sub { |
259 |
my ($offset, $rows) = @_; |
my ($offset, $rows) = @_; |
260 |
|
|
261 |
my @result = $index->fetch($field,'item',$limit, $offset, $rows); |
my @result = $index->fetch($field,$limit, $offset, $rows); |
262 |
return \@result; |
return \@result; |
263 |
}, |
}, |
264 |
rows => $total, |
rows => $total, |