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
|
2016-05-11 11:20:02 +02:00
|
|
|
foreach($bots as $bot){
|
|
|
|
echo '<option value="'.$bot['id'].'">'.$bot['name'].'</option>';
|
2016-05-09 23:38:36 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
VS
|
|
|
|
<select name="bot2" id="bot2">
|
|
|
|
<?php
|
2016-05-11 11:20:02 +02:00
|
|
|
foreach($bots as $bot){
|
|
|
|
echo '<option value="'.$bot['id'].'">'.$bot['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-15 14:48:46 +02:00
|
|
|
<div id="fightResult"></div>
|