<h1 style="text-align: center;">Prisons</h1>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.12/css/jquery.dataTables.css">

<script type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.js"></script>
    <table width="80%">
        <tr>
            <td>
                <form action="/admin/editor/accs" method="post">
                <label for="search_for_ip">Search for ip</label>
                <input type="text" id="search_for_ip" name="search_for_ip">
                    <button><i class="icon-search"></i></button>
            </td>
            <td>
                <form action="/admin/editor/accs" method="post">
                <label for="search_for_acc">Search fo account</label>
                <input type="text" id="search_for_acc" name="search_for_acc">
                    <button><i class="icon-search"></i></button>
                </form>
            </td>
            <td>
                <form action="/admin/editor/accs" method="post">
                <label for="search_for_char">Search fo account</label>
                <input type="text" id="search_for_char" name="search_for_char">
                    <button><i class="icon-search"></i></button>
                </form>
            </td>
        </tr>

    </table>
    {if $Accs != null}
        <table width="100%"><tr><td>
                    <table id="accs" class="display">
                        <thead>
                        <tr>
                            <th>Account</th>
                            <th>IP</th>
                            <th>Chars</th>
                            <th>Register date</th>
                        </tr>
                        </thead>
                        <tbody>
                        {foreach $Accs item=acc key=i}
                            <tr>
                                <td>{$acc.memb___id}</td>
                                <td>{$acc.IP}</td>
                                <td>{$acc.AccountCharacters}</td>
                                <td>{$acc.rdate|date_format:"%D %H:%M"}</td>
                            </tr>
                        {/foreach}
                        </tbody>
                    </table>
                </td></tr></table>
    {/if}
</form>

<script type="text/javascript">
    $(document).ready(function(){
        $('#accs').DataTable();
    });
</script>
