<tr>
    <td class="control" colspan="6">

<table border="0" width="100%">
<tr>
    <td align="left">
<?php if ($trashMbox): ?>
        <?php echo Horde::widget('', _("Delete"), 'widget', '', "if (confirm('" . addslashes(_("Are you sure you wish to permanently delete these messages?")) . "')) { Submit('delete_messages'); } return false;", _("Delete")); ?>
<?php else: ?>
        <?php echo Horde::widget('', _("Delete"), 'widget', '', "Submit('delete_messages'); return false;", _("Delete")); ?>
<?php endif; ?>
<?php if (!$use_trash && strstr($imp['protocol'], 'imap') && !$prefs->getValue('delhide')): ?> |
            <?php echo Horde::widget('', _("Undelete"), 'widget', '', "Submit('undelete_messages'); return false;", _("Undelete")); ?>
<?php endif; ?>
<?php if ($show_blacklist_link): ?>
        | <?php echo Horde::widget('', _("Blacklist"), 'widget', '', "Submit('blacklist'); return false;", _("Blacklist")); ?>
<?php endif; ?>
<?php if ($show_whitelist_link): ?>
        | <?php echo Horde::widget('', _("Whitelist"), 'widget', '', "Submit('whitelist'); return false;", _("Whitelist")); ?>
<?php endif; ?>
    | <?php echo Horde::widget('', _("Forward"), 'widget', '', "Submit('fwd_digest'); return false;", _("Forward")) ?>
<?php if ($conf['spam']['reporting']): ?>
    | <?php echo Horde::widget('', _("Report as Spam"), 'widget', '', "Submit('spam_report'); return false;", _("Report as Spam")); ?>
<?php endif; ?>
    </td>
    <td align="right">
<?php if ($showdelete): ?>
<?php $mailbox_link = Horde::addParameter($mailbox_url, 'page', $pageOb->page); ?>
<?php if (!$prefs->isLocked('delhide')): ?>
        <?php echo Horde::widget(Horde::addParameter($mailbox_link, 'actionID', 'hide_deleted'), $deleted_prompt, 'widget', '', '', $deleted_prompt); ?> |
<?php endif; ?>
        <?php echo Horde::widget(Horde::addParameter($mailbox_link, 'actionID', 'expunge_mailbox'), _("Purge Deleted"), 'widget', '', '', _("Purge Deleted")); ?>
<?php endif; ?>
<?php if ($trashMbox): ?>
        <?php echo Horde::widget(Horde::addParameter($mailbox_url, 'actionID', 'empty_mailbox'), _("Empty Trash folder"), 'widget', '', "return confirm('" . addslashes(_("Are you sure you wish to empty this folder?")) . "');", _("Empty Trash folder")); ?>
<?php endif; ?>
    </td>
</tr>
</table>

    </td>
</tr>
