/[webpac]/trunk/WebPac.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/WebPac.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by dpavlin, Sun Mar 23 01:17:49 2003 UTC revision 51 by dpavlin, Sun Jun 1 15:33:08 2003 UTC
# Line 14  use index_DBI; Line 14  use index_DBI;
14  use back2html;  use back2html;
15    
16  # configuration options  # configuration options
17  # FIX: they really should go in configuration file!  # FIXME they really should go in configuration file!
18  my $TEMPLATE_PATH = '/data/webpac/template_html';  my $TEMPLATE_PATH = '/data/webpac/template_html';
19  my $CHARSET = 'ISO-8859-2';  my $CHARSET = 'ISO-8859-2';
20  my $SWISH = '/usr/bin/swish-e';  my $SWISH = '/usr/bin/swish-e';
# Line 137  sub show_results_list { Line 137  sub show_results_list {
137          $tmpl->param('hits',$hits);          $tmpl->param('hits',$hits);
138          $tmpl->param('search',$sw_q);          $tmpl->param('search',$sw_q);
139    
140            $tmpl->param('PAGER_offset',$q->param("PAGER_offset") || 0);
141            $tmpl->param('last_PAGER_offset',$q->param("last_PAGER_offset") || 0);
142    
143          # create a Pager object          # create a Pager object
144          my $pager = HTML::Pager->new(          my $pager = HTML::Pager->new(
145                  # required parameters                  # required parameters
# Line 204  sub show_index { Line 207  sub show_index {
207          $tmpl->param('limit',$limit);          $tmpl->param('limit',$limit);
208          $tmpl->param('total',$total);          $tmpl->param('total',$total);
209    
210  # FIX: I should set offset and leave out limit from fetch!!  # FIXME I should set offset and leave out limit from fetch!!
211  #       if (! $q->param("PAGER_offset") {  #       if (! $q->param("PAGER_offset") {
212  #               $q->param("Pager_offet)  #               $q->param("Pager_offet)
213  #       }  #       }

Legend:
Removed from v.50  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.26