This commit is contained in:
Gnieark 2016-06-10 16:22:36 +02:00
parent 33ca6c0a44
commit f740ec1206

View File

@ -77,14 +77,14 @@ if(isset($_GET['arena'])){
$asideSectionContent.='</ul><h2><a href="#" onclick="document.getElementById(\'detailMatches\').class=\'\';">Détail des matchs</a></h2>'; $asideSectionContent.='</ul><h2><a href="#" onclick="document.getElementById(\'detailMatches\').class=\'\';">Détail des matchs</a></h2>';
foreach($hist as $sc){ foreach($hist as $sc){
$asideSectionContent.='<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> $asideSectionContent.='<article id="detailMatches" class="hidden"><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>
<ul id="detailMatches" class="hidden"> <ul>
<li>'.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'</li> <li>'.$sc['bot1']." ".$lang['VICTORIES'].":".$sc['player1Wins'].'</li>
<li>'.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'</li> <li>'.$sc['bot2']." ".$lang['VICTORIES'].":".$sc['player2Wins'].'</li>
<li>'.$lang['DRAW'].":".$sc['draws'].'</li> <li>'.$lang['DRAW'].":".$sc['draws'].'</li>
</ul>'; </ul>';
} }
$asideSectionContent.='</article>';
$cssAdditionalScript=""; $cssAdditionalScript="";
if(isset($currentArenaArr['cssFile'])){ if(isset($currentArenaArr['cssFile'])){
$cssAdditionalScript.='<style type="text/css"><!--'."\n".file_get_contents("../src/arenas/".$currentArena."/".$currentArenaArr['cssFile'])."\n--></style>"; $cssAdditionalScript.='<style type="text/css"><!--'."\n".file_get_contents("../src/arenas/".$currentArena."/".$currentArenaArr['cssFile'])."\n--></style>";