{include file="common/head.tpl.html" nocache="true" html5=true}
{$lang.emailfilter_filtername}:
{html->input_text name="filter[name]" value=$filter.name size=10 class="f-width"}
{help->link name="email_filter_new" class="help-explorer"}
{$lang.emailfilter_filterfor} {$lang.emailfilter_filtermsg}
{html->radios name="filter[ctype]" options=$ctypes selected=$filter.ctype separator="    "}
{foreach key=id item=cond from=$conditions} {/foreach}
 
{cssbutton->sub name="del" string="- `$lang.emailfilter_filterdel`"}
{cssbutton->sub name="add" string="`$lang.emailfilter_filteradd` +"}
{$lang.emailfilter_doaction}:
{if $smarty.const.TICKETS} {/if} {if $smarty.const.PROJECTS} {/if} {if $smarty.const.PROJECTS} {/if} {if $userid > 0} {/if}
{html->radios name="actions[copytocontact][active]" values=1 output=$lang.emailfilter_copytocontact selected=$actions.copytocontact.active onclick="check_click(this);"}  
{html->radios name="actions[copytocontact][active]" values=2 output=$lang.emailfilter_movetocontact selected=$actions.movetocontact.active onclick="check_click(this);"}  
{html->radios name="actions[copytoticket][active]" values=1 output=$lang.emailfilter_copytoticket selected=$actions.copytoticket.active onclick="check_click(this);"}  
{html->radios name="actions[copytoticket][active]" values=2 output=$lang.emailfilter_movetoticket selected=$actions.movetoticket.active onclick="check_click(this);"}  
{html->radios name="actions[copytoproject][active]" values=1 output=$lang.emailfilter_copytoproject selected=$actions.copytoproject.active onclick="check_click(this);"}  
{html->radios name="actions[copytoproject][active]" values=2 output=$lang.emailfilter_movetoproject selected=$actions.movetoproject.active onclick="check_click(this);"}  
{html->radios name="actions[copytocontact2][active]" values=1 output=$lang.emailfilter_copytocontact2 selected=$actions.copytocontact2.active onclick="check_click(this);"} {controls->select_object modul=1 name="actions[copytocontact2][value]" value=$actions.copytocontact2.value width="100%"}
{html->radios name="actions[copytocontact2][active]" values=2 output=$lang.emailfilter_movetocontact2 selected=$actions.movetocontact2.active onclick="check_click(this);"} {controls->select_object modul=1 name="actions[movetocontact2][value]" value=$actions.movetocontact2.value width="100%"}
{html->radios name="actions[copytoproject2][active]" values=1 output=$lang.emailfilter_copytoproject2 selected=$actions.copytoproject2.active onclick="check_click(this);"} {controls->select_object modul=3 name="actions[copytoproject2][value]" value=$actions.copytoproject2.value width="100%"}
{html->radios name="actions[copytoproject2][active]" values=2 output=$lang.emailfilter_movetoproject2 selected=$actions.movetoproject2.active onclick="check_click(this);"} {controls->select_object modul=3 name="actions[movetoproject2][value]" value=$actions.movetoproject2.value width="100%"}
{html->radios name="actions[copytofolder][active]" values=1 output=$lang.emailfilter_copytofolder selected=$actions.copytofolder.active onclick="check_click(this);"}
{html->radios name="actions[copytofolder][active]" values=2 output=$lang.emailfilter_movetofolder selected=$actions.movetofolder.active onclick="check_click(this);"}
{html->radios name="actions[copytouser][active]" values=1 output=$lang.emailfilter_copytouser selected=$actions.copytouser.active onclick="check_click(this);"}
{html->radios name="actions[copytouser][active]" values=2 output=$lang.emailfilter_movetouser selected=$actions.movetouser.active onclick="check_click(this);"}
{html->radios name="actions[markasspam][active]" values=1 output=$lang.emailfilter_markasspam selected=$actions.markasspam.active onclick="check_click(this);"}  
{html->radios name="actions[markasspam][active]" values=2 output=$lang.emailfilter_markasnotspam selected=$actions.markasnotspam.active onclick="check_click(this);"}  
{html->checkbox name="actions[forward][active]" value=1 output=$lang.emailfilter_forwardmsg selected=$actions.forward.active}
{html->checkbox name="actions[markflagged][active]" value=1 output=$lang.emailfilter_markflagged selected=$actions.markflagged.active}  
{html->checkbox name="actions[markread][active]" value=1 output=$lang.emailfilter_markread selected=$actions.markread.active}  
{html->checkbox name="actions[markanswered][active]" value=1 output=$lang.emailfilter_markanswered selected=$actions.markanswered.active}  
{html->checkbox name="actions[delmsg][active]" value=1 output=$lang.emailfilter_delmsg selected=$actions.delmsg.active}  
 
{cssbutton->sub name="save" string=$lang.global_saveclose} {cssbutton->click script="window.close()" string=$lang.global_cancel}
{include file="common/foot.tpl.html"}