<?php if (isset($first_url)): ?>
<link href="<?php echo $first_url ?>" rel="First" />
<?php endif; ?>
<?php if (isset($prev_url)): ?>
<link href="<?php echo $prev_url ?>" rel="Previous" />
<?php endif; ?>
<?php if (isset($next_url)): ?>
<link href="<?php echo $next_url ?>" rel="Next" />
<?php endif; ?>
<?php if (isset($last_url)): ?>
<link href="<?php echo $last_url ?>" rel="Last" />
<?php endif; ?>
<table border="0" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="6">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="left" width="40%" class="header" nowrap="nowrap">
        <?php echo htmlspecialchars($title) ?>
        <?php echo Horde::link($refresh_url, sprintf("%s %s", _("Refresh"), $title), 'menuitem') . Horde::img('reload.gif', sprintf("%s %s", _("Refresh"), htmlspecialchars($title)), 'hspace="2"') ?></a>
<?php if (isset($filter_url)): ?>
        <?php echo Horde::link($filter_url, sprintf("%s %s", _("Apply Filters on"), $title), 'menuitem') . Horde::img('filters.gif', sprintf("%s %s", _("Apply Filters on"), htmlspecialchars($title))) ?></a>
<?php endif; ?>
<?php if (!$search_mbox): ?>
        <?php echo Horde::link(Horde::addParameter(Horde::applicationUrl('search.php'), 'mailbox', $imp['mailbox']), sprintf("%s %s", _("Search"), $title), 'menuitem') . Horde::img('search-sm.gif', sprintf("%s %s", _("Search"), htmlspecialchars($title))) ?></a>&nbsp;
<?php endif; ?>

    </td>
<?php if ($pageOb->pagecount > 1): ?>
    <td align="left" width="40%" class="header">
        <?php echo $msg_count ?>
    </td>
    <td align="right" width="20%" class="header">
        <?php echo sprintf(_("Page %d of %d"), $pageOb->page, $pageOb->pagecount) ?>
<?php else: ?>
    <td align="right" class="header">
        <?php echo $msg_count ?>
<?php endif; ?>
    </td>
</tr>
</table>

    </td>
</tr>
