[kronolith] Repeating Header row in print

Otto Stolz Otto.Stolz at uni-konstanz.de
Wed May 17 07:20:30 PDT 2006


Hello,

Eugenio Vota <had asked:
> anybody knows if there is a way to repeat the heading row in kronolith
> calendar print pages, when the page to be printed i too long for a
> single sheet.

Chuck Hagenbuch has written:
> Not currently. You might be able to make something work with a  
> print-only stylesheet, but I imagine it'd be hairy...

The browser should do this automagically, if the TH elements are
grouped in a THEAD element,
cf. <http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3>.

This is probably much easier than anything you could do with CSS:
just two extra lines in horde/kronolith/templates/month/head.inc,
and in similar places, I guess. Someting like:
   <tr><td><table class="monthgrid nopadding" cellspacing="1" width="100%">
           <thead>
             <tr>
               <?php if (!$prefs->getValue('week_start_monday')): ?>
                 <th class="item"><?php echo _("Sunday") ?></th>
               <?php endif; ?>
               <th class="item"><?php echo _("Monday") ?></th>
               <th class="item"><?php echo _("Tuesday") ?></th>
               <th class="item"><?php echo _("Wednesday") ?></th>
               <th class="item"><?php echo _("Thursday") ?></th>
               <th class="item"><?php echo _("Friday") ?></th>
               <th class="item"><?php echo _("Saturday") ?></th>
               <?php if ($prefs->getValue('week_start_monday')): ?>
                 <th class="item"><?php echo _("Sunday") ?></th>
               <?php endif; ?>
             </tr>
           </thead>

No gurantee, though: My Kronolith implementation is still incomplete,
so I cannot test this suggestion.

Best wishes,
    Otto Stolz



More information about the kronolith mailing list