<?php
/* Smarty version 3.1.29, created on 2016-11-16 02:24:19
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/admin/editor/accs.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_582bb54339f611_40469381',
  'file_dependency' => 
  array (
    '174ca4fe08a9005b41b399d755e746a68ccc9f54' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/default/admin/editor/accs.tpl',
      1 => 1479256531,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_582bb54339f611_40469381 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/plfesycd/data/www/freyamu.ru/library/Smarty/plugins/modifier.date_format.php';
?>
<h1 style="text-align: center;">Prisons</h1>
<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.12/css/jquery.dataTables.css">

<?php echo '<script'; ?>
 type="text/javascript" charset="utf8" src="//cdn.datatables.net/1.10.12/js/jquery.dataTables.js"><?php echo '</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>
    <?php if ($_smarty_tpl->tpl_vars['Accs']->value != 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>
                        <?php
$_from = $_smarty_tpl->tpl_vars['Accs']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_acc_0_saved_item = isset($_smarty_tpl->tpl_vars['acc']) ? $_smarty_tpl->tpl_vars['acc'] : false;
$__foreach_acc_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['acc'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['acc']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['acc']->value) {
$_smarty_tpl->tpl_vars['acc']->_loop = true;
$__foreach_acc_0_saved_local_item = $_smarty_tpl->tpl_vars['acc'];
?>
                            <tr>
                                <td><?php echo $_smarty_tpl->tpl_vars['acc']->value['memb___id'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['acc']->value['IP'];?>
</td>
                                <td><?php echo $_smarty_tpl->tpl_vars['acc']->value['AccountCharacters'];?>
</td>
                                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['acc']->value['rdate'],"%D %H:%M");?>
</td>
                            </tr>
                        <?php
$_smarty_tpl->tpl_vars['acc'] = $__foreach_acc_0_saved_local_item;
}
if ($__foreach_acc_0_saved_item) {
$_smarty_tpl->tpl_vars['acc'] = $__foreach_acc_0_saved_item;
}
if ($__foreach_acc_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_acc_0_saved_key;
}
?>
                        </tbody>
                    </table>
                </td></tr></table>
    <?php }?>
</form>

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