<tr class="control">
  <td nowrap="nowrap" align="left">
<?php if ($imp['base_protocol'] != 'pop3'): ?>
    <select name="flag<?php echo $nav_id ?>" onchange="flagMessage(<?php echo $nav_id ?>);">
      <option value="" selected="selected"><?php echo _("Mark as:") ?></option>
      <option value="0Seen"><?php echo _("Unseen") ?></option>
      <option value="Flagged"><?php echo _("Important") ?></option>
      <option value="0Flagged"><?php echo _("Not Important") ?></option>
      <option value="Answered"><?php echo _("Answered") ?></option>
      <option value="0Answered"><?php echo _("Unanswered") ?></option>
      <option value="Draft"><?php echo _("Draft") ?></option>
      <option value="0Draft"><?php echo _("Not Draft") ?></option>
    </select>
  </td>
<?php endif; ?>
  <td nowrap="nowrap" align="left">
<?php if ($conf['user']['allow_folders']): ?>
    <?php echo Horde::widget('', _("Move to folder"), 'widget', '', "Transfer('move_message'," . $nav_id . "); return false;", _("Move"), 3) ?> |
    <?php echo Horde::widget('', _("Copy to folder"), 'widget', '', "Transfer('copy_message'," . $nav_id . "); return false;", _("Copy"), 3) ?>
    <select name="target<?php echo $nav_id ?>" onchange="updateFolders(<?php echo $nav_id ?>);">
      <?php echo $options ?>
    </select>
<?php endif; ?>
  </td>
  <td width="65%" align="right" nowrap="nowrap">
    <?php echo Horde::widget($mailbox_link, sprintf(_("Back to %s"), $page_label), 'widget', '', '', sprintf(_("Back to %s"), $page_label), 2) ?>&nbsp;&nbsp;
    <link href="<?php echo $mailbox_link ?>" rel="Up" />
<?php if (!empty($prev_link)): ?>
    <?php echo Horde::link($prev_link, _("Previous Message"), '', '', '', '', '<') . Horde::img('nav/left.gif', _("Previous Message"), 'width="16" height="16" align="middle"', $registry->getParam('graphics', 'horde')) ?></a>
    <link href="<?php echo $prev_link ?>" rel="Previous" />
<?php else: ?>
    <?php echo Horde::img('nav/left-grey.gif', '', 'width="16" height="16" align="middle"', $registry->getParam('graphics', 'horde')) ?>
<?php endif; ?>
<?php if (!empty($next_link)): ?>
    <?php echo Horde::link($next_link, _("Next Message"), '', '', '', '', '>') . Horde::img('nav/right.gif', _("Next Message"), 'width="16" height="16" align="middle"', $registry->getParam('graphics', 'horde')) ?></a>
    <link href="<?php echo $next_link ?>" rel="Next" />
<?php else: ?>
    <?php echo Horde::img('nav/right-grey.gif', '', 'width="16" height="16" align="middle"', $registry->getParam('graphics', 'horde')) ?>
<?php endif; ?>
  </td>
</tr>
