{include file="common/head.tpl.html" html5=true}
{if $show_upload} {$lang.emailoptions_manage_cert} {else} {$lang.emailoptions_cert_details} {/if}
{help->link name="email_certs_detail" class="help-explorer"}
{if $show_upload} {/if} {if $show_info} {if $mode == 'foreign' && $show_settings} {elseif $mode == 'own' && $show_settings} {/if} {/if}
{$lang.emailoptions_cert_choose}: {html->fileupload accept=$upload_accept action="`$SELF_GET`&upload" onbeforeupload="ask_for_pass" onuploaded="handle_upload(result);" single=true}
{$lang.emailoptions_cert_client}
{$lang.emailoptions_cert_email}: {$cert_data.email}
{$lang.emailoptions_cert_client_cn}: {$cert_data.client_cn}
{$lang.emailoptions_cert_client_o}: {$cert_data.client_o}
{$lang.emailoptions_cert_client_ou}: {$cert_data.client_ou}
{$lang.emailoptions_cert_serial}: {$cert_data.serial}
{$lang.emailoptions_cert_issuer}:
{$lang.emailoptions_cert_issuer_cn}: {$cert_data.issuer_cn}
{$lang.emailoptions_cert_issuer_o}: {$cert_data.issuer_o}
{$lang.emailoptions_cert_issuer_ou}: {$cert_data.issuer_ou}
{$lang.emailoptions_cert_startdate}: {$cert_data.startdate} {if $show_expired_msg1} {$lang.emailoptions_cert_expired1} {/if}
{$lang.emailoptions_cert_enddate}: {$cert_data.enddate} {if $show_expired_msg2} {$lang.emailoptions_cert_expired2} {/if}
{$lang.emailoptions_cert_sha1}: {$cert_data.sha1}
{$lang.emailoptions_cert_trust_label}: {if $cert_data.trusted}{$lang.emailoptions_cert_trust_text_yes}{else}{$lang.emailoptions_cert_trust_text_no}{/if}
{html->checkbox value="1" name="encrypt" selected=$cert_data.trusted_by_user output=$lang.emailoptions_cert_trust onchange="ajax.exec('email','ajax_set_cert_trust', `$cert_data.id`, (this.checked ? 1 : 0))"}
{html->checkbox value="1" name="encrypt" selected=$cert_data.encrypt output=$lang.emailoptions_cert_use_for_encryption onchange="ajax.exec('email','ajax_set_cert_encryption', `$cert_data.id`, (this.checked ? 1 : 0))"}
{$lang.global_settings}: {html->checkbox value="1" name="sign" selected=$cert_data.sign output=$lang.emailoptions_sign_messages_default}
{html->checkbox value="1" name="encrypt" selected=$cert_data.encrypt output=$lang.emailoptions_encrypt_messages_if_possible}
{if $mode == 'foreign' && $show_settings} {cssbutton->click string=$lang.emailoptions_cert_validate_now script="ajax.exec('email','ajax_validate_cert',`$cert_data.id`)" } {cssbutton->sub name="delete" string=$lang.emailoptions_del_cert} {elseif $mode == 'own' && $show_settings} {cssbutton->sub name="save" string=$lang.global_save} {cssbutton->sub name="delete" string=$lang.emailoptions_del_cert} {/if} {cssbutton->link link="javascript:window.close()" string=$lang.global_close}
{include file="common/foot.tpl.html"}