<?php
error_reporting(0);
ob_start();
session_start();
include_once("../dbconnect.php");
?>
<!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">
    <meta name="description" content="">
    <meta name="author" content="">
     <style type="text/css">

      /* Sticky footer styles
      -------------------------------------------------- */
    </style>
   <?php include_once("title.php"); ?>

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

    <!-- Custom CSS -->
    <link href="css/logo-nav.css" rel="stylesheet">

    <!-- 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]-->

</head>

<body>
     <div id="wrap">
    <!-- Navigation -->
       <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">
                <h2>Wedding Priest</h2>
                </a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>

    <!-- Page Content -->
    <div class="container">
        <div class="row">
            <div class="col-lg-12"><br><br><br>
                <h1 style="text-align: center;">Please Enter Your Email Id</h1>
                 <?php

	if($_GET['n'])
				{?>
				<h2 style="text-align: center; color:#F00"> You entered the wrong email address </h2>
				<?php }	 ?>
                  
                <?php if(!$_GET['s']){
				?>
                

                 <form class="form-signin" method="post" action="forgotpasssword.php" name="formname" enctype="multipart/form-data" onsubmit="return respass(this);">
        <h2 class="form-signin-heading" style="text-align: center;">Email Id</h2>
        <label for="inputEmail" class="sr-only">Username</label>
        <input type="email" name="emailaddre" id="username" class="form-control" value="<?php echo $_POST['emailaddre']; ?>" placeholder="User Name" required autofocus>
      <br><br>
       <button class="btn btn-lg btn-primary btn-block"  name="Login"  type="submit">Sign in</button>
      <!--<input type="submit" value="submit">-->
      </form>
<? }
				else
				{?>
                <h2 style="text-align: center"><a href="index.php" style="color: #009; font-size:16px; font-weight:bold; text-align:center">YOUR PASSWORD HAS BEEN SENT TO YOUR MAIL</a></h2>
                <h2 style="text-align: center"><a href="index.php" style="color: #009; font-size:16px; font-weight:bold; text-align:center; text-decoration:underline">Clic Here To Login</a></h2>
                <?php } ?>
      <div id="push"></div>  
    </div>

        </div>

  

            </div>
            
         <div id="push"></div>
    </div>

    <?php include_once("footer.php"); ?>
   

    
    <!-- /.container -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>

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


</body>

</html>
