<link rel="stylesheet" type="text/css" href="/modules/mail/css/style.css?{$revision}">
<script>
    $(function() {
        $('.datepicker').datepicker({
            showOn:"button",
            dateFormat: lang.date_js_format,
            showAlways: true,
            buttonImage: "images/calbtn.png",
            buttonImageOnly: true,
            buttonText: "Calendar",
            showAnim: (('\v'=='v')?"":"show"),  // в ie не включаем анимацию, тормозит
        }).attr('placeholder', lang.date_placeholder);
    });
</script>
<div align="center" class="f13">
    <a href="?module=mail">{$lang['modules']['mail']['inset1']}</a> /
    <a href="?module=mail&path=table">{$lang['modules']['mail']['inset2']}</a> /
    <a href="?module=mail&path=mail">{$lang['modules']['mail']['inset3']}</a> /
    <a href="?module=mail&path=server">{$lang['modules']['mail']['inset4']}</a> /
    <a href="?module=mail&path=black">{$lang['modules']['mail']['inset5']}</a> /
    {$lang['modules']['mail']['inset6']}
</div>

<p></p>
{if $trial}
    <div class="c_r" align="center">{$lang['modules']['mail']['activate']}</div>
{else}
<div align="center">
    {$lang['modules']['mail']['inset6top']}
    <p></p>
    <form method="post" action="">
        <table cellpadding="2" class="for_table">
            <tr>
                <td align="right">{$lang['modules']['mail']['inset6mail']}<span class="help_bt" h_id="Field_name"></span>:</td>
                <td>
                    <select class="form-control form-control-160" name="mail" title="">
                        <option></option>
                        {$accaunt}
                    </select>
                </td>
            </tr>
            <tr>
                <td align="right">{$lang['modules']['mail']['inset6date1']}<span class="help_bt" h_id="Field_name"></span>:</td>
                <td>
                    <input class="form-control form-control-160" type="text" id="datepicker1" class="datepicker" name="date1" required title="">
                </td>
            </tr>
            <tr>
                <td align="right">{$lang['modules']['mail']['inset6date2']} <span class="help_bt" h_id="Field_name"></span>:</td>
                <td>
                    <input class="form-control form-control-160" type="text" id="datepicker2" class="datepicker" name="date2" required title="">
                </td>
            </tr>
        </table>
        <div class="clear"></div>
        <p></p>
        <input type=hidden name="csrf" value="{$csrf}">
        <input type="hidden" name="action" value="load">
        <input class="btn btn-default btn-sm" type=submit value="{$lang['modules']['mail']['insetsave']}">
        <button class="btn btn-default btn-sm" type="button"  onclick="window.location='../../../edit_modules.php?module=mail&path=sets';">{$lang['modules']['mail']['insetcancel']}</button>
    </form>
    <p></p>
    {$status3}
</div>
{/if}