<?php 
error_reporting(E_ALL ^ E_DEPRECATED);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Forgot Password - Online Banking</title>

<!-- Bootstrap Core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="vendor/roc/jbclient.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<script type="text/javascript">
function MM_validateForm() { //v4.0
  if (document.getElementById){
    var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
    for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
      if (val) { nm=val.name; if ((val=val.value)!="") {
        if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
          if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
        } else if (test!='R') { num = parseFloat(val);
          if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
          if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
            min=test.substring(8,p); max=test.substring(p+1);
            if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
      } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
    } if (errors) alert('The following error(s) occurred:\n'+errors);
    document.MM_returnValue = (errors == '');
} }
    </script>
</head>
<body>
<header id="jbheader">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 text-center">
                    <div class="row">
                        <div class="col-lg-6 col-lg-offset-3"><span class="text-center"><img src="../img/carleton-logo.png" width="412" height="77" alt=""/></span><br>
                          <br>
                          <br>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12 text-center">
                    <h2 class="login-header">FORGOT PASSWORD</h2>
                </div>
            </div>
        </div>
    </header>

    <div id="content">
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1 col-xs-12">
                    <div class="form-field">
                        <h3 class="text-center">PASSWORD RESET</h3>
                        <p>Please enter your registered email address</p>
                        <?php
     $done = @$_GET['done'];
if ($done == 1){
    echo "<div>An email containing the password has been sent to you.</div>";
}
?></span>
 <span style="font:Verdana, Geneva, sans-serif; color:#F00;"><?php
     $done = @$_GET['done'];
if ($done == 2){
    echo "<div>No such login in the system. please try again.</div>";
}
?>
                        <form action="forgetpass.php" METHOD="POST" name="forgot" onSubmit="MM_validateForm('email','','R');return document.MM_returnValue">
                            <fieldset>
                            <div class="form-group">
                                <label for="email">Registered Email</label>
                                <input class="form-control" name="email" type="email" autofocus>
                            </div>
                            <div class="form-group">
                                <div class="row">
                                    <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                        <button type="submit" class="btn btn-primary">Submit</button>
                                    </div>
                                    <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                        <a class="pull-right" href="login.php">Sign In!</a>
                                    </div>
                                </div>
                            </div>
                            </fieldset>
                        </form>

                        <hr>

                        <h5>Beware of fraudulent attacks</h5>
                        <p>We will never contact you by telephone, e-mail nor internet asking you to disclose or to perform a confirmation by entering your Password or One Time Password (OTP)</p>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div id="jbfooter">
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <hr>
                    <div class="row">
                        <div class="col-md-8 col-sm-12 col-xs-12">
                            <a class="bjb-link-arrow text-nowrap" href="#">About Us</a>
                            <a class="bjb-link-arrow text-nowrap" href="#">Terms Of Use</a>
                            <a class="bjb-link-arrow text-nowrap" href="#">Privacy Policy</a>
                        </div>
                        <div class="col-md-4 col-sm-12 col-xs-12">
                            <p class="copyright">© 2025 Wolfville Credit Union, Canada</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

<script src="vendor/jquery/jquery.min.js"></script> 

<!-- Bootstrap Core JavaScript --> 
<script src="vendor/bootstrap/js/bootstrap.min.js"></script> 

<!-- Custom Theme JavaScript --> 
    
</body>
</html>