<?php
/* Smarty version 3.1.29, created on 2016-10-27 18:01:00
  from "/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/rankings/prisons.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_581216acb17d16_99603073',
  'file_dependency' => 
  array (
    'e5a932a003ee264cadcc4602a6dc0175ca0ee8ce' => 
    array (
      0 => '/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/rankings/prisons.tpl',
      1 => 1474197632,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_581216acb17d16_99603073 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/fr8992/data/www/evomu.ru/library/Smarty/plugins/modifier.date_format.php';
?>
<div class="statistic"><!-- Nav tabs -->


        <div id="info1">
            <h2 style="text-align:center;"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['PrisonsTitle'];?>
</h2>
            <div style="text-align:center; font-size:13px; "><b>
                <a style="color:rgb(253,197,92);" href="/statistic/players">Топ персонажей</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/guilds">Топ гильдий</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/pk">Убийцы</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/prisons">Заключенные</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/castle">Замок</a></b>
            <br>
						<?php if ($_smarty_tpl->tpl_vars['CountDB']->value > 1) {?>
            <?php
$_smarty_tpl->tpl_vars['num_db'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['num_db']->step = 1;$_smarty_tpl->tpl_vars['num_db']->total = (int) min(ceil(($_smarty_tpl->tpl_vars['num_db']->step > 0 ? $_smarty_tpl->tpl_vars['CountDB']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['CountDB']->value-1)+1)/abs($_smarty_tpl->tpl_vars['num_db']->step)),5);
if ($_smarty_tpl->tpl_vars['num_db']->total > 0) {
for ($_smarty_tpl->tpl_vars['num_db']->value = 0, $_smarty_tpl->tpl_vars['num_db']->iteration = 1;$_smarty_tpl->tpl_vars['num_db']->iteration <= $_smarty_tpl->tpl_vars['num_db']->total;$_smarty_tpl->tpl_vars['num_db']->value += $_smarty_tpl->tpl_vars['num_db']->step, $_smarty_tpl->tpl_vars['num_db']->iteration++) {
$_smarty_tpl->tpl_vars['num_db']->first = $_smarty_tpl->tpl_vars['num_db']->iteration == 1;$_smarty_tpl->tpl_vars['num_db']->last = $_smarty_tpl->tpl_vars['num_db']->iteration == $_smarty_tpl->tpl_vars['num_db']->total;?>
               <b><a class="select-server-statistic" style="font-size: 15px; color:rgb(253,197,92);" href="/statistic/prisons/<?php echo $_smarty_tpl->tpl_vars['num_db']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['NamesDB']->value[$_smarty_tpl->tpl_vars['num_db']->value];?>
</a></b>
            <?php }
}
?>

        <?php }?>
		</div>
		<hr />
            <div class="caption1">
                <div id="banlist">
                    <table width="100%" class="ranking-table" style="text-align:center;">
                        <tr class="header-ranking-table">
                            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['PrisonsNick'];?>
</th>
                            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['PrisonsReason'];?>
</th>
                            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['PrisonsDate'];?>
</th>
                        </tr>
                        <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable(1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                        <?php
$_from = $_smarty_tpl->tpl_vars['Prisons']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_prison_0_saved_item = isset($_smarty_tpl->tpl_vars['prison']) ? $_smarty_tpl->tpl_vars['prison'] : false;
$_smarty_tpl->tpl_vars['prison'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['prison']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['prison']->value) {
$_smarty_tpl->tpl_vars['prison']->_loop = true;
$__foreach_prison_0_saved_local_item = $_smarty_tpl->tpl_vars['prison'];
?>
                            <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                                <tr class="ranking-zebra">
                                    <?php } else { ?>
                                <tr>
                            <?php }?>
                            <td style="color: #ee4646; text-decoration: none;"><?php echo $_smarty_tpl->tpl_vars['prison']->value['Name'];?>
</td>
                            <?php if ($_smarty_tpl->tpl_vars['prison']->value['ban_desc'] == '') {?>
                                <td>Без причины</td>
                            <?php } else { ?>
                                <td><?php echo $_smarty_tpl->tpl_vars['prison']->value['ban_desc'];?>
</td>
                            <?php }?>
                            <?php if ($_smarty_tpl->tpl_vars['prison']->value['ban_time'] == 1) {?>
                                <td>Пожизненно</td>
                            <?php } else { ?>
                                <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['prison']->value['ban_time'],"%D %H:%M");?>
</td>
                            <?php }?>
                            </tr>
                            <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable($_smarty_tpl->tpl_vars['i']->value+1, null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, 'i', 0);?>
                        <?php
$_smarty_tpl->tpl_vars['prison'] = $__foreach_prison_0_saved_local_item;
}
if ($__foreach_prison_0_saved_item) {
$_smarty_tpl->tpl_vars['prison'] = $__foreach_prison_0_saved_item;
}
?>
                    </table>
                </div>

            </div>
        </div>
    </div>
<?php }
}
