RSS Git Download  Clone
Raw Blame History
[% content_only = 1 # no html wrappers %]

<!-- BEGIN printrun/wrapper.tt -->
<html>
<head>
  <title>PrintRun</title>
  <link type="text/css" media="print" rel="stylesheet" href="/css/print.css" />
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

    [%
        count  = c.query.param('total');  # total number of records in print run
        offset = c.query.param('offset'); # next offset value
        
        offset_lower = offset + 51;  # start of next offset
        offset_upper = offset + 100; # end of next offset
    %]
<body>
    <!--
    count = [% count %]; offset = [% offset %]; offset_lower = [% offset_lower %];
    offset_upper = [% offset_upper %]
    -->
  <p class="classname">[% site.html.back_button %]
    <span class="printHide" "style="font-weight: bold; float: right">
      [% IF count >= offset_lower; # still more records to print: %]
        <a class"button" href="[% app_url %]/printrun/do_offset?offset=[%
            offset + 50 %];total=[% count %];start=[% c.query.param('start')
            | uri %];end=[% c.query.param('end') | uri %]">
          [% offset_lower %] to [% ( offset_upper > count ) ? count : offset_upper %]
          &#187;
        </a>
      [% ELSE %]
        [finished]
      [% END %]
    </span>
  </p>
  [% FOREACH report IN reports %]
      <div style="page-break-after: always">[% report %]</div>        
  [% END %]
</body>
</html>
<!-- END printrun/wrapper.tt -->