<p class="formstyle">
    {include file="r/parts/pre_field.tpl" title="correspondence_change_security_to" labelclass="label2"}
    <a class="dialog_make_text_btn ui-corner-all {if $correspondence->security eq 3}ui-state-current{else}ui-state-active{/if}"
       onclick="{$action_change_security_do_member}"
       >{security value=3}{$i.rights_r3}</a>
    {if $has_right_admin}
        <a class="dialog_make_text_btn ui-corner-all {if $correspondence->security eq 2}ui-state-current{else}ui-state-active{/if}" 
       onclick="{$action_change_security_do_admin}"
           >{security value=2}{$i.rights_r2}</a>
    {/if}
    {if $has_right_mgtm}
        <a class="dialog_make_text_btn ui-corner-all {if $correspondence->security eq 1}ui-state-current{else}ui-state-active{/if}" 
       onclick="{$action_change_security_do_mgmt}"
           >{security value=1}{$i.rights_r1}</a>
        {include file="r/parts/past_field.tpl"}
    {/if}
</p>