select options

This commit is contained in:
Gnieark 2015-11-30 20:29:37 +01:00
parent c3b7c160f0
commit 652b4b7d81
2 changed files with 9 additions and 2 deletions

View File

@ -2,7 +2,7 @@
$lang=array(
'lang' => 'en',
'SITE_NAME' => 'bots\'arena',
'SITE_DESCRIPTION' => '<p>BWelcome on the bots\'arena.<br/><b>this website is still in dev. it doesn\'t work yet</b><br/>This vhost is a mirror of dev branch <a href="https://github.com/gnieark/botsArena/tree/dev">this github repo</a></p>
'SITE_DESCRIPTION' => '<p>Welcome on the bots\'arena.<br/><b>this website is still in dev. it doesn\'t work yet</b><br/>This vhost is a mirror of dev branch <a href="https://github.com/gnieark/botsArena/tree/dev">this github repo</a></p>
<p>Many games will be proposed here. You wont play to, but you will developp the bot who will play for you.
This website will be the arena for bots confrontation.</p>',
'HOME' => 'Home page',

View File

@ -6,7 +6,14 @@ echo $lang['SITE_DESCRIPTION'];?>
<h2>Ajouter votre bot</h2>
<form method="POST" action="/">
<p><label for="botName">Nom de votre Bot: </label><input id="botName" type="text" name="botName" placeholder="votre pseudo par exemple"/></p>
<p><label for="botGame">Jeu du bot: </label><select id="botGame" name="botGame"></select></p>
<p><label for="botGame">Jeu du bot: </label>
<select id="botGame" name="botGame">
<?php
foreach($arenas as $arena){
echo '<option value="'.$arena['id'].'">'.$arena['id'].'</option>';
}
?>
</select></p>
<p><label for="botURL">URL du bot:</label><input type="text" name="botURL" id="botURL" phaceholder="http://"/></p>
<p>Description:<textarea></textarea></p>
<p><label for="email">Votre e-mail (sera utilisé pour valider l'inscription du bot)</label><input type="text" name="email" id="email"/></p>