<tr class="<?php echo $style ?>" onmouseover="javascript:style.backgroundColor='<?php echo isset($css['.' . $style . '-hi']['background-color']) ? $css['.' . $style . '-hi']['background-color'] : 'white' ?>'" onmouseout="javascript:style.backgroundColor='<?php echo $css['.' . $style]['background-color'] ?>'">
  <td align="center" nowrap="nowrap">
    <?php if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), _PERMS_EDIT) && empty($task['completed'])): ?>
      <?php echo Horde::link($task['complete_link'], _("Complete Task"), 'widget') . Horde::img('unchecked.gif', _("Complete Task")) . '</a>' ?>
    <?php else: ?>
      <?php echo Nag::formatCompletion($task['completed']) ?></a></td>
    <?php endif; ?>
  </td>

  <td align="center" nowrap="nowrap"><?php echo $owner ?></td>
  <td align="center" nowrap="nowrap"><?php echo Nag::formatPriority($task['priority']) ?></td>
  <td nowrap="nowrap">
    <?php if (!is_a($share, 'PEAR_Error') && $share->hasPermission(Auth::getAuth(), _PERMS_EDIT) && empty($task['completed'])): ?>
      <?php echo Horde::link($task['edit_link'], _("Edit Task"), 'widget') . Horde::img('edit.gif', _("Edit Task")) . '</a>' ?>
    <?php endif; ?>
  </td>
  <td nowrap="nowrap"><?php echo Horde::link($task['view_link'], _("View Task Details"), $tstyle, '', '', $task['desc']) ?><?php echo !empty($task['name']) ? htmlspecialchars($task['name']) : _("[none]") ?></a></td>
  <td nowrap="nowrap">
    <?php if (!empty($task['due'])) echo strftime($conf['list']['date_format'], $task['due']) ?>
  </td>
  <td><?php echo Nag::formatCategory($task['category'], $task['tasklist_id']) ?></td>
  <td><?php echo !empty($task['desc']) ? Horde::img('note.gif', _("Task Note")) : '&nbsp;' ?></td>
  <td><?php echo (!empty($task['alarm']) && !empty($task['due'])) ?
    Horde::img('alarm.gif', _("Task Alarm")) : '&nbsp;' ?>
  </td>
</tr>
