<?php
/* Smarty version 3.1.29, created on 2016-07-19 19:33:47
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/user/writeadmin.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_578e728b1a9204_01299646',
  'file_dependency' => 
  array (
    '8cde979af0a2e3a58b7212ea0c9826c75be31a67' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/user/writeadmin.tpl',
      1 => 1468447026,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_578e728b1a9204_01299646 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/user179/data/www/evolutionmu.ru/library/Smarty/plugins/modifier.date_format.php';
?>
<h1><?php echo $_smarty_tpl->tpl_vars['Lang']->value['WriteAdminTitle'];?>
</h1>
<div>
   <h2>История сообщений</h2>
    <ul class="list-messages">
        <?php
$_from = $_smarty_tpl->tpl_vars['ListMessages']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_mes_0_saved_item = isset($_smarty_tpl->tpl_vars['mes']) ? $_smarty_tpl->tpl_vars['mes'] : false;
$__foreach_mes_0_saved_key = isset($_smarty_tpl->tpl_vars['i']) ? $_smarty_tpl->tpl_vars['i'] : false;
$_smarty_tpl->tpl_vars['mes'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['i'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['mes']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['i']->value => $_smarty_tpl->tpl_vars['mes']->value) {
$_smarty_tpl->tpl_vars['mes']->_loop = true;
$__foreach_mes_0_saved_local_item = $_smarty_tpl->tpl_vars['mes'];
?>
        <?php if ($_smarty_tpl->tpl_vars['mes']->value[5] == 0 && $_smarty_tpl->tpl_vars['mes']->value[0] == 'admin') {?>
            <li class="no-read admin-message"><time><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['mes']->value[2],"%D %H:%M");?>
</time> <span><?php echo $_smarty_tpl->tpl_vars['mes']->value[4];?>
</span></li>
        <?php } elseif ($_smarty_tpl->tpl_vars['mes']->value[0] == 'admin') {?>
            <li class="admin-message"><time><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['mes']->value[2],"%D %H:%M");?>
</time> <span><?php echo $_smarty_tpl->tpl_vars['mes']->value[4];?>
</span></li>
        <?php } elseif ($_smarty_tpl->tpl_vars['mes']->value[5] == 0) {?>
            <li class="no-read"><?php echo $_smarty_tpl->tpl_vars['mes']->value[4];?>
 <time><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['mes']->value[2],"%D %H:%M");?>
</time></li>
        <?php } else { ?>
            <li><?php echo $_smarty_tpl->tpl_vars['mes']->value[4];?>
 <time><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['mes']->value[2],"%D %H:%M");?>
</time></li>
        <?php }?>
        <?php
$_smarty_tpl->tpl_vars['mes'] = $__foreach_mes_0_saved_local_item;
}
if ($__foreach_mes_0_saved_item) {
$_smarty_tpl->tpl_vars['mes'] = $__foreach_mes_0_saved_item;
}
if ($__foreach_mes_0_saved_key) {
$_smarty_tpl->tpl_vars['i'] = $__foreach_mes_0_saved_key;
}
?>
        <div style="clear: both"></div>
    </ul>
</div>
<form method="POST" action="/user/writeadmin" id="feedback-form">
    Email для связи:
    <input type="email" value="<?php echo $_smarty_tpl->tpl_vars['OldMessage']->value['email'];?>
" name="feedback_email" required placeholder="<?php echo $_smarty_tpl->tpl_vars['Lang']->value['WriteAdminEmail'];?>
" x-autocompletetype="email">
    Ваше сообщение:
    <textarea name="feedback_text" required rows="5"><?php echo $_smarty_tpl->tpl_vars['OldMessage']->value['text'];?>
</textarea>
    <input type="text" name="captcha"><img src="/captcha" style="height: 27px;  margin-top: -3px;" onclick="this.src='/captcha'">
    <br>
    <input name="send_to_admin" type="submit" value="<?php echo $_smarty_tpl->tpl_vars['Lang']->value['WriteAdminButton'];?>
">
</form><?php }
}
