<?php
include_once 'includes/register.inc.php';
include_once 'includes/functions.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Juniors Wunschliste: Registrierung</title>
        <script type="text/JavaScript" src="js/sha512.js"></script> 
        <script type="text/JavaScript" src="js/forms.js"></script>
        <link rel="stylesheet" href="css/style.css" />
		
    </head>
    <body style="background-color:#d1effc">
        <!-- Anmeldeformular f&uuml;r die Ausgabe, wenn die POST-Variablen nicht gesetzt sind
        oder wenn das Anmelde-Skript einen Fehler verursacht hat. -->
        <?php
        if (!empty($error_msg)) {
            echo $error_msg;
        }
        ?>
       
        <form action="<?php echo esc_url($_SERVER['PHP_SELF']); ?>" method="post" name="registration_form">
			<div id="loginDiv" class="registerdiv">
				<table border="0px solid black" >
					<tr><th style="text-align:left;">Registrierung:</th><td>&nbsp;</td><td>&nbsp;</td></tr>
					<tr><td>Benutzername: </td><td>&nbsp;</td><td><input class="login-input" style="width:150px;" type="text" name="username" id="username" /></td></tr>
					<tr><td>Email: </td><td>&nbsp;</td><td><input class="login-input" style="width:150px;" type="text" name="email" id="email"/></td></tr>
					<tr><td>Passwort: </td><td>&nbsp;</td><td><input class="login-input" style="width:150px;" type="password" name="password" id="password"/></td></tr>
					<tr><td>Passwort wiederholen: </td><td>&nbsp;</td><td><input class="login-input" style="width:150px;" type="password" name="confirmpwd" id="confirmpwd"/></td></tr>
					<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
					<tr><td>&nbsp;</td><td>&nbsp;</td><td style="text-align:right;"><input class='register-button' type="button" value="Registrieren" onclick="return regformhash(this.form,
																																		   this.form.username,
																																		   this.form.email,
																																		   this.form.password,
																																		   this.form.confirmpwd);" /></td></tr>
				</table>
				<br>
				<p style="float:right;">Zur&uuml;ck zum <strong><a href="index.php">Login</a></strong>&nbsp;&nbsp;&nbsp;</p>
			</div>
		</form>
    </body>
</html>
