<?php
/* Smarty version 3.1.29, created on 2017-01-03 21:05:30
  from "/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/rankings/players.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_586c040a417066_02258208',
  'file_dependency' => 
  array (
    '90e16461913f6e8779c9a39e73a306aecf79de2e' => 
    array (
      0 => '/var/www/plfesycd/data/www/freyamu.ru/views/templates/Freyamu/rankings/players.tpl',
      1 => 1483473894,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_586c040a417066_02258208 ($_smarty_tpl) {
?>
<div class="animated" style="animation-delay: 0.5s; animation-name: zoomIn;">
    <img src="/web/templates/Freyamu/images/stats-title.png" class="wr_title title_rating">


<div class="content-center">

<!--
<?php echo '<script'; ?>
>
    $(document).ready(function() {
        var destination = $( ".title_rating" ).offset().top;
        jQuery( "html:not(:animated),body:not(:animated)" ).animate( { scrollTop: destination }, 800 );
        return false;
    });
<?php echo '</script'; ?>
>
-->
<?php echo '<script'; ?>
 type="text/javascript">
$(function(){
setTimeout("$('body,html').stop().animate({ scrollTop:315},1000)",500);
$('#b_tabs_stats_0').addClass('active'); // добавить класс
$('#b_tabs_stats_serv_0').addClass('active'); // добавить класс
});
<?php echo '</script'; ?>
>
        
        
                <div id="b_tabs_stats_0" class="b_playertop_all s0 active">
                    <div class="b_b-content ptop">
                        <div class="b_playertop_0 active">
                    <div class="scroller">
                        <table class="table_bs" cellspacing="0">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>Ник</th>
                                <th>Класс</th>
                                <th>Клан</th>
                                <th>Левел</th>
                                <th>Ресет</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?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'];
?>
                            <tr>
                                <?php if ($_smarty_tpl->tpl_vars['player']->value['status'] == 1) {?>
                                    <td align="center" width="10%" style="background: rgba(0,250,0,.3);"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                <?php } else { ?>
                                    <td align="center" width="10%" style="background: rgba(250,0,0,.5);"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                <?php }?>
                                <td width="3%"><a href="/statistic/player/<?php echo $_smarty_tpl->tpl_vars['player']->value['Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['player']->value['Name'];?>
</a></td>
                                <td><?php echo $_smarty_tpl->tpl_vars['player']->value['Class'];?>
</td>
                                <td style="color: #e0d1b8;" ><?php echo $_smarty_tpl->tpl_vars['player']->value['Guild'];?>
</td>
                                <td style="color: #e0d1b8;" align="center" width="15%"><?php echo $_smarty_tpl->tpl_vars['player']->value['cLevel'];?>
</td>
                                <td align="center" width="20%"><?php echo $_smarty_tpl->tpl_vars['player']->value['Resets'];?>
</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['player'] = $__foreach_player_0_saved_local_item;
}
if ($__foreach_player_0_saved_item) {
$_smarty_tpl->tpl_vars['player'] = $__foreach_player_0_saved_item;
}
?>
                            </tbody>
                        </table>
                    </div></div><div class="b_playertop_0">
                    <div class="scroller">
                        <table class="table_bs" cellspacing="0">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>Ник</th>
                                <th>Класс</th>
                                <th>Левел</th>
                                <th>Ресет</th>
                                <th>Убийств</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?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_1_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_1_saved_local_item = $_smarty_tpl->tpl_vars['pk'];
?>
                                <tr>
                                    <td align="center" width="10%"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                    <td width="3%"><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 style="color: #e0d1b8;" align="center" width="15%"><?php echo $_smarty_tpl->tpl_vars['pk']->value['cLevel'];?>
</td>
                                    <td align="center" width="20%"><?php echo $_smarty_tpl->tpl_vars['pk']->value['Resets'];?>
</td>
                                    <td align="center" width="20%"><?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_1_saved_local_item;
}
if ($__foreach_pk_1_saved_item) {
$_smarty_tpl->tpl_vars['pk'] = $__foreach_pk_1_saved_item;
}
?>
                            </tbody>
                        </table>
                    </div></div><div class="b_playertop_0">
                    <div class="scroller">
                        <table class="table_bs" cellspacing="0">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>Название</th>
                                <th>Мастер</th>
                                <th>Лого</th>
                                <th>Игроков</th>
                            </tr>
                            </thead>
                            <tbody>

                            <?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['Guilds']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_guild_2_saved_item = isset($_smarty_tpl->tpl_vars['guild']) ? $_smarty_tpl->tpl_vars['guild'] : false;
$_smarty_tpl->tpl_vars['guild'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['guild']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['guild']->value) {
$_smarty_tpl->tpl_vars['guild']->_loop = true;
$__foreach_guild_2_saved_local_item = $_smarty_tpl->tpl_vars['guild'];
?>
                                <tr>
                                    <td align="center" width="10%"><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                    <td width="3%"><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Name'];?>
</a></td>
                                    <td><a href="/statistic/player/<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Master'];?>
"><?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Master'];?>
</a></td>
                                    <td style="color: #e0d1b8;" align="center" width="15%"><img src="<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Mark'];?>
"/></td>
                                    <td align="center" width="20%"><?php echo $_smarty_tpl->tpl_vars['guild']->value['CountMember'];?>
</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['guild'] = $__foreach_guild_2_saved_local_item;
}
if ($__foreach_guild_2_saved_item) {
$_smarty_tpl->tpl_vars['guild'] = $__foreach_guild_2_saved_item;
}
?>
                            </tbody>
                        </table>
                    </div></div><div class="b_playertop_0">
                    <div class="scroller">
                        <table valign="center" cellspacing="0" cellpadding="0" width="25%" border="0" class="tableMain">
                            <?php if ($_smarty_tpl->tpl_vars['Castle']->value['owner'] != '') {?>
                                <tbody>
                                <tr>
                                    <td rowspan="2" valign="center"><img border="0" src="<?php echo $_smarty_tpl->tpl_vars['Castle']->value['mark'];?>
"></td>
                                    <td style="font-weight:bold">Владельцы</td>
                                </tr>
                                <tr align="left">
                                    <td><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['Castle']->value['ownerg'];?>
"><?php echo $_smarty_tpl->tpl_vars['Castle']->value['ownerg'];?>
</a></td>
                                </tr>
                                </tbody>
                            <?php } else { ?>
                                <tr>
                                    <td align="center" colspan="2"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleEmpty'];?>
</td>
                                </tr>
                            <?php }?>
                            </td>
                            </tr>
                        </table>
                        <table width="100%">
                            <tr>
                                <td colspan="2" align="center" style="background: rgba(243, 97, 97, 0.1);">Информация</td>
                            </tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleMoney'];?>
</td><td><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['money']);?>
 Zen</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleChaosMachineRate'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['chaos_tax'];?>
%</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleTaxRate'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['store_tax'];?>
%</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleEntryPrice'];?>
</td><td><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['zone_tax']);?>
 Zen</td></tr>
                        </table>
                        <table align="right" valign="top" cellspacing="0" cellpadding="0" width="100%" style=" border-collapse: separate; border-spacing: 2px;empty-cells: hide;">
                            <tbody><tr>
                                <td colspan="2" align="center" style="background: rgba(243, 97, 97, 0.1);"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleSchedule'];?>
</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleStartPeriod'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['cs_start'];?>
</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleStatusPeriod'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['cs_period'];?>
</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleEndPeriod'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['cs_end'];?>
</td>
                            </tr>
                            </tbody></table>
                        <table align="right" valign="top" cellspacing="0" cellpadding="0" width="100%">
                            <tr><td align="center" colspan="2" style="background: rgba(243, 97, 97, 0.1);"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastlePretends'];?>
</td></tr>

                            <?php
$_from = $_smarty_tpl->tpl_vars['Castle']->value['g_registed'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_3_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_3_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
                                <tr  class="trcs"><td><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['value']->value['guild'];?>
"> <?php echo $_smarty_tpl->tpl_vars['value']->value['guild'];?>
 </a></td><td><img src="<?php echo $_smarty_tpl->tpl_vars['value']->value['marks'];?>
" alt=""></td></tr>
                            <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_3_saved_local_item;
}
if ($__foreach_value_3_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_3_saved_item;
}
?>
                        </table>
                    </div>
                    </div>
                    
                        <div class="b_line_0"><i class="b_line_0_sw" style="left: 0px;"></i></div>
                        <ul class="b_tabs_sub_0">
                            <li class="b_0_pvp active">Игроков</li><li class="b_0_pk">Убийц</li><li class="b_0_clan">Кланов</li><li class="b_0_castl">Замок</li>
                        </ul>
                    </div>
                </div>
                
          
                
        </div>
                

</div>

<?php }
}
