[% content_only = 1 # no html wrappers %] PrintRun [% offset = c.query.param('offset') || 0; # next offset value count = c.query.param('total') || 0; # total number of records in print run start = c.query.param('start') | uri; end = c.query.param('end') | uri; offset_next = offset + 50; offset_lower = offset_next + 1; # start of next offset offset_upper = offset_next + 50; # end of next offset %] [% # create url for 'next 50': url = []; url.push("total=$count"); url.push("offset=$offset_next"); url.push("start=$start"); url.push("end=$end"); # PROCESS dumper.tt dump = url; %]

[% site.html.back_button %] [% IF count >= offset_lower; # still more records to print: %] [% offset_lower %] to [% ( offset_upper > count ) ? count : offset_upper %] » [% ELSE %] [finished] [% END %]

[% FOREACH report IN reports %]
[% report %]
[% END %]