<tr><td colspan="2">&nbsp;</td></tr>

<tr class="header">
    <td align="left" class="header" colspan="2" nowrap="nowrap"><b><?php echo _("Rule Definition") ?></b></td>
</tr>
<tr>
    <td class="light" align="right"><b><?php echo _("Field") ?>&nbsp;</b></td>
    <td class="item" align="left">

<table border="0" width="100%" cellpadding="0">
<tr>
    <td align="left">
        <input class="item" type="checkbox" name="fields[]" value="to" /><b><?php echo _("To:") ?></b>&nbsp;&nbsp;
        <input class="item" type="checkbox" name="fields[]" value="cc" /><b><?php echo _("Cc:") ?></b>&nbsp;&nbsp;
        <input class="item" type="checkbox" name="fields[]" value="from" /><b><?php echo _("From:") ?></b>&nbsp;&nbsp;
        <input class="item" type="checkbox" name="fields[]" value="subject" /><b><?php echo _("Subject:") ?></b>&nbsp;&nbsp;
        <input class="item" type="checkbox" name="fields[]" value="body" /><b><?php echo _("Body") ?></b>&nbsp;&nbsp;
    </td>
<?php if ($conf['user']['online_help'] && $browser->hasFeature('javascript')): ?>
    <td align="right"><?php echo Help::link('imp', 'filters-field') ?></td>
<?php else: ?>
    <td>&nbsp;</td>
<?php endif; ?>
</tr>
</table>

    </td>
</tr>
<tr>
    <td class="light" align="right"><b><?php echo _("Text") ?>&nbsp;</b></td>
    <td class="item" align="left">

<table border="0" width="100%" cellpadding="0">
<tr>
    <td align="left">
        <input type="text" class="fixed" size="50" name="text" />
    </td>
<?php if ($conf['user']['online_help'] && $browser->hasFeature('javascript')): ?>
    <td align="right"><?php echo Help::link('imp', 'filters-text') ?></td>
<?php else: ?>
    <td>&nbsp;</td>
<?php endif; ?>
</tr>
</table>

    </td>
</tr>
<tr>

    <td class="light" align="right"><b><?php echo _("Action") ?>&nbsp;</b></td>
    <td class="item" align="left">

<table border="0" width="100%" cellpadding="0">
<tr>
    <td class="item" align="left">
        <input class="item" type="radio" name="action" value="delete" checked="checked" onclick="if (document.filters.folder) document.filters.folder.selectedIndex=0" /><b><?php echo _("delete message") ?></b>&nbsp;&nbsp;
<?php if (isset($options) && $options): ?>
        <input class="item" type="radio" name="action" value="move" onclick="document.filters.folder.focus()" /><b><?php echo _("move message to") ?></b>&nbsp;
        <select name="folder" onchange="document.filters.action[<?php echo $actionsList['move'] ?>].checked=true"><?php echo "\n" . $options ?></select>
<?php endif; ?>
    </td>
<?php if ($conf['user']['online_help'] && $browser->hasFeature('javascript')): ?>
    <td align="right"><?php echo Help::link('imp', 'filters-action') ?></td>
<?php else: ?>
    <td>&nbsp;</td>
<?php endif; ?>
</tr>
</table>

    </td>
</tr>
<tr>
    <td>&nbsp;</td>
    <td class="header" valign="middle">
        <input type="button" class="button" name="button" onclick="document.filters.submit();" value="<?php echo _("Create") ?>" />
        <input type="button" class="button" onclick="resetForm()" value="<?php echo _("Reset") ?>" />
        <input type="button" class="button" name="back" onclick="document.location.href='<?php echo Horde::applicationUrl('prefs.php?group=filters', true) ?>'" value="<?php echo _("Cancel") ?>" />
    </td>
</tr>

</table>
</form>

<?php if (isset($errorRaised) && $errorRaised): ?>
<script language="JavaScript" type="text/javascript">
<!--
    handleErrors();
// -->
</script>
<?php endif; ?>
