<div id="content">
    <div class=title>{{lang.admin_eusers}}</div>
    {% if act == 'edit' and userq == 0 %}
        <div class="mess"><form method="GET">
        {{lang.adm_eu_t1}}:<br>
        <input type="number" name="id"><br>
        <button>{{lang.adm_eu_t2}}</button>
        </form></div>
        <a class="link" href="?list"><span class="icon"><i class="fas fa-home"></i></span> {{lang.admin_user_list_t13}}</a>
    {% elseif act == 'password' %}
        <div class="mess"><form method="POST">
        <input type="hidden" value="{{crfs}}" name="csrf">
        {{lang.profile_log}}: {{user.login}}<br>
        Новый {{lang.l_pwd}}:<br>
        <input type="text" name="password" value="{{user.ps}}"><br>
        <input type="submit" name="OK" value="{{lang.w_save}}">
        </form></div>
        <a class="link" href="?id={{user.id}}"><span class="icon"><i class="fas fa-arrow-left"></i></span> {{lang.back}}</a>
    {% elseif act == 'orders' %}
        <div class="mess">
        <table style="width: 100%;" border="1" bordercolor="#edeef0">
            <tr>
                <th>{{lang.admin_user_list_t1}}</th>
                <th>{{lang.adm_tar_e_t_3}}</th>
                <th style="text-align: center;"><span class="icon"><i class="fas fa-business-time"></i></span></th>
                <th style="text-align: center;"><span class="icon"><i class="fas fa-dollar-sign"></i></span></th>
                <th style="text-align: center;"><span class="icon"><i class="fas fa-info"></i></span></th>
                <th style="text-align: center;">{{lang.admin_user_list_t12}}</th>
            </tr>
            {% for mm in user %}
            <tr>
                <td>{{mm.oid}}</td>
                <td>{{mm.nametar}}</td>
                <td style="text-align: center;">{{mm.ptime}}</td>
                <td style="text-align: center;">{{mm.bits}} {{lang.bits}}</td>
                <td style="text-align: center;">{{mm.status}}</td>
                <td style="text-align: center;">
                    <a href="/modules/admin/edit_order.php?act=edit&id={{mm.oid}}" style="text-align: center;"><span class="icon"><i class="fas fa-edit"></i></span></a>
                </td>
            </tr>
            {% endfor %}
            </table></div>
            <a class="link" href="?id={{user.id}}"><span class="icon"><i class="fas fa-arrow-left"></i></span> {{lang.back}}</a>
    {% else %}
        <div class="mess"><form method="POST">
        <input type="hidden" value="{{crfs}}" name="csrf">
        {{lang.profile_log}}: {{user.login}}<br>
        {{lang.profile_dolz}}:<br> <select name="dolz">
        <option value=1 {% if select.prv == 'u' %}selected="selected"{% endif %}>{{lang.profile_d_u}}</option>
        <option value=2 {% if select.prv == 'm' %}selected="selected"{% endif %}>{{lang.profile_d_m}}</option>
        <option value=3 {% if select.prv == 'a' %}selected="selected"{% endif %}>{{lang.profile_d_a}}</option>
        </select><br>
        {{lang.profile_bits}}:<br>
        <input type="text" name="bits" value="{{user.bits}}"> {{lang.bits}}<br>
        <input type="submit" name="ok" value="{{lang.w_save}}">
        </form></div>
        <a class="link" href="?password={{user.id}}"><span class="icon"><i class="fas fa-key"></i></span> {{lang.admin_user_list_t14}}</a>
        <a class="link" href="?orders={{user.id}}"><span class="icon"><i class="fas fa-sort"></i></span> {{lang.admin_user_list_t16}}</a>
    {% endif %}
</div>