<?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 class="header" colspan="6" align="center">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="left" width="39%" class="header" nowrap="nowrap">
        &nbsp;<?php echo htmlspecialchars($imp['label']) ?>
        <?php echo Horde::link($refresh_url, sprintf("%s %s", _("Refresh"), $imp['label']), 'menuitem') . Horde::img('reload.gif', 'alt="' . sprintf("%s %s", _("Refresh"), htmlspecialchars($imp['label'])) . '" hspace="2"') ?></a>
<?php if (!$prefs->isLocked('filters')): ?>
        <?php echo Horde::link(Horde::applicationUrl("mailbox.php?actionID=" . FILTER . "&page=$page&uniq=" . uniqid(rand())), sprintf("%s %s", _("Apply Filters on"), $imp['label']), 'menuitem') . Horde::img('filters.gif', 'alt="' . sprintf("%s %s", _("Apply Filters on"), htmlspecialchars($imp['label'])) . '"') ?></a>&nbsp;
<?php endif; ?>
    </td>
    <td align="center" width="20%" class="header">
    <?php if (isset($page_count)): ?>
        <?php echo sprintf(_("Page %d of %d"), $page, $page_count) ?>
    <?php endif; ?>
    </td>
    <td align="right" width="40%" class="header">
        <?php echo $msg_count ?>
    </td>
</tr>
</table>

    </td>
</tr>
