content_mailcnf_userlist.html 3.39 KB
<table class="table table-hover" >
    <thead>
        <tr>
            <th>#</th>
            <th>ID</th>
            <th>Domain_id</th>
            <th>Group_id</th>
            <th>Email</th>
            <th>Sent_Mail</th>
            <th>Quota</th>
            <th>Active</th>
            <th>Deleted</th>
            <th>ACTIONS</th>
        </tr>
    </thead>
    <tbody>
         {% for list in lists %}
           <tr>
                
            </tr>
            <tr>
            <td>{{ list[11] }} </td>
                <td>{{ list[0] }} </td>
                <td>{{ list[1] }} </td>
                <td>{{ list[2] }} </td>
                <td >{{ list[5] }}</td>
                <td>{{ list[6] }}</td>
                <td>{{ list[7] }}</td>
                <td>{{ list[9] }}</td>
                <td>{{ list[10] }}</td>
                <td>
                <form action="/mailcnf/user" method="POST"><input type="hidden" size="70" name="table" value="virtual_users">
                    <input type="hidden" value="userlist" size="70" name="mainfnc" id="" class="'">
                     <input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
                     <input type="hidden" size="70" name="fnc" value="edit">
                     <input type="hidden" size="70" name="tableid" value={{ list[0] }} ">
                     <input type="hidden" size="70" name="id" value="{{ list[0] }}">
                     <button type="submit"  class="btn btn-primary btn-block btn-xs">Edit </button>
                </form>
                <form action="/mailcnf/user" method="POST">
                        <input type="hidden" size="70" name="table" value="virtual_users">
                        <input type="hidden" value="userlist" size="70" name="mainfnc" id="" class="'">
                        <input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
                       
                        <input type="hidden" size="70" name="tableid" value="{{ list[0] }} ">
                        <input type="hidden" size="70" name="id" value="{{ list[0] }}">
                         {% if list[10] == 0 %}
                            <input type="hidden" size="70" name="fnc" value="delete">
                            <button type="submit"  class="btn btn-danger btn-block btn-xs">Delete </button>
                        {% else %}
                             <input type="hidden" size="70" name="fnc" value="undelete">
                            <button type="submit"  class="btn btn-danger btn-block btn-xs">UnDelete </button>
                        {% end %}
                </form>
                <form action="/mailcnf/user" method="POST">
                    <input type="hidden" size="70" name="table" value="virtual_users">
                    <input type="hidden" value="userlist" size="70" name="mainfnc" id="" class="'">
                    <input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
                    <input type="hidden" size="70" name="fnc" value="changepw">
                    <input type="hidden" size="70" name="tableid" value="{{ list[0] }}">
                    <input type="hidden" size="70" name="id" value="{{ list[0] }}">
                    <button type="submit" class="btn btn-warning passwd  btn-block btn-xs">&Auml;ndere Passwort </button>
                </form>
            </td>
        </tr>
        {% end %}
    </tbody>
</table>