battles/ajax/rate_ruins.php

22 lines
861 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?php
include('../config.php');
function form_rate($level) {
$r = '<b>По уровням : </b>';
for($i = 7; $i <= 13; $i++) {
if($level == $i) {
$r .= ' <b>['.$i.']</b>';
} else {
$r .= ' <a href="javascript: void(0);" id="'.$i.'">['.$i.']</a>';
}
}
$r .= '<ol>';
$sp = mysql_query('SELECT `groups`.*, `winers`.* FROM `group_wins` AS `grou WHERE `level` = "'.(int)$level.'" ORDER BY `id` DESC LIMIT 10');
$r .= '</ol>';
$r .= '<script>$("#levelCheck").text('.$level.');</script>';
return $r;
}
if($_GET['level'] >= 7 && $_GET['level'] <= 13) echo form_rate((int)$_GET['level']);
$r .= '<li><span class="date">04.02.16 06:00</span> - Победитель : Отряд «Winers ['.$level.']», в составе: <b>The Kite Runner</b>, <b>Costa</b>, <b>Rallo Tabs</b> <a>«История Турнира»</a></li>';