<style type="text/css">
  footer{
    margin-top: 200px;
  }
</style>
<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">

<!--
<script>
    $(document).ready(function() {
        var destination = $( ".title_rating" ).offset().top;
        jQuery( "html:not(:animated),body:not(:animated)" ).animate( { scrollTop: destination }, 800 );
        return false;
    });
</script>
-->
<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'); // добавить класс
});
</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">
                <div id="cbar">
                    <!-- <h3 class="right">Phoenix x30 - Top 10 DK/BK/BM</h3>
                    <div class="spacer1"></div>
                    <div>
                        В ТОП рейтингах отображаются активные игроки за последние 30 дней.<br>
                        <img src="images/premium/top_gold.png" alt=""> / <img src="images/premium/top_silver.png" alt="">/ <img src="images/premium/top_bronze.png" alt=""> - Символ Premium статуса, больше возможностей, увеличенные рейты и многое другое, подробнее в разделе <a href="premiumclub">Premium статус</a>.
                    </div> -->
                    <div class="spacer2"></div>
                    <ul class="class-list">
                        <li><a href="/statistic/players">ВСЕ</a></li>
                        <li><a href="/statistic/players/0/dw">DW/SM/GM</a></li>
                        <li><a href="/statistic/players/0/dk">DK/BK/BM</a></li>
                        <li><a href="/statistic/players/0/elf">FE/ME/HE</a></li>
                        <li><a href="/statistic/players/0/mg">MG/DM</a></li>
                        <li><a href="/statistic/players/0/dl">DL/LE</a></li>
                        <li><a href="/statistic/players/0/sum">SU/BS/DS</a></li>
                    </ul>
                    <div class="spacer2"></div>
                    <table class="topics">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Персонаж</th>
                            <th class="center">Premium</th>
                            <th class="st6">Класс</th>
                            <th class="st5">Уровень</th>
                            <th class="st5">Ресеты</th>
                            <th class="st5">Ребирты</th><!-- 
                            <th class="st6">Gens</th> -->
                            <th class="st6"></th>
                        </tr>
                        {$i=1}
                         {foreach $Players as $player}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td><a href="/statistic/player/{$player.Name}">{$player.Name}</a></td>
                            <td>
                            {if $player.AccountLevel == 1}
                            <div title="VIP 1 LeveL" class="acc_bronze">&nbsp;</div> 
                            {else if $player.AccountLevel == 2}
                            <div title="VIP 2 LeveL" class="acc_silver">&nbsp;</div> 
                            {else if $player.AccountLevel == 3}
                            <div title="VIP 3 LeveL" class="acc_gold">&nbsp;</div> 
                            {/if}
                            <!-- -->
                            </td>
                            <td class="st6 help_text" title="{$player.Class}">{$player.Class2}</td>
                
                            <td class="st5">{$player.cLevel}</td>
              
                
                            <td class="st5">{$player.Resets}</td>
              
                
                            <td class="st5">{$player.GrandResets}</td>
              
                            <!-- 
                            <td class="st6"><img class="help_text" src="images/gens/small/d14.png" title="Duprian - Private" alt=""></td> -->
                            {if $player.status == 1}
                            <td class="st6"><img class="help_text" src="/web/templates/Freyamu/images/online.png" title="Online" alt=""></td>
                            {else}
                            <td class="st6"><img class="help_text" src="/web/templates/Freyamu/images/offline.png" title="Offline" alt=""></td>
                            {/if}
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
                                           </div></div>
               <div class="b_playertop_0">
                    <div class="scroller">
                     <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                           <th class="st5">Ник</th>
                           <th class="st5">Класс</th>
                           <th class="st5">Левел</th>
                           <th class="st5">Ресет</th>
                           <th class="st6">Убийств</th>
                
                        </tr>

                        {$i=1}

                           {$i = 1}
                           {foreach $TopPK as $pk}
                                 {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td><a href="/statistic/player/{$pk.Name}">{$pk.Name}</a></td>
                            
                                   <td class="st6">{$pk.Class}</td>
                            <td class="st5">{$pk.cLevel}</td>
                            <td class="st5">{$pk.Resets}</td>
                                    <td class="st6">{$pk.PkCount}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}

                    
                    </tbody></table>
                </div>

                   </div></div>

                <div class="b_playertop_0">
                   <div class="scroller">
                      <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                           <th class="st5">Название</th>
                           <th class="st5">Мастер</th>
                           <th class="st5">3н.</th>
                           <th class="st5">Игроков</th>
                        </tr>

                        {$i=1}

                           {$i = 1}
                           {foreach $Guilds as $guild}
                                 {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td><a href="/statistic/guild/{$guild.G_Name}">{$guild.G_Name}</a></td>
                            <td class="st6"><a href="/statistic/player/{$guild.G_Master}">{$guild.G_Master}</a></td>
                            <td class="st5"><img src="{$guild.G_Mark}"/></td>
                            <td class="st5">{$guild.CountMember}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}

                    
                    </tbody></table>
                </div>

                </div></div>
    <div class="b_playertop_0">
        <div class="scroller">
                    <table valign="center" cellspacing="0" cellpadding="0" width="25%" border="0" class="tableMain">
                        {if $Castle.owner != ""}
                        <tbody>
                            <tr>
                                <td rowspan="2" valign="center"><img border="0" src="{$Castle.mark}"></td>
                                <td style="font-weight:bold">Владельцы</td>
                            </tr>
                            <tr align="left">
                                <td><a href="/statistic/guild/{$Castle.ownerg}">{$Castle.ownerg}</a></td>
                            </tr>
                        </tbody>
                        {else}
                        <tr>
                            <td align="center" colspan="2">{$Lang.CastleEmpty}</td>
                        </tr>
                        {/if}
                    </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>{$Lang.CastleMoney}</td><td>{number_format($Castle.money)} Zen</td></tr>
                    <tr class="trcs"><td>{$Lang.CastleChaosMachineRate}</td><td>{$Castle.chaos_tax}%</td></tr>
                    <tr class="trcs"><td>{$Lang.CastleTaxRate}</td><td>{$Castle.store_tax}%</td></tr>
                    <tr class="trcs"><td>{$Lang.CastleEntryPrice}</td><td>{number_format($Castle.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);">{$Lang.CastleSchedule}</td>
                    </tr>
                    <tr class="trcs">
                        <td align="center">{$Lang.CastleStartPeriod}</td><td>{$Castle.cs_start}</td>
                    </tr>
                    <tr class="trcs">
                        <td align="center">{$Lang.CastleStatusPeriod}</td><td>{$Castle.cs_period}</td>
                    </tr>
                    <tr class="trcs">
                        <td align="center">{$Lang.CastleEndPeriod}</td><td>{$Castle.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);">{$Lang.CastlePretends}</td></tr>

                    {foreach from=$Castle.g_registed item=value}
                    <tr  class="trcs"><td><a href="/statistic/guild/{$value.guild}"> {$value.guild} </a></td><td><img src="{$value.marks}" alt=""></td></tr>
                    {/foreach}
                </table>
        </div>
    </div>

        <div class="b_playertop_0">
            <div class="scroller">
                <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Никнейм</th>
                            <th class="center">Голосов</th>
                
                        </tr>
                        {$i=1}
                         {foreach $Voters as $voter}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td align="left" style="padding-left: 10px;"><a href="/statistic/player/{$voter.CharInfo.Name}">{$voter.CharInfo.Name}</a></td>
                            <td class="st9">{$voter.CountVoteMMOTop}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
           </div></div>
        <div class="b_playertop_0">
            <div class="scroller">
                <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Персонаж</th>
                            <th class="center">Очки</th>
                
                        </tr>
                        {$i=1}
                         {foreach $BC as $bcPlayer}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td align="left" style="padding-left: 10px;"><a href="/statistic/player/{$bcPlayer.CharInfo.Name}">{$bcPlayer.Name}</a></td>
                            <td class="st9">{$bcPlayer.Score}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
           </div></div>
        <div class="b_playertop_0">
            <div class="scroller">
                <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Персонаж</th>
                            <th class="center">Очки</th>
                
                        </tr>
                        {$i=1}
                         {foreach $DS as $dsPlayer}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td align="left" style="padding-left: 10px;"><a href="/statistic/player/{$dsPlayer.CharInfo.Name}">{$dsPlayer.Name}</a></td>
                            <td class="st9">{$dsPlayer.Score}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
           </div></div>
        <div class="b_playertop_0">
            <div class="scroller">
                <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Персонаж</th>
                            <th class="center">Очки</th>
                
                        </tr>
                        {$i=1}
                         {foreach $BC as $bcPlayer}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td align="left" style="padding-left: 10px;"><a href="/statistic/player/{$bcPlayer.CharInfo.Name}">{$bcPlayer.Name}</a></td>
                            <td class="st9">{$bcPlayer.Score}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
           </div></div>
        <div class="b_playertop_0">
            <div class="scroller">
                <div id="cbar" style="    width: 100%;">
       
            
                    <table class="topics" width="100%">
                        <tbody>
                           
                        <tr>
                            <th class="st6">#</th>
                            <th>Персонаж</th>
                            <th class="center">Очки</th>
                
                        </tr>
                        {$i=1}
                         {foreach $CC as $ccPlayer}
                            {if $i%2 != 0}
                           <tr class="rowclass">
                           {else}
                           <tr>
                           {/if}
                            <td class="st6">
                            {if $i<=3}
                            <div class="rank{$i}">{$i}</div>
                           {else}
                            {$i}
                           {/if}
                            </td>
                            <td align="left" style="padding-left: 10px;"><a href="/statistic/player/{$ccPlayer.CharInfo.Name}">{$ccPlayer.Name}</a></td>
                            <td class="st9">{$ccPlayer.Score}</td>
                        </tr>
                               {$i=$i+1}
                           {/foreach}
                       
                    </tbody></table>
                </div>
           </div></div>
    <div class="b_line_0"><i class="b_line_0_sw" style="left: 0px;"></i></div>
    <ul class="b_tabs_sub_0" style="top: -32px;">
        <li class="b_0_pvp active">Player</li><li class="b_0_pk">PK</li><li class="b_0_clan">Guild</li><li class="b_0_castl">Castle</li> <!--<li class="b_0_voters">Voters</li> --> <br><li class="b_0_bc">BC</li> <li class="b_0_bc">DS</li><li class="b_0_bc">CC</li> 
    </ul>
</div>
</div>



</div>


</div>