<script>
    $(function() {
        $('#Type').change(function(){
            $('.data_ress').hide();
            $('#' + $(this).val()).show();
        });
    });</script>
<div class="title">{{lang.adm_menu_t5}}</div>
<div class="mess">
    <form method="post">
        {{lang.adm_adays_orders_m1}}: {{count}} {{lang.w_c}}<br>
        {{lang.adm_adays_orders_m5}}:<br>
        <Select id="Type" value="Type">
            <option value="none" selected disabled>[{{lang.w_none}}]</option>
            <option value="type">{{lang.adm_type_ado_1}}</option>
            <option value="servers">{{lang.adm_type_ado_2}}</option>
        </Select>
        <div class="data_ress" id="type" style="display:none">
            {{lang.adm_adays_orders_m3}}:<br>
            <select name="list">
                <option value="1">{{lang.ord_t_vhost}} ({{lang.adm_adays_orders_m2}}: {{mc.vhost}} {{lang.w_c}})</option>
                <option value="2">{{lang.ord_t_ress}} ({{lang.adm_adays_orders_m2}}: {{mc.ress}} {{lang.w_c}})</option>
                <option value="3">{{lang.ord_t_vds}} ({{lang.adm_adays_orders_m2}}: {{mc.vds}} {{lang.w_c}})</option>
                <option value="4">{{lang.ord_t_dedic}} ({{lang.adm_adays_orders_m2}}: {{mc.dedic}} {{lang.w_c}})</option>
                <option value="5">{{lang.ord_t_domain}} ({{lang.adm_adays_orders_m2}}: {{mc.domain}} {{lang.w_c}})</option>
            </select><br>
            {{lang.adm_adays_orders_m6}}:<br>
            <select name="time">
                <option value="3600">{{lang.time_m1}}</option>
                <option value="43200">{{lang.time_m2}}</option>
                <option value="86400">{{lang.time_m3}}</option>
                <option value="259200">{{lang.time_m4}}</option>
                <option value="604800">{{lang.time_m5}}</option>
                <option value="1209600">{{lang.time_m6}}</option>
                <option value="2592000">{{lang.time_m7}}</option>
                <option value="5184000">{{lang.time_m8}}</option>
                <option value="7776000">{{lang.time_m9}}</option>
                <option value="15552000">{{lang.time_m10}}</option>
                <option value="31104000">{{lang.time_m11}}</option>
            </select>
            <input type="submit" name="ok" value="{{lang.adm_adays_orders_m7}}"><br>
        </div>
        <div class="data_ress" id="servers" style="display:none">
            {{lang.adm_adays_orders_m4}}:<br>
            <select name="server">
            {% for mm in data %}
                <option value="{{mm.id}}">{{mm.name}}</option>
            {% endfor %}
            </select>
            {{lang.adm_adays_orders_m6}}:<br>
            <select name="time">
                <option value="3600">{{lang.time_m1}}</option>
                <option value="43200">{{lang.time_m2}}</option>
                <option value="86400">{{lang.time_m3}}</option>
                <option value="259200">{{lang.time_m4}}</option>
                <option value="604800">{{lang.time_m5}}</option>
                <option value="1209600">{{lang.time_m6}}</option>
                <option value="2592000">{{lang.time_m7}}</option>
                <option value="5184000">{{lang.time_m8}}</option>
                <option value="7776000">{{lang.time_m9}}</option>
                <option value="15552000">{{lang.time_m10}}</option>
                <option value="31104000">{{lang.time_m11}}</option>
            </select>
            <input type="submit" name="ok" value="{{lang.adm_adays_orders_m7}}"><br>
        </div>

    </form>
</div>