<?php
/* Smarty version 3.1.29, created on 2016-08-02 00:56:57
  from "/var/www/user179/data/www/evomu.ru/views/templates/evomu/rankings/guilds.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_579fc5a97f0002_19538100',
  'file_dependency' => 
  array (
    '4ce438ca23cde3b4bd212c5a8e3159fddf1e90af' => 
    array (
      0 => '/var/www/user179/data/www/evomu.ru/views/templates/evomu/rankings/guilds.tpl',
      1 => 1470087126,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_579fc5a97f0002_19538100 ($_smarty_tpl) {
?>
<div class="statistic"><!-- Nav tabs -->

        <div id="info1">
<h2><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsTitle'];?>
</h2>
            <?php if ($_smarty_tpl->tpl_vars['CountDB']->value > 1) {?>
                <?php
$_smarty_tpl->tpl_vars['num_db'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['num_db']->step = 1;$_smarty_tpl->tpl_vars['num_db']->total = (int) min(ceil(($_smarty_tpl->tpl_vars['num_db']->step > 0 ? $_smarty_tpl->tpl_vars['CountDB']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['CountDB']->value-1)+1)/abs($_smarty_tpl->tpl_vars['num_db']->step)),5);
if ($_smarty_tpl->tpl_vars['num_db']->total > 0) {
for ($_smarty_tpl->tpl_vars['num_db']->value = 0, $_smarty_tpl->tpl_vars['num_db']->iteration = 1;$_smarty_tpl->tpl_vars['num_db']->iteration <= $_smarty_tpl->tpl_vars['num_db']->total;$_smarty_tpl->tpl_vars['num_db']->value += $_smarty_tpl->tpl_vars['num_db']->step, $_smarty_tpl->tpl_vars['num_db']->iteration++) {
$_smarty_tpl->tpl_vars['num_db']->first = $_smarty_tpl->tpl_vars['num_db']->iteration == 1;$_smarty_tpl->tpl_vars['num_db']->last = $_smarty_tpl->tpl_vars['num_db']->iteration == $_smarty_tpl->tpl_vars['num_db']->total;?>
                    <a class="select-server-statistic" href="/statistic/guilds/<?php echo $_smarty_tpl->tpl_vars['num_db']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['NamesDB']->value[$_smarty_tpl->tpl_vars['num_db']->value];?>
</a>
                <?php }
}
?>

            <?php }?>
            <hr>
            <a href="/statistic/players">Топ персонажей</a>  |
            <a href="/statistic/guilds">Топ гильдий</a>  |
            <a href="/statistic/pk">Убийцы</a>  |
            <a href="/statistic/prisons">Заключенные</a>  |
            <a href="/statistic/castle">Замок</a>
            <br>
    <?php if ($_smarty_tpl->tpl_vars['Guilds']->value == 0) {?>
        <p><?php echo $_smarty_tpl->tpl_vars['Lang']->value['TopGuildsListEmpty'];?>
</p>
    <?php } else { ?>
        <table id="l2top" class="ranking-table" width="100%" style="text-align:center;">
            <tr class="header-ranking-table">
                <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>
            <?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_0_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_0_saved_local_item = $_smarty_tpl->tpl_vars['guild'];
?>
                <?php if ($_smarty_tpl->tpl_vars['i']->value%2 == 0) {?>
                    <tr class="ranking-zebra">
                        <?php } else { ?>
                    <tr>
                <?php }?>
                <td><?php echo $_smarty_tpl->tpl_vars['i']->value;?>
</td>

                <td><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Name'];?>
/<?php echo $_smarty_tpl->tpl_vars['TopDb']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Name'];?>
</a></td>
                
                <td><?php echo $_smarty_tpl->tpl_vars['guild']->value['G_Master'];?>
</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_0_saved_local_item;
}
if ($__foreach_guild_0_saved_item) {
$_smarty_tpl->tpl_vars['guild'] = $__foreach_guild_0_saved_item;
}
?>
        </table>
    <?php }?>
</div>
</div>
<?php }
}
