botsArena/src/scores.php

12 lines
485 B
PHP
Raw Normal View History

2016-06-10 18:35:28 +02:00
<?php
2016-06-10 18:33:18 +02:00
$hist=get_battles_history($currentArena);
2016-06-10 18:35:28 +02:00
2016-06-10 18:33:18 +02:00
foreach($hist as $sc){
2016-06-10 18:36:47 +02:00
echo '<article><h3><a href="/p/aboutBot/'.urlencode(htmlentities($sc['bot1'])).'">'.$sc['bot1'].'</a> VS <a href="/p/aboutBot/'.urlencode(htmlentities($sc['bot2'])).'">'.$sc['bot2'].'</a></h3>
2016-06-10 18:33:18 +02:00
<ul>
<li>'.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'</li>
<li>'.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'</li>
<li>'.$lang['DRAW'].":".$sc['draws'].'</li>
2016-06-10 18:36:47 +02:00
</ul></article>';
2016-06-10 18:33:18 +02:00
}