X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fpager.html;h=2327594a8b65cfd93f4ac111161820b3e905362b;hp=0510d327d5b9f811f6366344caf142f839e219b3;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087
diff --git a/httemplate/elements/pager.html b/httemplate/elements/pager.html
index 0510d327d..2327594a8 100644
--- a/httemplate/elements/pager.html
+++ b/httemplate/elements/pager.html
@@ -1,42 +1,43 @@
-<%
+%
+%
+% my %opt = @_;
+%
+% my $pager = '';
+% if ( $opt{'total'} != $opt{'num_rows'} && $opt{'maxrecords'} ) {
+% unless ( $opt{'offset'} == 0 ) {
+% $cgi->param('offset', $opt{'offset'} - $opt{'maxrecords'});
+%
+
+
+ Previous
+%
+% }
+% my $page = 0;
+% for ( my $poff = 0; $poff < $opt{'total'}; $poff += $opt{'maxrecords'} ) {
+% $page++;
+% if ( $opt{'offset'} == $poff ) {
+%
+
+
+ <% $page %>
+%
+% } else {
+% $cgi->param('offset', $poff);
+%
+
+
+ <% $page %>
+%
+% }
+% }
+% unless ( $opt{'offset'} + $opt{'maxrecords'} > $opt{'total'} ) {
+% $cgi->param('offset', $opt{'offset'} + $opt{'maxrecords'});
+%
+
+
+ Next
+%
+% }
+% }
+%
- my %opt = @_;
-
- my $pager = '';
- if ( $opt{'total'} != $opt{'num_rows'} && $opt{'maxrecords'} ) {
- unless ( $opt{'offset'} == 0 ) {
- $cgi->param('offset', $opt{'offset'} - $opt{'maxrecords'});
-%>
-
- Previous
-
-<%
- }
- my $page = 0;
- for ( my $poff = 0; $poff < $opt{'total'}; $poff += $opt{'maxrecords'} ) {
- $page++;
- if ( $opt{'offset'} == $poff ) {
-%>
-
- <%= $page %>
-
-<%
- } else {
- $cgi->param('offset', $poff);
-%>
-
- <%= $page %>
-
-<%
- }
- }
- unless ( $opt{'offset'} + $opt{'maxrecords'} > $opt{'total'} ) {
- $cgi->param('offset', $opt{'offset'} + $opt{'maxrecords'});
-%>
-
- Next
-
-<%
- }
- }
-%>