<main class="rating zero"><ul class="top"><li><a class="ajax block" href="/rating/refresh/<?=$refresh?>">
<img alt="" class="icon" src="/design/icons/refresh.png">Обновить</a></li></ul><h3>Рейтинги игроков</h3>
<ul class="rating"><? if ($type != 'points') : ?><li><a class="ajax block" href="/rating/points">
<img alt="" class="icon" src="/design/icons/points.png"><?=$list['points']?></a></li><? endif; ?>
<? if ($type != 'money') : ?><li><a class="ajax block" href="/rating/money">
<img alt="" class="icon" src="/design/icons/money.png"><?=$list['money']?></a></li><? endif; ?>
<? if ($type != 'product') : ?><li><a class="ajax block" href="/rating/product">
<img alt="" class="icon" src="/design/icons/product.png"><?=$list['product']?></a></li><? endif; ?>
<? if ($type != 'tasks') : ?><li><a class="ajax block" href="/rating/tasks">
<img alt="" class="icon" src="/design/icons/task.png"><?=$list['tasks']?></a></li><? endif; ?>
<? if ($type != 'fortune') : ?><li><a class="ajax block" href="/rating/fortune">
<img alt="" class="icon" src="/design/icons/fortune.png"><?=$list['fortune']?></a></li><? endif; ?></ul>
<h3><?=$list[$type]?> (ТОП - <?=DATA['rating']?>)</h3><ul class="rating<?=$class?>"><? foreach($rating as &$post) : ?>
<li><? if ($post['link']) : ?><a class="ajax list" href="/profile/<?=$post['nick']?>"><? endif; ?><article class="rating">
<img alt="" class="icon rating" src="/design/icons/<?=$USER->sex($post['sex'])?>.png"><h4><?=$post['name']?> 
<span class="color">(<?=$post['count']?>)</span></h4></article><? if ($post['link']) : ?></a><? endif; ?>
</li><? endforeach; ?></ul><? if (!$mine) : ?><h3>Ваш рейтинг</h3><ul class="rating list">
<li><? if ($my['link']) : ?><a class="ajax list" href="/profile/<?=$my['nick']?>"><? endif; ?><article class="rating">
<img alt="" class="icon rating" src="/design/icons/<?=$USER->sex(USER['sex'])?>.png"><h4><?=USER['nick']?> 
<span class="color">(<?=$my['count']?>)</span></h4></article><? if ($my['link']) : ?></a><? endif; ?></li></ul><? endif; ?></main>