<<<<<<< HEAD:index.php
<?php 
error_reporting(E_ALL);
ini_set('display_errors', '1');
include "data_model/model.php";
$r = new Database_Reader();
$r->get_registrations("*****@*****.**");
?>
=======
>>>>>>> 9f243be92874b38893c65083a1af2090579fc0b1:demoFiles/register.php
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Able Sail</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="style.css">

	<!--Bootstrap-->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	<link rel="stylesheet" href="theme.min.css">
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

</head>
<body>
	<section class="container">
		<h1>Welcome to Able Sail.</h1>
		<p>Please register below and then log in!</p>
		<!-- Change the width and height values to suit you best -->
		<div class="typeform-widget" data-url="https://viraj3f.typeform.com/to/LV2Pbv" data-text="Able Sail Kingston Application" style="width:100%;height:500px;"></div>
		<script>(function(){var qs,js,q,s,d=document,gi=d.getElementById,ce=d.createElement,gt=d.getElementsByTagName,id='typef_orm',b='https://s3-eu-west-1.amazonaws.com/share.typeform.com/';if(!gi.call(d,id)){js=ce.call(d,'script');js.id=id;js.src=b+'widget.js';q=gt.call(d,'script')[0];q.parentNode.insertBefore(js,q)}})()</script>
<?php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // Get form information and store within variable
    $username = $_POST["username"];
    $email = $_POST["email"];
    $password = $_POST["password"];
    $cPassword = $_POST["cPassword"];
    // Include helper functions
    include "./data_model/model.php";
    $model = new Database_Reader();
    // If valid user, insert information into database
    if ($model->valid_user($username, $password) === true) {
        $model->new_user($username, $email, $password);
    }
    header('Location: register.php');
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<script type="text/javascript" src="createAccountScript.js"></script>
	<link rel="stylesheet" type="text/css" href="PLACEHOLDER.css">
	<meta charset="UTF-8">
	<title>Create Account</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<!--Bootstrap-->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	<link rel="stylesheet" href="demoFiles/theme.min.css">
<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once "/data_model/model.php";
$model = new Database_Reader();
$registration = $model->get_registrations($ID);
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title>Update info for Able Sail</title>
		<meta name="generator" content="Bootply" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link href="css/bootstrap.min.css" rel="stylesheet">
	</head>
	<body>
<!--login modal-->
<div id="loginModal" class="modal show" tabindex="-1" role="dialog" aria-hidden="true">
  <div class="modal-dialog">
  <div class="modal-content">
      <div class="modal-header">
          <button onclick="loginFunction()" type="button" class="close" data-dismiss="modal" aria-hidden="true">Where is this?</button >
          <h1  class="text-center">Is your registration information up to date?</h1>
      </div>
      <div class="modal-body">
      <div id="registrationsarea">
      <table class="table table-striped">
<?php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // Get form information and store within variable
    $username = $_POST["username"];
    $email = $_POST["email"];
    $password = $_POST["password"];
    $cPassword = $_POST["cPassword"];
    // Include helper functions
    include "./data_model/model.php";
    $model = new Database_Reader();
    $model->new_user($username, $email, $password);
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<script type="text/javascript" src="createAccountScript.js"></script>
	<link rel="stylesheet" type="text/css" href="PLACEHOLDER.css">
	<meta charset="UTF-8">
	<title>Create Account</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<!--Bootstrap-->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
</head>
<body>
	<h1>Create Account</h1>
Beispiel #5
0
<?php

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // Get form information and store within variable
    $username = $_POST["username"];
    $password = $_POST["password"];
    // Include helper functions
    include "./data_model/model.php";
    $model = new Database_Reader();
    // If valid user, insert information into database
    if ($model->valid_user($username, $password) === true) {
        echo "<script> updateInfoFunction(); </script>";
    }
    echo "ERROR: Information Not Valid!";
    echo "<script> updateInfoFunction(); </script>";
}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="utf-8">
		<title>Login Form for Able Sail</title>
		<meta name="generator" content="Bootply" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<!--[if lt IE 9]>
			<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->
		<link href="css/styles.css" rel="stylesheet">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once "../data_model/model.php";
$model = new Database_Reader();
$registrations = $model->get_all_registrations();
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>View Registrations</title>

	<!--Bootstrap-->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
	<link rel="stylesheet" href="theme.min.css">
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>

</head>
<body>
	<section class="container-fluid">
		<h1>Hello Admin!</h1>
		<p>Please view your registrations below.</p>
		<div id="registrationsarea">
			<table class="table table-striped">
				<thead>
					<tr>
						<th>ID</th>
						<th>First Name</th>