<?php
/* Smarty version 3.1.29, created on 2016-08-25 22:43:13
  from "/var/www/gredy/data/www/evomu.ru/views/templates/default/admin/feedback/index.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57bf4a51393d50_81996648',
  'file_dependency' => 
  array (
    '603537981ed1d0169575117257c5717e4feb24f5' => 
    array (
      0 => '/var/www/gredy/data/www/evomu.ru/views/templates/default/admin/feedback/index.tpl',
      1 => 1470087126,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57bf4a51393d50_81996648 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/gredy/data/www/evomu.ru/library/Smarty/plugins/modifier.date_format.php';
?>
<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'; ?>
>
<h1>User Messages</h1>
<table width="100%"> <tr><td>
<table id="table_id">
    <thead>
    <tr>
        <th>Login</th>
        <th>Date</th>
        <th>Message</th>
    </tr>
    </thead>
    <tbody>
    <?php
$_from = $_smarty_tpl->tpl_vars['Messages']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_message_0_saved_item = isset($_smarty_tpl->tpl_vars['message']) ? $_smarty_tpl->tpl_vars['message'] : false;
$__foreach_message_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['message'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['message']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['message']->value) {
$_smarty_tpl->tpl_vars['message']->_loop = true;
$__foreach_message_0_saved_local_item = $_smarty_tpl->tpl_vars['message'];
?>
        <?php if ($_smarty_tpl->tpl_vars['message']->value[5] == 0) {?>
          <tr style="background: #9bbacc">
        <?php } else { ?>
               <tr>
        <?php }?>
            <td><a href="/admin/usermessages/<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</a></td>
            <td><a href="/admin/usermessages/<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['message']->value[2],"%D %H:%M");?>
</a></td>
            <td><a href="/admin/usermessages/<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['message']->value[4];?>
</a></td>

        </tr>
    <?php
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_0_saved_local_item;
}
if ($__foreach_message_0_saved_item) {
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_0_saved_item;
}
if ($__foreach_message_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_message_0_saved_key;
}
?>
    </tbody>
</table>
        </td></tr></table>
<?php echo '<script'; ?>
>
    $(document).ready(function(){
        $('#table_id').DataTable();
    });
<?php echo '</script'; ?>
><?php }
}
