summaryrefslogtreecommitdiff
path: root/httemplate/elements/pager.html
diff options
context:
space:
mode:
authorcvs2git <cvs2git>2010-12-27 00:04:45 +0000
committercvs2git <cvs2git>2010-12-27 00:04:45 +0000
commitc82d349f864e6bd9f96fd1156903bc1f7193a203 (patch)
treee117a87533656110b6acd56fc0ca64289892a9f5 /httemplate/elements/pager.html
parent74e058c8a010ef6feb539248a550d0bb169c1e94 (diff)
This commit was manufactured by cvs2svn to create tag 'TORRUS_1_0_9'.TORRUS_1_0_9
Diffstat (limited to 'httemplate/elements/pager.html')
-rw-r--r--httemplate/elements/pager.html55
1 files changed, 0 insertions, 55 deletions
diff --git a/httemplate/elements/pager.html b/httemplate/elements/pager.html
deleted file mode 100644
index a53300f53..000000000
--- a/httemplate/elements/pager.html
+++ /dev/null
@@ -1,55 +0,0 @@
-% my %opt = @_;
-% my $pager = '';
-%
-% if ( $opt{'total'} != $opt{'num_rows'} && $opt{'maxrecords'} ) {
-%
-% unless ( $opt{'offset'} == 0 ) {
-% $cgi->param('offset', $opt{'offset'} - $opt{'maxrecords'});
-
- <A HREF="<% $cgi->self_url %>"><B><FONT SIZE="+1">Previous</FONT></B></A>
-
-% }
-%
-% my $page = 0;
-% my $prevpage = 0;
-% my $over = 0;
-% my $step = $opt{total} / 10; # 10 evenly spaced
-% for ( my $poff = 0; $poff < $opt{total}; $poff += $opt{maxrecords} ) {
-% $page++;
-%
-% next unless
-% $page <= 4 #first four
-% || $page >= ( $opt{total} / $opt{maxrecords} ) - 3 #last four
-% || abs( ($opt{offset}-$poff) / $opt{maxrecords} ) <= 3 #w/i 3 of current
-% || $poff > $over # evenly spaced
-% ;
-%
-% $over += $step if $poff > $over;
-%
-% if ( $opt{'offset'} == $poff ) {
-
- <FONT SIZE="+2"><% $page %></FONT>
-
-% } else {
-% $cgi->param('offset', $poff);
-%
-% if ( $page > $prevpage+1 ) {
- ...
-% }
-
- <A HREF="<% $cgi->self_url %>"><% $page %></A>
-
-% }
-%
-% $prevpage = $page;
-%
-% }
-%
-% unless ( $opt{'offset'} + $opt{'maxrecords'} > $opt{'total'} ) {
-% $cgi->param('offset', $opt{'offset'} + $opt{'maxrecords'});
-
- <A HREF="<% $cgi->self_url %>"><B><FONT SIZE="+1">Next</FONT></B></A>
-%
-% }
-%
-% }