<?php
//2015-06-26 - nwmosses - added includes to display proper menu for logged in users
include_once("../php/common_functions.php"); //common functions in the course registartion system
include_once("../php/config.php"); //holds global config variables
$page_title = "CES Login";
include("../php/top.php"); //the HTML that outlines the top of the page
//include($_SERVER['DOCUMENT_ROOT'] . "/ces/ces_nav.php"); //get the HTML nav common to all CES public pages
?>
<article class="ces-wide">
<div class="ces-header">
<?php include("../menu.php"); ?>
<h2>Research Studies</h2>
</div>
<div class="ces-login-form" style="width:480px;">
<?php
if(isset($_GET['error'])){
if ($_GET['error'] == 1){
echo '<p class="alert alert-error">Your login was unsuccessful at this time. Your account has not been confirmed. Please check your email for a message from CES and make sure to click the link in that message to confirm your registration.</p>';
}
elseif ($_GET['error'] == 2){
echo '<p class="alert alert-error">Your login was unsuccessful. Please check that your <strong>email</strong> and <strong>password</strong> are correct, and try again.</p>';
}
}
?>
<form action="../php/check_login.php" name="login" method="POST" class="form-signin">
<input type="hidden" name="user_type" value="user">
<input name="email" type="email" id="email" class="form-control" placeholder="Email" required autofocus>
<input name="password" type="password" id="password" class="form-control" placeholder="Password" required>
<a href="forgot-password/" class="forgot-pass">Forgot Password?</a>
<a class="btn btn-block ces-green-btn" href="../registration/"><i class="fa fa-arrow-circle-right fa-fw" aria-hidden="true"></i> Create Account</a>
<a class="btn btn-block ces-blue-btn" type="submit" onclick="document['login'].submit()"><i class="fa fa-sign-in fa-fw" aria-hidden="true"></i> Log In</a>
</form>
</div>
</article>
</section><!-- #middle-->
</div><!-- #wrapper -->
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/require/footer.php';?>