<?php
/* Smarty version 3.1.29, created on 2016-09-16 16:44:09
  from "/var/www/gredy/data/www/evomu.ru/views/templates/evomu/rankings/index.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57dbf729801106_03328231',
  'file_dependency' => 
  array (
    '75c8094d2ba7092ca66363029b5d13c92da5489c' => 
    array (
      0 => '/var/www/gredy/data/www/evomu.ru/views/templates/evomu/rankings/index.tpl',
      1 => 1474033442,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_57dbf729801106_03328231 ($_smarty_tpl) {
?>
<div class="statistic"><!-- Nav tabs -->
    <div id="info1">
        <h2 style="text-align:center;">ОБЩАЯ СТАТИСТИКА</h2>

      
				<div style="text-align:center; font-size:13px; "><b>
                <a style="color:rgb(253,197,92);" href="/statistic/players">Топ персонажей</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/guilds">Топ гильдий</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/pk">Убийцы</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/prisons">Заключенные</a>  |
                <a style="color:rgb(253,197,92);" href="/statistic/castle">Замок</a></b>
            <br>
						<?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;?>
               <b><a class="select-server-statistic" style="font-size: 15px; color:rgb(253,197,92);" href="/statistic/index/<?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></b>
            <?php }
}
?>

        <?php }?>
		</div>
		<hr />
		<div class="caption1">
            <table width="100%">
                <tr>
                    <td colspan="2" style="text-align: center; background: rgb(89, 36, 23); font-weight: bold; color #fff; ">Общая статистика</td>
                </tr>
                <tr>
                    <td>Играют</td>
                    <td style="color: #9ADC00;"><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Online'];?>
</td>
                </tr>
                <tr>
                    <td>Аккаунтов</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Accounts'];?>
</td>
                </tr>
                <tr>
                    <td>Персонажей</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Players'];?>
</td>
                </tr>
                <tr>
                    <td>Гильдий</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Guilds'];?>
</td>
                </tr>
               
            </table>
            <hr>
            <table width="100%">
                <tr>
                    <td colspan="4" style="text-align: center; background: rgb(89, 36, 23); font-weight: bold; color #fff; ">Статистика персонажей</td>
                </tr>
                <tr>
                    <td style="color: #fecf75;">Класс</td>
                    <td style="color: #fecf75;">1 професия</td>
                    <td style="color: #fecf75;">2 професия</td>
                    <td style="color: #fecf75;">3 професия</td>
                </tr>
                <tr>
                    <td>DW/SM/GM</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['DW'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['SM'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['GM'];?>
</td>
                </tr>
                <tr>
                    <td>DK/BK/BM</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['DK'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['BK'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['BM'];?>
</td>
                </tr>
                <tr>
                    <td>FE/ME/HE</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['FE'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['ME'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['HE'];?>
</td>
                </tr>
                <tr>
                    <td>SUM/BS/DiS</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['SUM'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['BS'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['DiM'];?>
</td>
                </tr>
                <tr>
                    <td>MG/DM</td>
                    <td>-/-</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['MG'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['DM'];?>
</td>
                </tr>
                <tr>
                    <td>DL/LE</td>
                    <td>-/-</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['DL'];?>
</td>
                    <td><?php echo $_smarty_tpl->tpl_vars['Statistic']->value['Count']['LE'];?>
</td>
                </tr>
            </table>
            <hr>
            <table width="100%" border="0" class="tableMain">
                <tr colspan="4" style="text-align: center; background: rgb(89, 36, 23); font-weight: bold; color #fff; "><td colspan="4">Владельцы Замка</td></tr>
                <?php if ($_smarty_tpl->tpl_vars['Castle']->value['ownerg'] != '') {?>
                    <tr colspan="4" style="text-align: center;"><td colspan="4"><span style="color: #fecf75;"><a href="/statistic/guild/<?php echo $_smarty_tpl->tpl_vars['Castle']->value['ownerg'];?>
"><?php echo $_smarty_tpl->tpl_vars['Castle']->value['ownerg'];?>
</a></span></td></tr>
                <?php } else { ?>
                    <tr colspan="4" style="text-align: center"><td colspan="4">Замок не захвачен</td></tr>
                <?php }?>
            </table>
            <table width="100%" border="0" class="tableMain">
                <tr colspan="4" style="text-align: center; background: rgb(89, 36, 23); font-weight: bold; color #fff; "><td colspan="4">Crywolf</td></tr>
                <?php if (($_smarty_tpl->tpl_vars['Statistic']->value['Crywolf'] == 1)) {?>
                    <tr colspan="4"><td colspan="4">Crywolf захвачен</td></tr>
                <?php } else { ?>
                    <tr colspan="4" style="text-align: center"><td colspan="4">Crywolf не захвачен</td></tr>
                <?php }?>
            </table>

            
        </div>
        <div style="clear: both;"></div>
    </div>
    <div style="clear: both;"></div>
</div>
<?php }
}
