<?php $sortbyurl = Horde::addParameter('list.php', 'sortdir=' . abs(1 - $prefs->getValue('sortdir'))) ?>  
<tr><td class="control">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr class="item">
  <td nowrap="nowrap" width="3%" align="center">&nbsp;<?php echo Horde::img('delete.gif', _("Delete Note")) ?></td>
  <th class="<?php echo ($prefs->getValue('sortby') == MNEMO_SORT_DESC) ? 'selected' : 'item' ?>" width="82%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MNEMO_SORT_DESC)), _("Sort Direction"), 'widget') . Horde::img($prefs->getValue('sortdir') ? 'za.gif' : 'az.gif', _("Sort Direction"), '', $registry->getParam('graphics', 'horde')) ?></a>
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter('list.php', 'sortby=' . MNEMO_SORT_DESC)), _("Sort by Note Text"), 'widget') . _("Note") ?></a>
  </th>
  <th class="<?php echo ($prefs->getValue('sortby') == MNEMO_SORT_CATEGORY) ? 'selected' : 'item' ?>" width="15%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MNEMO_SORT_CATEGORY)), _("Sort Direction"), 'widget') . Horde::img($prefs->getValue('sortdir') ? 'za.gif' : 'az.gif', _("Sort Direction"), '', $registry->getParam('graphics', 'horde')) ?></a>
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter('list.php', 'sortby=' . MNEMO_SORT_CATEGORY)), _("Sort by Category"), 'widget') . _("Category") ?></a>
  </th>
</tr>
