<!-- INCLUDE header.tpl -->
<!-- IF '${MSG_ALERT}' != '' -->

<div class="alert alert-success">
    <button class="close" data-dismiss="alert">×</button>
    ${MSG_ALERT} </div>
<!-- END IF -->
<!-- IF '${ERROR_ALERT}' != '' -->
<div class="alert alert-error">
    <button class="close" data-dismiss="alert">×</button>
    <strong>${STR_ERROR}!</strong> ${ERROR_ALERT} </div>
<!-- END IF -->
<form class="form-horizontal" method="POST" action="${ACTION}">
    <div class="control-group">
        <label class="control-label-large" for="language">${STR_LANGUAGE}:</label>
        <div class="controls-large">
            <select class="span3 form-control" name="language">
                <option value="en" <!-- IF '${LANGUAGE}' == 'en' --> selected="selected" <!-- END IF -->>${STR_LANGUAGE_EN}</option>
                <option value="ru" <!-- IF '${LANGUAGE}' == 'ru' --> selected="selected" <!-- END IF -->>${STR_LANGUAGE_RU}</option>
            </select>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="email">${STR_ADMIN_EMAIL}:</label>
        <div class="controls-large">
            <input type="text" class="form-control" value="${EMAIL}" name="email">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="msg_len">${STR_NUMBER_CHARS_IN_MSG}:</label>
        <div class="controls-large">
            <input type="text" name="msg_len"  value="${MSG_LEN}">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="number_post">${STR_NUMBER_OF_COMMENTS}:</label>
        <div class="controls-large">
            <input type="text" name="number_post" value="${NUMBER_POST}">
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="order_pages">${STR_HOW_TO_SORT_MESSAGE}:</label>
        <div class="controls-large">
            <label class="radio inline">
                <input type="radio"  <!-- IF '${ORDER_PAGES}' == 1 -->checked="checked"<!-- END IF --> value="1" name="order_pages">${STR_BY_INCREACE}
            </label>
            <label class="radio inline">
                <input type="radio" <!-- IF '${ORDER_PAGES}' == 2 --> checked="checked" <!-- END IF --> value="2" name="order_pages">${STR_BY_DECREASE}
            </label>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="admin">${STR_ADD_NEW_MESSAGES_TO_MODERATION}:</label>
        <div class="controls-large">
            <input type=checkbox name="admin"  <!-- IF '${ADMIN}' == 'yes' -->checked="checked" <!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="send">${STR_SEND_NOTIFICATION}:</label>
        <div class="controls-large">
            <input type=checkbox name="send"  <!-- IF '${SEND}' == 'yes' -->checked="checked"<!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="show_captcha">${STR_ASK_SECURITY_CODE}:</label>
        <div class="controls-large">
            <input type=checkbox name="show_captcha" <!-- IF '${SHOW_CAPTCHA}' == 'yes' --> checked="checked"<!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="show_smiles">${STR_SHOW_SMILES}:</label>
        <div class="controls-large">
            <input type=checkbox name="show_smiles" <!-- IF '${SHOW_SMILES}' == 'yes' --> checked="checked" <!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="show_email">${STR_SHOW_FIELD_EMAIL}:</label>
        <div class="controls-large">
            <input type=checkbox name="show_email" <!-- IF '${SHOW_EMAIL}' == 'yes' --> checked="checked" <!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="show_city">${STR_SHOW_FIELD_CITY}:</label>
        <div class="controls-large">
            <input type=checkbox name="show_city" <!-- IF '${SHOW_CITY}' == 'yes' -->checked="checked"<!-- END IF -->>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label-large" for="show_city">${STR_SHOW_FIELD_WEBSITE}:</label>
        <div class="controls-large">
            <input type=checkbox name="show_site"  <!-- IF '${SHOW_SITE}' == 'yes' -->checked="checked" <!-- END IF -->>
        </div>
    </div>
    <div class="form-actions">
        <input class="btn btn-success" name="action" type="submit" value="${BUTTON_APPLY}">
    </div>
</form>
<!-- INCLUDE footer.tpl -->
