<?php
/* Smarty version 3.1.29, created on 2017-06-19 10:29:25
  from "/var/www/h3ysh156/data/www/freyamu.ru/views/templates/Freyamu/rankings/castle.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_59479975d97383_07292212',
  'file_dependency' => 
  array (
    '957856866277f6fc7d4c12f36f4e6ac4162ab2e3' => 
    array (
      0 => '/var/www/h3ysh156/data/www/freyamu.ru/views/templates/Freyamu/rankings/castle.tpl',
      1 => 1479320994,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_59479975d97383_07292212 ($_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'); // добавить класс
            });
        <?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 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><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleMoney'];?>
</td><td><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['money']);?>
 Zen</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleChaosMachineRate'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['chaos_tax'];?>
%</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleTaxRate'];?>
</td><td><?php echo $_smarty_tpl->tpl_vars['Castle']->value['store_tax'];?>
%</td></tr>
                            <tr class="trcs"><td><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleEntryPrice'];?>
</td><td><?php echo number_format($_smarty_tpl->tpl_vars['Castle']->value['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);"><?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><?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><?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><?php echo $_smarty_tpl->tpl_vars['Castle']->value['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);"><?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_0_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_0_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_0_saved_local_item;
}
if ($__foreach_value_0_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_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 }
}
