<?php
/* Smarty version 3.1.29, created on 2016-10-27 05:45:43
  from "/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/rankings/pk.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_58116a57a60f55_02047462',
  'file_dependency' => 
  array (
    '5d9912b00fd27435ad4bc36352aa4d086c3c0d32' => 
    array (
      0 => '/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/rankings/pk.tpl',
      1 => 1474197118,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_58116a57a60f55_02047462 ($_smarty_tpl) {
?>
<div class="statistic"><!-- Nav tabs -->
        <div id="info1">
<h2 style="text-align:center;"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkTitle'];?>
</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/pk/<?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 />

    <?php if (empty($_smarty_tpl->tpl_vars['TopPK']->value)) {?>
        <p><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkListEmpty'];?>
</p>
    <?php } else { ?>
    <table id="l2top" class="ranking-table" width="100%" style="text-align:center;">
        <tr class="header-ranking-table">
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkNomer'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkName'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkClass'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkLevel'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkReset'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkGrandReset'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopPkCountKill'];?>
</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['TopPK']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_pk_0_saved_item = isset($_smarty_tpl->tpl_vars['pk']) ? $_smarty_tpl->tpl_vars['pk'] : false;
$_smarty_tpl->tpl_vars['pk'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['pk']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['pk']->value) {
$_smarty_tpl->tpl_vars['pk']->_loop = true;
$__foreach_pk_0_saved_local_item = $_smarty_tpl->tpl_vars['pk'];
?>
            <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                <tr class="ranking-zebra">
                    <?php } else { ?>
                <tr>
            <?php }?>
                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                <td><a href="/statistic/player/<?php echo $_smarty_tpl->tpl_vars['pk']->value['Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['pk']->value['Name'];?>
</a></td>
                <td><?php echo $_smarty_tpl->tpl_vars['pk']->value['Class'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['pk']->value['cLevel'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['pk']->value['Resets'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['pk']->value['GrandResets'];?>
</td>
                <td style="color: #ff0000;"><?php echo $_smarty_tpl->tpl_vars['pk']->value['PkCount'];?>
</td>
            </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['pk'] = $__foreach_pk_0_saved_local_item;
}
if ($__foreach_pk_0_saved_item) {
$_smarty_tpl->tpl_vars['pk'] = $__foreach_pk_0_saved_item;
}
?>
    </table>
    <?php }?>
</div>

</div>
<?php }
}
