<?php $sortbyurl = Horde::addParameter('list.php', 'sortdir=' . abs(1 - $prefs->getValue('sortdir'))) ?>
<tr><td class="item">
<table width="100%" border="0" cellpadding="1" cellspacing="0">
<tr>
  <td nowrap="nowrap" width="2%" align="center" class="control">
    <?php echo Horde::img('delete.gif', _("Delete Meeting")) ?>
  </td>
  <th class="<?php echo ($prefs->getValue('sortby') == MOMENT_SORT_START) ? 'selected-control' : 'control' ?>" width="12%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MOMENT_SORT_START)), _("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=' . MOMENT_SORT_START)), _("Sort by Start Time"), 'widget') . _("Start Time") ?></a>
  </th>
  <th class="<?php echo ($prefs->getValue('sortby') == MOMENT_SORT_TITLE) ? 'selected-control' : 'control' ?>" width="60%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MOMENT_SORT_TITLE)), _("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=' . MOMENT_SORT_TITLE)), _("Sort by Title"), 'widget') . _("Title") ?></a>
  </th>
  <th class="<?php echo ($prefs->getValue('sortby') == MOMENT_SORT_LOCATION) ? 'selected-control' : 'control' ?>" width="26%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MOMENT_SORT_LOCATION)), _("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=' . MOMENT_SORT_LOCATION)), _("Sort by Location"), 'widget') . _("Location") ?></a>
  </th>
  <th class="<?php echo ($prefs->getValue('sortby') == MOMENT_SORT_STATUS) ? 'selected-control' : 'control' ?>" width="26%" align="left" nowrap="nowrap">
    <?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($sortbyurl, 'sortby=' . MOMENT_SORT_STATUS)), _("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=' . MOMENT_SORT_STATUS)), _("Sort by Status"), 'widget') . _("Status") ?></a>
  </th>
</tr>
