<div class="statistic castle"><!-- Nav tabs -->
    <div class="col-lg-3">
        <div class="sidebar-head">
            <h2>навигация</h2>
        </div>
        <hr />
        <hr />
        <hr />
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="" ><a href="/statistic"><span style="color:#9ADC00">ОБЩАЯ СТАТИСТИКА</span></a></li>
            <li role="presentation" class="" ><a href="/statistic/players">TOP PLAYERS</a></li>
            <li role="presentation"><a href="/statistic/guilds">TOP GUILDS</a></li>
            <li role="presentation"><a href="/statistic/pk">TOP PK</a></li>
            <li role="presentation" class="active"><a href="/statistic/castle">CASTLE</a></li>
            <li role="presentation"><a href="/statistic/prisons">BAN LIST</a></li>
        </ul>
    </div>

    <div class="tab-content col-lg-9">
        <div class="tab-pane fade in active" id="info1">
            <h2>{$Lang.CastleTitle}</h2>
            {if $CountDB > 1}
                {for $num_db=0 to $CountDB-1 max=5}
                    <a class="select-server-statistic" href="/statistic/castle/{$num_db}">{$NamesDB[$num_db]}</a>
                {/for}
            {/if}
            <hr />
            <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">
                {if $Castle.owner != ""}
                    <tbody>
                    <tr>
                        <td rowspan="2" valign="center"><img border="0" src="{$Castle.mark}"></td>
                        <td style="font-weight:bold">Владельцы</td>
                    </tr>
                    <tr align="left">
                        <td><a href="/statistic/guild/{$Castle.ownerg}">{$Castle.ownerg}</a></td>
                    </tr>
                    </tbody>
                {else}
                    <tr>
                        <td align="center" colspan="2">{$Lang.CastleEmpty}</td>
                    </tr>
                {/if}
                </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>{$Lang.CastleMoney}</td><td>{number_format($Castle.money)} Zen</td></tr>
                <tr class="trcs"><td>{$Lang.CastleChaosMachineRate}</td><td>{$Castle.chaos_tax}%</td></tr>
                <tr class="trcs"><td>{$Lang.CastleTaxRate}</td><td>{$Castle.store_tax}%</td></tr>
                 <tr class="trcs"><td>{$Lang.CastleEntryPrice}</td><td>{number_format($Castle.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);">{$Lang.CastleSchedule}</td>
                </tr>
                <tr class="trcs">
                    <td align="center">{$Lang.CastleStartPeriod}</td><td>{$Castle.cs_start}</td>
                </tr>
                <tr class="trcs">
                    <td align="center">{$Lang.CastleStatusPeriod}</td><td>{$Castle.cs_period}</td>
                </tr>
                <tr class="trcs">
                    <td align="center">{$Lang.CastleEndPeriod}</td><td>{$Castle.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);">{$Lang.CastlePretends}</td></tr>

                {foreach from=$Castle.g_registed item=value}
                    <tr  class="trcs"><td><a href="/statistic/guild/{$value.guild}"> {$value.guild} </a></td><td><img src="{$value.marks}" alt=""></td></tr>
                {/foreach}
                </table>
            <div style="clear: both;"></div>
        </div>
    </div>
</div>

            </div>
        </div>
    </div>
</div>
