<div class="header">
 <?php echo htmlspecialchars($this->title) . ' (' . $this->tasks->count() . ')' ?>
 <?php if (!empty($this->smartShare)): ?>
   <small><a href="<?php echo Horde::url('search.php')->add('smart_id', $this->smartShare->getName()); ?>"><?php echo _("Edit criteria")?></a></small>
 <?php endif; ?>
 <a id="quicksearchL" href="<?php echo Horde::url('search.php') ?>" title="<?php echo _("Search") ?>" onclick="$('quicksearchL').hide(); $('quicksearch').show(); $('quicksearchT').focus(); return false;"><?php echo Horde::img('search.png', _("Search")) ?></a>
 <div id="quicksearch" style="display:none">
  <input type="text" name="quicksearchT" id="quicksearchT" for="tasks-body" empty="tasks_empty" />
  <small>
   <a title="<?php echo _("Close Search") ?>" href="#" onclick="$('quicksearch').hide(); $('quicksearchT').value = ''; QuickFinder.filter($('quicksearchT')); $('quicksearchL').show(); return false;">X</a>
   <?php echo Horde::link(Horde::url('search.php')) . _("More Options...") ?></a>
  </small>
 </div>
</div>
