<?php
/* Smarty version 3.1.29, created on 2016-07-13 23:48:01
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/rankings/players.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5786c5210fb923_25552768',
  'file_dependency' => 
  array (
    '9313443eda74ae1df0e5d1a8fe9b45f743ddcdfa' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/rankings/players.tpl',
      1 => 1468447020,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5786c5210fb923_25552768 ($_smarty_tpl) {
?>
<div class="statistic"><!-- Nav tabs -->

        <div id="info1">
<h2><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Title'];?>
</h2>
            <?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;?>
                    <a class="select-server-statistic" href="/statistic/players/<?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>
                <?php }
}
?>

            <?php }?>
            <hr />

    <a href="/statistic/players">Топ персонажей</a>  |
    <a href="/statistic/guilds">Топ гильдий</a>  |
    <a href="/statistic/pk">Убийцы</a>  |
    <a href="/statistic/prisons">Заключенные</a>  |
    <a href="/statistic/castle">Замок</a>
    <br>
    <table width="100%">
        <tr>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/dw"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatDW'];?>
</a></td>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/dk"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatDK'];?>
</a></td>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/elf"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatELF'];?>
</a></td>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/sum"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatSUM'];?>
</a></td>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/mg"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatMG'];?>
</a></td>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/dl"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatDL'];?>
</a></td>
            <?php if ($_smarty_tpl->tpl_vars['RF']->value) {?>
                <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
/rf"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatRF'];?>
</a></td>
            <?php }?>
            <td><a href="/statistic/players/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100CatALL'];?>
</a></td>
        </tr>
    </table>
    <table id="l2top" class="ranking-table" width="100%" style="text-align:center;">
        <tr class="header-ranking-table">
            <th width="25px"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Nomer'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Name'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Class'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Level'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Reset'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100GrandReset'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Strength'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Agility'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Vitality'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Energy'];?>
</th>
            <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['Top100Command'];?>
</th>
            <th>Guild</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['Players']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_player_0_saved_item = isset($_smarty_tpl->tpl_vars['player']) ? $_smarty_tpl->tpl_vars['player'] : false;
$_smarty_tpl->tpl_vars['player'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['player']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['player']->value) {
$_smarty_tpl->tpl_vars['player']->_loop = true;
$__foreach_player_0_saved_local_item = $_smarty_tpl->tpl_vars['player'];
?>
            <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                <tr class="ranking-zebra">
                    <?php } else { ?>
                <tr>
            <?php }?>
            <?php if ($_smarty_tpl->tpl_vars['player']->value['status'] == 1) {?>
                <td style="background: green;"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
            <?php } else { ?>
                <td style="background: rgba(187, 81, 81, 0.31);"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
            <?php }?>
            <td><a href="/statistic/player/<?php echo $_smarty_tpl->tpl_vars['player']->value['Name'];?>
/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['player']->value['Name'];?>
</a></td>
            <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Class'];?>
</td>
            <?php if ($_smarty_tpl->tpl_vars['player']->value['Hide']) {?>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
            <?php } else { ?>

                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['cLevel'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Resets'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['GrandResets'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Strength'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Dexterity'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Vitality'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Energy'];?>
</td>
                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Leadership'];?>
</td>
                <td><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['player']->value['Guild'];?>
"><?php echo $_smarty_tpl->tpl_vars['player']->value['Guild'];?>
</a></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['player'] = $__foreach_player_0_saved_local_item;
}
if ($__foreach_player_0_saved_item) {
$_smarty_tpl->tpl_vars['player'] = $__foreach_player_0_saved_item;
}
?>
    </table>
</div>
    </div>



<?php }
}
