<?php $flags_val = $prefs->getValue('filter_seen'); ?>
<p />

<form method="post" name="filtersettings" action="<?php echo Horde::applicationUrl('filters.php') ?>">
<input type="hidden" name="actionID" value="settings_save">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr class="header">
    <td class="header" align="left">
      <?php echo _("Additional Settings") ?>
    </td>
  </tr>
  <tr>
    <td class="control">
      <table width="100%" cellspacing="0" cellpadding="0" class="item">
        <tr>
          <td align="left">
            <table width="100%" border="0" cellpadding="0">
              <tr>
                <td class="item" align="left" colspan="2">
                  <input type="checkbox" name="show_filter_msg"<?php if ($prefs->getValue('show_filter_msg')) echo " checked=\"checked\""; ?> />&nbsp;
                  <?php echo _("Display detailed notification when each filter is applied?") ?>
                </td>
                <td class="item" align="right" width="1%">
                  <?php echo Help::link('ingo', 'pref-show_filter_msg') ?>
                </td>
              </tr>
              <tr>
                <td colspan="2" class="item" align="left" width="99%"><?php echo _("Filter Options") ?>&nbsp;
                  <select id="filter_seen" name="filter_seen">
                    <option value="0"<?php if (empty($flags_val)) echo ' selected="selected"'; ?>><?php echo _("Filter All Messages") ?></option>
                    <option value="<?php echo INGO_SCRIPT_FILTER_UNSEEN ?>"<?php if ($flags_val == INGO_SCRIPT_FILTER_UNSEEN) echo ' selected="selected"'; ?>><?php echo _("Filter Only Unseen Messages") ?></option>
                    <option value="<?php echo INGO_SCRIPT_FILTER_SEEN ?>"<?php if ($flags_val == INGO_SCRIPT_FILTER_SEEN) echo ' selected="selected"'; ?>><?php echo _("Filter Only Seen Messages") ?></option>
                  </select>
                </td>
                <td class="item" align="right" width="1%">
                  <?php echo Help::link('ingo', 'pref-filter_seen') ?>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="control" style="padding:2px">
      <input class="button" type="button" onclick="document.filtersettings.submit(); return true;" value="&nbsp;<?php echo _("Save Settings") ?>&nbsp;">
    </td>
  </tr>
</table>
</form>
