<table border="0" cellspacing="0" cellpadding="1" width="100%" class="item0">
  <tr>
    <td class="header" colspan="<?php echo ($this->_totalspan + 3) ?>" align="center">
      <?php echo (!$print_view) ? Horde::link($this->link(-1), _("Previous day")) . Horde::img('nav/left.gif', '&lt;', 'hspace="2"', $GLOBALS['registry']->getParam('graphics', 'horde')) . '</a>' : ''?>
      <b><?php echo $this->getTime($prefs->getValue('date_format')) ?></b>
      <?php echo (!$print_view) ? Horde::link($this->link(1), _("Next day")) . Horde::img('nav/right.gif', '&gt;', 'hspace="2"', $GLOBALS['registry']->getParam('graphics', 'horde')) . '</a>' : ''?>
    </td>
  </tr>
  <tr>
    <td class="header" width="10%" colspan="3" align="center"></td>
<?php $i = 0; foreach ($this->_currentCalendars as $cid => $cal): ?>
    <td width="<?php echo round(90 / count($this->_currentCalendars)); ?>%" class="header" align="center" colspan="<?php echo $this->_span[$cid]; ?>">
      <?php echo $cal->getShareName(); ?>
    </td>
<?php endforeach; ?>
  </tr>
