<div class="section_view col-md-12"><style>
            .show-clan{
                color: #befff8;
            }
            .show-clan:hover{
                color: #8BD7FF;
                cursor: pointer;
                opacity: 0.8;
            }


        </style>

        <section class="widget">
            <header>
                <h5>
                    <i class="fa fa-globe"></i>
                    Статистика
                </h5>
            </header>
            <div class="body">
                <div class="tabbable tabs-left">
                    <ul id="myTabLeft" class="nav nav-tabs" style="border-bottom: none;margin: -10px 0px 0px -12px;padding: 0px 0px 0px 0;border-right: none;">

                <li class="" style="display: inline-block;text-align: center;"><a href="#pvp" data-toggle="tab" style="border-radius: 0px;">PvP</a></li>
                <li style="display: inline-block;text-align: center;height: 40px;border-right: 1px solid #3b3b3b;margin: 0px -4px -15px -4px;"></li>
                <li style="display: inline-block;text-align: center;" class=""><a href="#pk" data-toggle="tab" style="border-radius: 0px;">Pk</a></li>
                <li style="display: inline-block;text-align: center;height: 40px;border-right: 1px solid #3b3b3b;margin: 0px -4px -15px -4px;"></li>
                <!--
                <li style="display: inline-block;text-align: center;"><a href="#time" data-toggle="tab">Time</a></li>
                <li style="display: inline-block;text-align: center;"></li>
                -->
                <li style="display: inline-block;text-align: center;" class="active"><a href="#clan" data-toggle="tab" style="border-radius: 0px;">Clan</a></li>
                <li style="display: inline-block;text-align: center;height: 40px;border-right: 1px solid #3b3b3b;margin: 0px -3px -15px -4px;"></li>
                <!--<li style="display: inline-block;"><a href="#ally" data-toggle="tab">Ally</a></li>-->
                <li style="display: inline-block;text-align: center;"><a href="#castle" data-toggle="tab" style="border-radius: 0px;">Castle</a></li>
                <li style="display: inline-block;text-align: center;height: 40px;border-right: 1px solid #3b3b3b;margin: 0px -4px -15px -4px;"></li>
                <!--
                <li style="display: inline-block;text-align: center;"><a href="#agit" data-toggle="tab">Agit</a></li>
                <li style="display: inline-block;text-align: center;"></li>
                -->
            </ul>
                    <div id="myTabContentLeft" class="tab-content" style="overflow: inherit;margin: 40px 0 0 0;border: none;background: none;">


                        <div class="tab-pane fade in active" id="pvp">
                        <div class="main_new_table"> 
                            <table class="table table-hover ">
                                <thead>
                                <tr>
                                    <th>{$Lang.Top100Nomer}</th>
                                    <th>{$Lang.Top100Name}</th>
                                    <th>{$Lang.Top100Class}</th>
                                    <th>{$Lang.Top100Level}</th>
                                    <th>{$Lang.Top100Reset}</th>
                                    <th>{$Lang.Top100GrandReset}</th>
                                    <th>Guild</th>
                                    <th>Статус</th>
                                </tr>
                                </thead>
                                <tbody>
                                {$i = 1}
                                {foreach $Players as $player}
                                <tr>
                                    <td>{$i}</td>
                                    <td><a href="#statistic" data-toggle="modal" data-target="#charModal" data-char="{$player.Name}">{$player.Name}</a></td>
                                    <td>{$player.Class}</td>
                            
                                        <td>{$player.cLevel}</td>
                                        <td>{$player.Resets}</td>
                                        <td>{$player.GrandResets}</td>
                                        {if $player.Guild != ""}
                                            <td><a href="#statistic" data-toggle="modal" data-target="#clanModal" data-clan="{$player.Guild}">{$player.Guild}</a></td>
                                        {else}
                                            <td>-/-</td>
                                        {/if}
                                    {if $player.status == 1}
                                        <td><img src="/web/templates/Freyamu/cabinet/images/1.png"></td>
                                    {else}
                                        <td><img src="/web/templates/Freyamu/cabinet/images/0.png"></td>
                                    {/if}

                                    {$i=$i+1}
                                    </tr>
                                {/foreach}
                                </tbody>
                            </table></div>
                        </div>

                        <div class="tab-pane " id="pk">
                        <div class="main_new_table"> 
                            <table class="table table-hover ">
                                <thead>
                                <th>{$Lang.TopPkNomer}</th>
                                <th>{$Lang.TopPkName}</th>
                                <th>{$Lang.TopPkClass}</th>
                                <th>{$Lang.TopPkLevel}</th>
                                <th>{$Lang.TopPkReset}</th>
                                <th>{$Lang.TopPkGrandReset}</th>
                                <th>{$Lang.TopPkCountKill}</th>
                                </thead>
                                <tbody>
                                {$i = 1}
                                {foreach $Killers as $pk}
                                    <tr>
                                    <td>{$i}</td>
                                    <td><a href="/statistic/player/{$pk.Name}">{$pk.Name}</a></td>
                                    <td>{$pk.Class}</td>
                                    <td>{$pk.cLevel}</td>
                                    <td>{$pk.Resets}</td>
                                    <td>{$pk.GrandResets}</td>
                                    <td style="color: #ff0000;">{$pk.PkCount}</td>
                                    </tr>
                                    {$i=$i+1}
                                {/foreach}
                                </tbody>
                            </table></div>

                        </div>

                        <div class="tab-pane fade" id="clan">
                        <div class="main_new_table"> 
                            <table class="table table-hover ">
                                <thead>
                                <tr>
                                    <th>{$Lang.TopGuildsNomer}</th>
                                    <th>{$Lang.TopGuildsName}</th>
                                    <th>{$Lang.TopGuildsMaster}</th>
                                    <th>{$Lang.TopGuildsMark}</th>
                                    <th>{$Lang.TopGuildsMembers}</th>
                                </tr>
                                </thead>
                                <tbody>
                                {$i = 1}
                                {foreach $Guilds as $guild}
                                    <tr>
                                    <td>{$i}</td>
                                    <td><a href="#statistic" data-toggle="modal" data-target="#clanModal" data-clan="{$guild.G_Name}">{$guild.G_Name}</a></td>
                                    <td><a href="#statistic" data-toggle="modal" data-target="#charModal" data-char="{$guild.G_Master}">{$guild.G_Master}</a></td>
                                    <td><img src="{$guild.G_Mark}"/></td>
                                    <td>{$guild.CountMember}</td>
                                    </tr>
                                    {$i=$i+1}
                                {/foreach}
                                </tbody>
                            </table></div>

                        </div>



                        <div class="tab-pane fade" id="castle">
                        <div class="main_new_table"> 
                            <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 align="center">{$Lang.CastleMoney}</td><td align="center">{number_format($Castle.money)} Zen</td></tr>
                                <tr class="trcs"><td align="center">{$Lang.CastleChaosMachineRate}</td><td align="center">{$Castle.chaos_tax}%</td></tr>
                                <tr class="trcs"><td align="center">{$Lang.CastleTaxRate}</td><td align="center">{$Castle.store_tax}%</td></tr>
                                <tr class="trcs"><td align="center">{$Lang.CastleEntryPrice}</td><td align="center">{number_format($Castle.zone_tax)} Zen</td></tr>
                           <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 align="center">{$Castle.cs_start}</td>
                                </tr>
                                <tr class="trcs">
                                    <td align="center">{$Lang.CastleStatusPeriod}</td><td align="center">{$Castle.cs_period}</td>
                                </tr>
                                <tr class="trcs">
                                    <td align="center">{$Lang.CastleEndPeriod}</td><td align="center">{$Castle.cs_end}</td>
                                </tr></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>
                </div>
            </div>
        </section>

        <div id="clanModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
            <div class="modal-dialog">
                <div class="modal-content" style="background-color: rgba(0, 0, 0, 0.72);">

                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h4 class="modal-title" id="myModalLabel" style="color: #FFF;"><i class="fa fa-shield"></i> Информация о клане</h4>
                    </div>
                    <div class="clanShow">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>

                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
        <div id="charModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
            <div class="modal-dialog">
                <div class="modal-content" style="background-color: rgba(0, 0, 0, 0.72);">

                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h4 class="modal-title" id="myModalLabel" style="color: #FFF;"><i class="fa fa-shield"></i> Информация о персонаже</h4>
                    </div>
                    <div class="charShow">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>

                </div>
                <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
        </div>
</div>