3 my $page = CXGN
::Page
->new("Biofools Group Page", "Chris Carpita");
5 my ($left_bound, $record_size) =
7 qw
/ left_bound record_size /);
12 my ($content, $size, $total) = CXGN
::Tools
::File
::get_div_sections
(
18 my $navbar = nav_bar
($left_bound, $size, $total);
19 my $navinfo = nav_info
($left_bound, $size, $total);
21 my $wholebar = <<HTML;
24 <td style="text-align:left">
27 <td style="text-align:right">
37 <h2>Biofools Home Page</h2>
50 my ($lb, $size, $total) = @_;
51 my $next_lb = $lb + $size;
52 $next_lb = $total - $size + 1 if $next_lb >= $total;
53 my $prev_lb = $lb - $size;
54 $prev_lb = 1 if $prev_lb < 1;
56 my $last_lb = $total - $size + 1;
60 <a href="?left_bound=$first_lb&record_size=$size"><< First</a>
61 <a href="?left_bound=$prev_lb&record_size=$size">< Prev</a>
62 <a href="?left_bound=$next_lb&record_size=$size">Next ></a>
63 <a href="?left_bound=$last_lb&record_size=$size">Last >></a>
70 my ($lb, $size, $total) = @_;
71 my $last = $lb + $size - 1;
72 return "Records $lb - $last out of $total";