<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr><td class="menu"><table border="0" width="100%"><tr>
<td width="100%"><b>Add Link</b></td>
<?php if (!$prefs->isLocked('default_tasklist') && (count($tasklists) > 1 || !count($GLOBALS['display_tasklists']))): ?>
<?php Menu::printItem('#', _("Show"), 'nag.gif', null, null, 'return listTasklistsSubmit();', '__noselection'); ?>
<td class="light" align="left">
<form action="<?php echo Horde::selfURL(true); ?>" method="post" name="tasklistsmenu">
<?php Horde::pformInput() ?>
<select name="display_tasklist" onchange="listTasklistsSubmit();">
  <option value=""><?php echo _("Show Tasklists:") ?></option>
<?php foreach ($tasklists as $id => $tasklist): ?>
  <option value="<?php echo $id ?>"><?php echo (in_array($id, $GLOBALS['display_tasklists']) ? '* ' : '') . $tasklist->getShareName() ?></option>
<?php endforeach; ?>
</select>
</form>
<script language="JavaScript" type="text/javascript">
<!--
var loading;
function listTasklistsSubmit()
{
    document.tasklistsmenu.submit();
    return false;
}
// -->
</script>
</td>
<?php endif; ?>

</tr></table></td></tr></table><br />
