<?php
/* Smarty version 3.1.29, created on 2016-07-23 12:19:31
  from "/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/rankings/castle.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_579352c3ef75d7_47931598',
  'file_dependency' => 
  array (
    '6a119495e12f17d9bd997bade36a86337c22faad' => 
    array (
      0 => '/var/www/user179/data/www/evolutionmu.ru/views/templates/evomu/rankings/castle.tpl',
      1 => 1469272717,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_579352c3ef75d7_47931598 ($_smarty_tpl) {
?>
<div class="statistic castle"><!-- Nav tabs -->
        <div id="info1">
            <h2><?php echo $_smarty_tpl->tpl_vars['Lang']->value['CastleTitle'];?>
</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/castle/<?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>
            <div class="caption1">
                <div id="content">
    <div id="box1">

        <div id="box4" class="box-style6">
 
            <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'];
?>
                    <?php if ($_smarty_tpl->tpl_vars['value']->value['guild'] != 0) {?>
                    <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 }?>
                <?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 style="clear: both;"></div>
        </div>
    </div>
</div>

            </div>
        </div>
    </div>
<?php }
}
