Facebook login implemented
This commit is contained in:
99
website/views/facebookRegisterModal.php
Normal file
99
website/views/facebookRegisterModal.php
Normal file
@@ -0,0 +1,99 @@
|
||||
<!-- The Modal -->
|
||||
<div id="fbModal" class="modal">
|
||||
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"
|
||||
return= $correct
|
||||
method="post"
|
||||
name="fbModal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<span class="close">×</span>
|
||||
<h3>Voer uw gegevens in</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="login_containerfault"><span><?php echo $fbRegisterErr; ?></span></div>
|
||||
<div class="login_containerfault"><span><?php echo $fbEmailErr; ?></span></div>
|
||||
<!-- Register username -->
|
||||
<div class="login_containerregister">
|
||||
<label><b>Gebruikersnaam</b></label>
|
||||
<input type="text"
|
||||
placeholder="Voer uw gebruikersnaam in"
|
||||
name="fbUsername"
|
||||
value="<?php echo $fbUsername ?>"
|
||||
title="Moet minimaal 6 karakters bevatten"
|
||||
>
|
||||
*<span class="error"> <?php echo $fbUsernameErr;?></span>
|
||||
<ul>
|
||||
<li>Minstens 6 karakters</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Register password -->
|
||||
<div class="login_containerregister">
|
||||
<label><b>Wachtwoord</b></label>
|
||||
<input type="password"
|
||||
placeholder="Voer uw wachtwoord in"
|
||||
name="fbPassword"
|
||||
value="<?php echo $fbPassword ?>"
|
||||
id="password"
|
||||
>
|
||||
*<span class="error"> <?php echo $fbPasswordErr;?></span>
|
||||
<ul>
|
||||
<li>Minstens 8 karakters</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Repeat password -->
|
||||
<div class="login_containerregister">
|
||||
<label><b>Herhaal wachtwoord</b></label>
|
||||
<input type="password"
|
||||
placeholder="Herhaal wachtwoord"
|
||||
name="fbConfirmpassword"
|
||||
value="<?php echo $fbConfirmpassword ?>"
|
||||
id="confirmpassword"
|
||||
title="Herhaal wachtwoord"
|
||||
>
|
||||
*<span class="error"> <?php echo $fbConfirmpasswordErr;?></span>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(empty($userBday)) { ?>
|
||||
<!-- Register birthday -->
|
||||
<div class="login_containerregister">
|
||||
<label><b>Geboortedatum</b></label>
|
||||
<?php
|
||||
include("../views/fbBdayInput.php");
|
||||
?>
|
||||
*<span class="error"> <?php echo $fbBdayErr;?></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit"
|
||||
value="fbRegister"
|
||||
name="submit"
|
||||
id="frm1_submit">
|
||||
Registreer account
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden"
|
||||
name="fbName"
|
||||
value="<?php echo $fbName ?>">
|
||||
<?php echo $fbName ?>
|
||||
<input type="hidden"
|
||||
name="fbSurname"
|
||||
value="<?php echo $fbSurname ?>">
|
||||
<?php echo $fbSurname ?>
|
||||
<input type="hidden"
|
||||
name="fbBday"
|
||||
value="<?php echo $fbBday ?>">
|
||||
<?php echo $fbBday ?>
|
||||
<input type="hidden"
|
||||
name="fbEmail"
|
||||
value="<?php echo $fbEmail ?>">
|
||||
<?php echo $fbEmail ?>
|
||||
</form>
|
||||
</div>
|
||||
Reference in New Issue
Block a user