<div class="header">
 <span style="float:left; width:40%">
  <?php echo htmlspecialchars($title) ?>
  <?php echo Horde::link($refresh_url, $refresh_title, 'smallheader', '', '', $refresh_title, $refresh_ak) . Horde::img('reload.png', _("Reload"), array('title' => $refresh_title, 'align' => 'middle'), $registry->getImageDir('horde')) ?></a>

<?php if (isset($filter_url)): ?>
  <?php echo Horde::link($filter_url, sprintf(_("Apply Filters to %s"), $title), 'smallheader') . Horde::img('filters.png', _("Apply Filters"), array('title' => sprintf(_("Apply Filters to %s"), htmlspecialchars($title)), 'align' => 'middle')) ?></a>
<?php endif; ?>

<?php if (!$search_mbox): ?>
  <?php echo Horde::link(Util::addParameter(Horde::applicationUrl('search.php'), 'mailbox', $imp['mailbox']), sprintf(_("Search %s"), $title), 'smallheader') . Horde::img('search.png', _("Search"), array('title' => sprintf(_("Search %s"), htmlspecialchars($title)), 'align' => 'middle'), $registry->getImageDir('horde')) ?></a>&nbsp;
<?php elseif (!empty($_SESSION['imp']['search']['vfolder_id'])): ?>
  <?php echo Horde::link(IMP_VFolder::editVFolderURL($_SESSION['imp']['search']['vfolder_id']), sprintf(_("Edit Virtual Folder Definition for %s"), htmlspecialchars($title)), 'smallheader') . Horde::img('edit.png', _("Edit Virtual Folder"), array('title' => sprintf(_("Edit Virtual Folder Definition for %s"), htmlspecialchars($title)), 'align' => 'middle'), $registry->getImageDir('horde')) ?></a>&nbsp;
<?php endif; ?>
 </span>

<?php if ($pageOb->pagecount > 1): ?>
 <span style="float:left; width:30%; text-align: left">
  <?php echo sprintf(_("Page %d of %d"), $pageOb->page, $pageOb->pagecount) ?>
 </span>
 <span style="float:right; width:30%">
  <?php echo $msg_count ?>
 </span>
<?php else: ?>
 <span style="float:right; width:60%; text-align: right">
  <?php echo $msg_count ?>
 </span>
<?php endif; ?>

 <div class="clear">&nbsp;</div>
</div>

<table class="nopadding" width="100%" cellspacing="0"><tr><td colspan="6">
