<?php
/* Smarty version 3.1.29, created on 2017-08-03 17:19:04
  from "/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/rankings/guild.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_598330d8e93213_03376340',
  'file_dependency' => 
  array (
    '5942d91ed36cc51d260f6e5f047c4857fd9ef4c4' => 
    array (
      0 => '/var/www/isbvqaph/data/www/freyamu.ru/views/templates/Freyamu/rankings/guild.tpl',
      1 => 1498047030,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_598330d8e93213_03376340 ($_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'); // добавить класс
            });
            $(document).ready(function() {
                $('.main-content').height($('.b_playertop_0').height()+500);
            });
        <?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" width="100%" style="margin-bottom:12px; padding-top: 3px;">

                            <tr>
                                <td class="no-bg" rowspan="10" style="text-align: center;"><img src="<?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Mark'];?>
" /></td>
                                <th>Название</th>
                                <td><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Name'];?>
</a></td>
                            </tr>
                            <tr>
                                <th>Мастер</th>
                                <td><a href="/statistic/player/<?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Master'];?>
"><?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Master'];?>
</a></td>
                            </tr>
                            <tr>
                                <th>Очков</th>
                                <td><?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['G_Score'];?>
</td>
                            </tr>
                            <tr>
                                <th>Альянс</th>
                                <th>
                                    <?php if ($_smarty_tpl->tpl_vars['Guild']->value[0]['Aliance'] == '') {?>
                                        -/-
                                    <?php } else { ?>
                                        <a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['Aliance'];?>
"><?php echo $_smarty_tpl->tpl_vars['Guild']->value[0]['Aliance'];?>
</a>
                                    <?php }?>
                                </th>
                            </tr>
                        </table>
                        <h1>Информация об учасниках</h1>
                        <table class="table-member" width="100%">
                            <tr class="header-ranking-table">
                                <th>№</th>
                                <th>Ник</th>
                                <th>Класс</th>
                                <th>Уровень</th>
                                <th>Ресет</th>
                                <th>Гранд Ресет</th>
                                <th>Статус</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['Guild']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_member_0_saved_item = isset($_smarty_tpl->tpl_vars['member']) ? $_smarty_tpl->tpl_vars['member'] : false;
$_smarty_tpl->tpl_vars['member'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['member']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['member']->value) {
$_smarty_tpl->tpl_vars['member']->_loop = true;
$__foreach_member_0_saved_local_item = $_smarty_tpl->tpl_vars['member'];
?>
                                <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                                    <tr class="ranking-zebra">
                                        <?php } else { ?>
                                    <tr>
                                <?php }?>
                                <?php if ($_smarty_tpl->tpl_vars['member']->value['Online']) {?>
                                    <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['member']->value['Name'];?>
"><?php echo $_smarty_tpl->tpl_vars['member']->value['Name'];?>
</a></td>
                                <?php if ($_smarty_tpl->tpl_vars['member']->value['PremiumTime'] > 0) {?>
                                    <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 Character::GetClassName($_smarty_tpl->tpl_vars['member']->value['Class']);?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['member']->value['cLevel'];?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['member']->value['Resets'];?>
</td>
                                    <td><?php echo $_smarty_tpl->tpl_vars['member']->value['GrandResets'];?>
</td>
                                <?php }?>
                                <td><?php echo $_smarty_tpl->tpl_vars['member']->value['G_Status'];?>
</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['member'] = $__foreach_member_0_saved_local_item;
}
if ($__foreach_member_0_saved_item) {
$_smarty_tpl->tpl_vars['member'] = $__foreach_member_0_saved_item;
}
?>
                        </table>
                    </div></div>
            </div>
            <ul class="b_tabs_sub_0">
                <li class="b_0_pvp "><a href="/statistic/players">Игроков</a></li><li class="b_0_pk active"><a
                            href="/statistic/pk">Убийц</a></li><li class="b_0_clan"><a href="/statistic/guilds">Кланов</a></li><li class="b_0_castl">
                    <a href="/statistic/castle">Замок</a></li>
            </ul>
        </div>

    </div>


<?php }
}
