<?php
/* Smarty version 3.1.29, created on 2017-12-20 10:09:53
  from "/var/www/user1291/data/www/mudream.ru/views/templates/Freyamu/cabinet/statistic.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5a3a0cc1e3a108_91737488',
  'file_dependency' => 
  array (
    '94cf7689ce80e9d87763f07cd9afc9c4fd802e27' => 
    array (
      0 => '/var/www/user1291/data/www/mudream.ru/views/templates/Freyamu/cabinet/statistic.tpl',
      1 => 1502632018,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a3a0cc1e3a108_91737488 ($_smarty_tpl) {
?>
<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><?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>Guild</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>
                                    <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                    <td><a href="#statistic" data-toggle="modal" data-target="#charModal" data-char="<?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><?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>
                                        <?php if ($_smarty_tpl->tpl_vars['player']->value['Guild'] != '') {?>
                                            <td><a href="#statistic" data-toggle="modal" data-target="#clanModal" data-clan="<?php echo $_smarty_tpl->tpl_vars['player']->value['Guild'];?>
"><?php echo $_smarty_tpl->tpl_vars['player']->value['Guild'];?>
</a></td>
                                        <?php } else { ?>
                                            <td>-/-</td>
                                        <?php }?>
                                    <?php if ($_smarty_tpl->tpl_vars['player']->value['status'] == 1) {?>
                                        <td><img src="/web/templates/Freyamu/cabinet/images/1.png"></td>
                                    <?php } else { ?>
                                        <td><img src="/web/templates/Freyamu/cabinet/images/0.png"></td>
                                    <?php }?>

                                    <?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);?>
                                    </tr>
                                <?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="tab-pane " id="pk">
                        <div class="main_new_table"> 
                            <table class="table table-hover ">
                                <thead>
                                <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>
                                </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['Killers']->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><?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_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="tab-pane fade" id="clan">
                        <div class="main_new_table"> 
                            <table class="table table-hover ">
                                <thead>
                                <tr>
                                    <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsNomer'];?>
</th>
                                    <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsName'];?>
</th>
                                    <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsMaster'];?>
</th>
                                    <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsMark'];?>
</th>
                                    <th><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsMembers'];?>
</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><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>
                                    <td><a href="#statistic" data-toggle="modal" data-target="#clanModal" data-clan="<?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" data-toggle="modal" data-target="#charModal" data-char="<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Master'];?>
"><?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Master'];?>
</a></td>
                                    <td><img src="<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Mark'];?>
"/></td>
                                    <td><?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="tab-pane fade" id="castle">
                        <div class="main_new_table"> 
                            <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 align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleMoney'];?>
</td><td align="center"><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['money']);?>
 Zen</td></tr>
                                <tr class="trcs"><td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleChaosMachineRate'];?>
</td><td align="center"><?php echo $_smarty_tpl->tpl_vars['Castle']->value['chaos_tax'];?>
%</td></tr>
                                <tr class="trcs"><td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleTaxRate'];?>
</td><td align="center"><?php echo $_smarty_tpl->tpl_vars['Castle']->value['store_tax'];?>
%</td></tr>
                                <tr class="trcs"><td align="center"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleEntryPrice'];?>
</td><td align="center"><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['zone_tax']);?>
 Zen</td></tr>
                           <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 align="center"><?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 align="center"><?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 align="center"><?php echo $_smarty_tpl->tpl_vars['Castle']->value['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);"><?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>
                </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><?php }
}
