codekasten/ql-web/trunk/template/filter_form.cs
lars 385f0cc3ad support for password change added
support for spam options added
2006-01-29 17:54:38 +00:00

78 lines
3.2 KiB
C#

<div class="title">
<h1><?cs var:html_escape(Lang.Title.Filter) ?></h1>
</div>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.FilterAction) ?> </legend>
<form method="post" action="<?cs var:Config.ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li><input type="radio" name="filter_type" id="filter_none" value="none" <?cs
if:(!(Data.isSpamMove || Data.isSpamMark))
?>checked="checked"<?cs /if ?>/>
<label for="filter_none"><?cs var:Lang.Misc.SpamAction.None
?></label>
</li>
<li><input type="radio" name="filter_type" id="filter_mark" value="mark" <?cs
if:Data.isSpamMark ?>checked="checked"<?cs /if ?>/>
<label for="filter_mark"><?cs var:Lang.Misc.SpamAction.Mark
?></label>
</li>
<li><input type="radio" name="filter_type" id="filter_move" value="move" <?cs
if:Data.isSpamMove ?>checked="checked"<?cs /if ?>/>
<label for="filter_move"><?cs var:Lang.Misc.SpamAction.Move
?></label>
</li>
<li><label for="pw"><?cs var:html_escape(Lang.Misc.Password) ?>:</label>
<input type="password" name="pw" id="pw" size="20" /></li>
</ul>
<input type="hidden" name="action" value="filter_action_update" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Filter) ?></button>
</form>
</fieldset>
<fieldset class="form">
<legend><?cs var:html_escape(Lang.Legend.FilterOptions) ?> </legend>
<form method="post" action="<?cs var:Config.ScriptName ?>" enctype="application/x-www-form-urlencoded">
<ul>
<li><label for="spam_score"><?cs
var:html_escape(Lang.Misc.SpamOptions.Score) ?>: </label>
<select name="spam_score" id="spam_score">
<?cs loop:i = #1, #20, #1 ?><?cs set:val='' + i + '.0'
?><option <?cs
if:(Data.Filter.Score == val) ?>selected="selected"<?cs
/if ?>><?cs var:val ?></option>
<?cs /loop ?>
</select></li>
<li><input type="checkbox" name="spam_attach_text" id="spam_attach_text" <?cs
if:(Data.Filter.AttachText == 1) ?>checked="checked"<?cs /if ?> />
<label for="spam_attach_text"><?cs
var:html_escape(Lang.Misc.SpamOptions.AttachText) ?></label>
</li>
<li><input type="checkbox" name="spam_bayes" id="spam_bayes" <?cs
if:(Data.Filter.Bayes == 1) ?>checked="checked"<?cs /if ?> />
<label for="spam_bayes"><?cs
var:html_escape(Lang.Misc.SpamOptions.Bayes) ?></label>
</li>
<li><label for="spam_subject"><?cs var:Lang.Misc.SpamOptions.Subject
?>: </label>
<input type="text" id="spam_subject" name="spam_subject" size="20"
value="<?cs var:html_escape(Data.Filter.Subject) ?>" />
</li>
<li><label for="spam_whitelist"><?cs
var:html_escape(Lang.Misc.SpamOptions.WhiteList) ?></label>
<ul><li><textarea name="spam_whitelist" id="spam_whitelist"
cols="60" rows="4"><?cs
var:html_escape(Data.Filter.WhiteList) ?></textarea>
</li></ul></li>
<li><label for="pw2"><?cs var:html_escape(Lang.Misc.Password) ?>:</label>
<input type="password" name="pw" id="pw2" size="20" /></li>
</ul>
<input type="hidden" name="action" value="filter_options_update" />
<button type="submit" name="send" value="do"><?cs var:html_escape(Lang.Buttons.Filter) ?></button>
</form>
</fieldset>