<input type="hidden" name="page" value="{PAGE}">

<!-- BEGIN DYNAMIC BLOCK: general_block -->
<div class="formArea"> <!-- Settings usage policy -->
    <fieldset>
        <legend>{CFG_USE_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr>
                <td class="name"><label for="fid-srv_cfg_use">{SRV_CFG_USE_TEXT}</label></td>
                <td><input type="checkbox" class="checkbox" name="srv_cfg_use" value="1" id="fid-srv_cfg_use" {SRV_CFG_USE_CHECKED}></td>
            </tr>
            <tr>
                <td class="name"><label for="fid-usr_cfg_use">{USR_CFG_USE_TEXT}</label></td>
                <td><input type="checkbox" class="checkbox" name="usr_cfg_use" value="1"
                           id="fid-usr_cfg_use" {USR_CFG_USE_CHECKED} {USR_CFG_USE_DISABLED}>{SPAMFILTER_DISABLE_REASON}</td>
            </tr>
        </table>
    </fieldset>
</div> <!-- Settings usage policy -->

<div class="formArea"> <!-- Server settings -->
    <fieldset>
        <legend>{SETTINGS_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {HITS_REQ_ERROR}>
                <td class="name"><label for="fid-hits_req">{HITS_REQ_TEXT}</label></td>
                <td><input type="text" name="hits_req" id="fid-hits_req" value="{HITS_REQ_VALUE}" size="6" maxlength="4"></td>
            </tr>
            <tr {MAX_MAIL_ERROR}>
                <td class="name"><label for="fid-max_mail">{MAX_MAIL_TEXT}</label></td>
                <td>
                    <input type="checkbox" class="checkbox" id="fid-max_mail_limit" name="max_mail_limit" value="false" {MAX_MAIL_LIMIT_CHECKED}
                           onClick="return max_mail_limit_oC(max_mail, max_mail_limit);">
                    &nbsp;{SIZE_LIMIT_TEXT}
                    &nbsp;<input type="text" name="max_mail" id="fid-max_mail" value="{MAX_MAIL_VALUE}" {MAX_MAIL_INPUT_DISABLED} size="10" maxlength="9">
                    <label for="fid-max_mail">{MAX_MAIL_UNITS_TEXT}</label>
                </td>
            </tr>
            <tr {MAX_THREADS_ERROR}>
                <td class="name"><label for="fid-max_spam_threads">{MAX_THREADS_TEXT}{MAX_THREADS_REQ}</label></td>
                <td>
                    <input type="text" name="max_spam_threads" id="fid-max_spam_threads" value="{MAX_THREADS_VALUE}" {MAX_THREADS_DISABLED} size="3" maxlength="2">
                    &nbsp;{MAX_THREADS_DESC}
                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-use_tag">{USE_TAG_TEXT}</label></td>
                <td>
                    <input type="checkbox" class="checkbox" name="use_tag" value="1" id="fid-use_tag" {USE_TAG_CHECKED} onClick="use_tag_changed(document.forms[0])"
                           onKeyPress="use_tag_changed(document.forms[0])">
                    &nbsp;<label for="fid-tag">{TAG_TEXT}</label>
                    &nbsp;<input type="text" name="tag" id="fid-tag" value="{TAG_VALUE}" size="20" maxlength="50" {TAG_DISABLED}>
                </td>
            </tr>
            <!-- BEGIN DYNAMIC BLOCK: alert_message -->
            <tr {ALARM_MESSAGE_ERROR}>
                <td class="name"><label for="fid-alarm_message">{ALARM_MESSAGE_TEXT}</label></td>
                <td><textarea name="report_text" id="fid-alarm_message" rows="5" cols="80">{ALARM_MESSAGE_VALUE}</textarea></td>
            </tr>
            <!-- END DYNAMIC BLOCK: alert_message -->
        </table>
    </fieldset>
</div> <!-- Server settings -->

<div class="formArea"> <!-- Ok Languages -->
    <fieldset>
        <legend>{LANGUAGE_GROUP_LEGEND}</legend>
        {LANGUAGE_GROUPS}
    </fieldset>
</div> <!-- Ok Languages -->

<div class="formArea"> <!-- Ok Locales -->
    <fieldset>
        <legend>{LOCALE_GROUP_LEGEND}</legend>
        {LOCALE_GROUPS}
    </fieldset>
</div> <!-- Ok Locales -->

<div class="formArea">
    <table width="100%" class="buttons btns-box" cellspacing="0" cellpadding="0">
        <tr>
            <td class="main" width="0">{MISC_BUTTONS}</td>
            <td class="footnote">{FOOTNOTE}</td>
            <td class="misc" width="0">{SUBMIT_BUTTONS}{UPDATE_BUTTON}{CANCEL_BUTTON}</td>
        </tr>
    </table>

    <input type="hidden" name="cmd" value="{CMD}">
    <input type="hidden" name="previous_page" value="{PREVIOUS_PAGE}">

</div>
<!-- END DYNAMIC BLOCK: general_block -->

<!-- BEGIN DYNAMIC BLOCK: blacklist_block -->
<div class="formArea"> <!-- Black list -->
    <fieldset>
        <legend>{BLACKLIST_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {BLACK_MAIL_ERROR}>
                <td class="name"><label for="fid-blacklist-pattern">{EMAIL_TEXT}</label></td>
                <td>
                    <input type="text" name="black_mail" id="fid-blacklist-pattern" value="{BLACK_MAIL_VALUE}" size="50" maxlength="70">
                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-blacklist">{BLACKLIST_LIST_TEXT}</label></td>
                <td>
                    <select name="blacklist" id="fid-blacklist" size="12" multiple onChange="syn(this)">
                        <!-- BEGIN DYNAMIC BLOCK: blacklist -->
                        <option value='{BLACK_MAIL_KEY}'>{BLACK_MAIL_VALUE}
                            <!-- END DYNAMIC BLOCK: blacklist -->
                            {SELECT_UNDERLINE}
                    </select>
                </td>
            </tr>
        </table>

        <div class="formButtons">
            {BLACKLIST_ADD_BUTTON}
            {BLACKLIST_REMOVE_BUTTON}
        </div>
    </fieldset>
</div> <!-- Black list -->
<!-- END DYNAMIC BLOCK: blacklist_block -->

<!-- BEGIN DYNAMIC BLOCK: whitelist_block -->
<div class="formArea"> <!-- White list -->
    <fieldset>
        <legend>{WHITELIST_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {WHITE_MAIL_ERROR}>
                <td class="name"><label for="fid-whitelist-pattern">{EMAIL_TEXT}</label></td>
                <td>
                    <input type="text" name="white_mail" id="fid-whitelist-pattern" value="{WHITE_MAIL_VALUE}" size="50" maxlength="70">
                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-whitelist">{WHITELIST_LIST_TEXT}</label></td>
                <td>
                    <select name="whitelist" id="fid-whitelist" size="12" multiple onChange="syn(this)">
                        <!-- BEGIN DYNAMIC BLOCK: whitelist -->
                        <option value='{WHITE_MAIL_KEY}'>{WHITE_MAIL_VALUE}
                            <!-- END DYNAMIC BLOCK: whitelist -->
                            {SELECT_UNDERLINE}
                    </select>
                </td>
            </tr>
        </table>

        <div class="formButtons">
            {WHITELIST_ADD_BUTTON}
            {WHITELIST_REMOVE_BUTTON}
        </div>
    </fieldset>
</div> <!-- White list -->
<!-- END DYNAMIC BLOCK: whitelist_block -->

<!-- BEGIN DYNAMIC BLOCK: ignorelist_block -->
<div class="formArea"> <!-- Ignore list -->
    <fieldset>
        <legend>{IGNORELIST_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {IGNORE_MAIL_ERROR}>
                <td class="name"><label for="fid-ignorelist-pattern">{EMAIL_TEXT}</label></td>
                <td>
                    <input type="text" name="ignore_mail" id="fid-ignorelist-pattern" value="{IGNORE_MAIL_VALUE}" size="50" maxlength="70">
                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-ignorelist">{IGNORELIST_LIST_TEXT}</label></td>
                <td>
                    <select name="ignorelist" id="fid-ignorelist" size="12" multiple onChange="syn(this)">
                        <!-- BEGIN DYNAMIC BLOCK: ignorelist -->
                        <option value='{IGNORE_MAIL_KEY}'>{IGNORE_MAIL_VALUE}
                            <!-- END DYNAMIC BLOCK: ignorelist -->
                            {SELECT_UNDERLINE}
                    </select>
                </td>
            </tr>
        </table>

        <div class="formButtons">
            {IGNORELIST_ADD_BUTTON}
            {IGNORELIST_REMOVE_BUTTON}
        </div>
    </fieldset>
</div> <!-- Ignore list -->
<!-- END DYNAMIC BLOCK: ignorelist_block -->

<!-- BEGIN DYNAMIC BLOCK: trustednetworks_block -->
<div class="formArea"> <!-- Trusted Networks list -->
    <fieldset>
        <legend>{TN_TEXT}</legend>
        <table class="formFields" cellspacing="0" width="100%">
            <tr {TN_ADDR_ERROR}>
                <td class="name"><label for="fid-tn_addr1">{TN_ADDR_TEXT}</label></td>
                <td>
                    <input type="text" name="tn_addr1" id="fid-tn_addr1" value="{TN_ADDR1_VALUE}" size="4" maxlength="3"> .
                    <input type="text" name="tn_addr2" id="fid-tn_addr2" value="{TN_ADDR2_VALUE}" size="4" maxlength="3"> .
                    <input type="text" name="tn_addr3" id="fid-tn_addr3" value="{TN_ADDR3_VALUE}" size="4" maxlength="3"> .
                    <input type="text" name="tn_addr4" id="fid-tn_addr4" value="{TN_ADDR4_VALUE}" size="4" maxlength="3"> /
                    <input type="text" name="tn_mask" id="fid-tn_mask" value="{TN_ADDR4_VALUE}" size="3" maxlength="2">

                </td>
            </tr>
            <tr>
                <td class="name"><label for="fid-tnlist">{TN_LIST_TEXT}</label></td>
                <td>
                    <select name="tnlist" id="fid-tnlist" size="12" multiple onChange="syn(this)">
                        <!-- BEGIN DYNAMIC BLOCK: tnlist -->
                        <option value='{TN_KEY}'>{TN_VALUE}
                            <!-- END DYNAMIC BLOCK: tnlist -->
                            {SELECT_UNDERLINE}
                    </select>
                </td>
            </tr>
        </table>

        <div class="formButtons">
            {TN_ADD_BUTTON}
            {TN_REMOVE_BUTTON}
        </div>
    </fieldset>
</div> <!-- Trusted Networks list -->
<!-- END DYNAMIC BLOCK: trustednetworks_block -->
