botsArena/src/arenas/connectFour/public.php
2016-05-15 14:48:46 +02:00

28 lines
770 B
PHP

<?php
require_once(__DIR__."/functions.php");
$bots=get_Bots_Array('connectFou');
?>
<article>
<h2><?php echo $lang['MAKE_DUEL'];?></h2>
<p>
<select name="bot1" id="bot1">
<?php
foreach($bots as $bot){
echo '<option value="'.$bot['id'].'">'.$bot['name'].'</option>';
}
?>
</select>
&nbsp;VS&nbsp;
<select name="bot2" id="bot2">
<?php
foreach($bots as $bot){
echo '<option value="'.$bot['id'].'">'.$bot['name'].'</option>';
}
?>
</select>
</p>
<p><input type="button" value="<?php echo $lang['FIGHT']; ?>" onclick="connectFour(document.getElementById('bot1').value,document.getElementById('bot2').value,'<?php echo xd_check_input(2); ?>');"></p>
<div id="fightResult"></div>