<?php
$sLogin = isset($_POST['login'])?$_POST['login']:'';
$sFirstName = isset($_POST['firstname'])?$_POST['firstname']:'';
?>
<form action="?page=logon&register=1" method="post">
	<table>
		<tr><th colspan="2" class="top-left-rounded top-right-rounded">Cr&eacute;ation de compte</th></tr>
		<tr>
			<td>Pr&eacute;nom</td>
			<td><input type="text" name="firstname" value="<?php echo $sFirstName; ?>" /></td>
		</tr>
		<tr>
			<td>Nom de famille</td>
			<td><input type="text" name="login" value="<?php echo $sLogin; ?>" /></td>
		</tr>
		<tr>
			<td>Classe</td>
			<td><?php echo getClasses(); ?></td>
		</tr>
		<tr>
			<td>Mot de passe</td>
			<td><input type="password" name="pass" /></td>
		</tr>
		<tr>
			<td class="bottom-left-rounded">Mot de passe (une nouvelle fois)</td>
			<td class="bottom-right-rounded"><input type="password" name="pass2" /></td>
		</tr>
		<tr>
			<th colspan="2" class="blank">
				<input type="button" name="annuler" onclick="goTo('?page=logon');" value="Annuler">
				&nbsp;&nbsp;
				<input type="submit" value="S'enregistrer">
			</th>
		</tr>
	</table>
</form>