echo"
<script LANGUAGE=\"JavaScript\">
function ShowBots (login,id,level) {
var user_id;
if (id != '') user_id=' [url="\'../inf.php?'+id+'\'"]<img src=../img/images/inf.gif width=11 height=11 alt=\'Информация о персонаже '+login+'\'>[/url]';
document.write('<TABLE><TR><TD width=20><A HREF=\"../vault.php?set=bots&StartBattle='+id+'\"><IMG SRC=../img/images/kulak.gif></A> </TD><TD><IMG SRC=../img/rank/60.gif>[b]'+login+'[/b] ['+level+']'+user_id+'</TD></TR></TABLE>');
}
</SCRIPT>
";
$bots = mysql_query("SELECT * FROM person where `room` = '".$stat[room]."' and `rank` = '60' order by level");
if ($msg!="") echo"<center><font color=red>[b]$msg[/b]</font></center>
";
if (empty($user_offer['time'])) {
if (mysql_num_rows($bots)) {
for($i=0; $i<mysql_num_rows($bots); $i++) {
$bot=mysql_fetch_array($bots);
echo"<script language=JavaScript>";
echo" ShowBots('".$bot[user]."','".$bot[id]."','".$bot[level]."'); ";
echo"</SCRIPT>";
if ($chl['rank']==60 && ($chl['battle'] == $chl['last_battle'] || !$chl['battle'])) {
echo "<font color='red'>
</font>";} else echo "<font color='green'>
</font>";
}
} else { echo"<center>Монстров не найдено!</center>"; }
} else { echo"<center>Вы подали заявку на бой, дождитесь начала боя!</center>"; }