botsArena/src/arenas/connectFour/public.php

29 lines
791 B
PHP
Raw Normal View History

2016-05-09 21:36:41 +02:00
<?php
require_once(__DIR__."/functions.php");
2016-05-11 10:33:32 +02:00
$bots=get_Bots_Array('connectFou');
2016-05-09 21:36:41 +02:00
?>
2016-05-11 09:35:11 +02:00
<article>
2016-05-09 23:38:36 +02:00
<h2><?php echo $lang['MAKE_DUEL'];?></h2>
<p>
<select name="bot1" id="bot1">
<?php
for($i=0;$i<count($bots);$i++){
2016-05-11 11:16:40 +02:00
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
2016-05-09 23:38:36 +02:00
}
?>
</select>
&nbsp;VS&nbsp;
<select name="bot2" id="bot2">
<?php
for($i=0;$i<count($bots);$i++){
2016-05-11 11:16:40 +02:00
echo '<option value="'.$i.'">'.$bots[$i]['name'].'</option>';
2016-05-09 23:38:36 +02:00
}
?>
</select>
</p>
2016-05-09 23:50:07 +02:00
<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>
2016-05-09 21:36:41 +02:00
<div id="fightResult"></div>
</article>