<tr class="item"><td>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
  <td align="left" nowrap="nowrap">
    <form name="select1" action="javascript:void(0)" onsubmit="return false;">
    <select name="filter" onchange="SelectAll();">
      <option value="" selected="selected"><?php echo _("Select") ?></option>
      <option value="1"><?php echo _("All") ?></option>
      <option value="0"><?php echo _("None") ?></option>
    </select>
    </form>
  </td>

  <td align="right" nowrap="nowrap">
<?php if (!empty($cfgSources[$source]['map']['__type'])): ?>
    <form name='targetList' action="javascript:void(0)" onsubmit="return false">
    <input type="button" class="button" onclick="ListUpdate(); Submit(<?php echo TURBA_ADD ?>); return false;" value="<?php echo _("Add to") ?>" />
    <select name="listList">
      <option value=""><?php echo _("Select List") ?></option>
      <option value="">-----</option>
      <option value="*new*"><?php echo _("New List") ?></option>
      <option value="">-----</option>
<?php foreach ($addToList as $list): ?>
      <option value="<?php echo $list['key'] ?>"><?php echo $list['name'] ?></option>
<?php endforeach; ?>
    </select>
    </form>
<?php endif; ?>
  </td>
</tr>

<tr>
  <td align="left" nowrap="nowrap">
    <a class="widget" href="" onclick="Submit(<?php echo TURBA_DELETE ?>); return false;"
     onmouseover="status='<?php echo addslashes(($listType == 'list' ? _("Remove from this list") : _("Delete"))) ?>'; return true;"
     onmouseout="status='';"><?php echo ($listType == 'list' ? _("Remove from this list") : _("Delete")) ?></a>
  </td>

  <td align="right" nowrap="nowrap">
<?php
if ($listType == 'directory' && !empty($cfgSources[$source]['map']['__type'])) {
    echo Horde::link(Horde::applicationUrl('browse.php?source=' . $source . '&show=lists'), _("Show Lists"), 'widget') . _("Show Lists") . '</a> | ';
    echo Horde::link(Horde::applicationUrl('browse.php?source=' . $source . '&show=contacts'), _("Show Contacts"), 'widget') . _("Show Contacts") . '</a> | ';
    echo Horde::link(Horde::applicationUrl('browse.php?source=' . $source . '&show=all'), _("Show All"), 'widget') . _("Show All") . '</a>';
} elseif ($listType == 'list' && !empty($cfgSources[$source]['map']['__type'])) {
    echo Horde::link(Horde::applicationUrl('browse.php?source=' . $source . '&show=all'), sprintf(_("Back to %s"), $cfgSources[$source]['title']), 'widget') . sprintf(_("Back to %s"), $cfgSources[$source]['title']) . '</a>';
} elseif ($listType == 'search') {
    echo Horde::link(Horde::applicationUrl('search.php?source=' . $source . '&clear=1'), _("Clear Search"), 'widget') . _("Clear Search") . '</a>';
}
?>
  </td>
</tr>
</table>

</td></tr>
