<?php $sortbyurl = Util::addParameter('list.php', 'sortdir=' . abs(1 - $sortdir)) ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-right:5px;">
 <tr class="item">
  <td nowrap="nowrap" width="3%" align="center"><?php echo Horde::img('edit.png', _("Edit Note"), '', $registry->getImageDir('horde')) ?></td>
  <th class="<?php echo ($sortby == MNEMO_SORT_DESC) ? 'selected' : 'item' ?>" width="82%" align="left" nowrap="nowrap">
    <?php if ($sortby == MNEMO_SORT_DESC) echo Horde::link(Horde::applicationUrl(Util::addParameter($sortbyurl, 'sortby', MNEMO_SORT_DESC)), _("Change sort direction"), 'widget') . Horde::img($sortdir ? 'za.png' : 'az.png', _("Change sort direction"), '', $registry->getImageDir('horde')) . '</a>' ?>
    <?php echo Horde::widget(Horde::applicationUrl(Util::addParameter('list.php', 'sortby', MNEMO_SORT_DESC)), _("Sort by Note Text"), 'widget', '', '', _("No_te")) ?>
  </th>
  <th class="<?php echo ($sortby == MNEMO_SORT_CATEGORY) ? 'selected' : 'item' ?>" width="15%" align="left" nowrap="nowrap">
    <?php if ($sortby == MNEMO_SORT_CATEGORY) echo Horde::link(Horde::applicationUrl(Util::addParameter($sortbyurl, 'sortby', MNEMO_SORT_CATEGORY)), _("Change sort direction"), 'widget') . Horde::img($sortdir ? 'za.png' : 'az.png', _("Change sort direction"), '', $registry->getImageDir('horde')) . '</a>' ?>
    <?php echo Horde::widget(Horde::applicationUrl(Util::addParameter('list.php', 'sortby', MNEMO_SORT_CATEGORY)), _("Sort by Category"), 'widget', '', '', _("_Category")) ?></a>
  </th>
 </tr>
