<?php

error_reporting(0);

ob_start();

session_start();

include_once("../dbconnect.php");

require_once("login.php");

$errorMessage = '&nbsp;';

if (isset($_POST['mec_username'])) 



{



	$result = doLogin();



	



	if ($result != '') {



		$errorMessage = $result;



	}



}

?>

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

                <h1 style="text-align: center; font-size:24px; margin-bottom:20px;">Wedding Priest</h1>

                 <h2 style="text-align: center; color:#F00"><?php echo $errorMessage; ?></h2>

                



                 <form class="form-signin" method="post" action="" name="formname" enctype="multipart/form-data">

        <h2 class="form-signin-heading" style="text-align: center;">Please Sign-In</h2>

        <label for="inputEmail" class="sr-only">Username</label>

        <input type="text" name="mec_username" id="username" class="form-control" value="<?php echo $_POST['mec_username']; ?>" placeholder="User Name" required autofocus>

        <label for="inputPassword" class="sr-only">Password</label>

        <input type="password" name="mec_password" id="inputPassword"  value="<?php echo $_POST['mec_password']; ?>" class="form-control" placeholder="Password" required>

        <div class="checkbox">

         <a href="forgorpsw.php" style="color: #F00;"> Forgot Password..</a>

        </div>

       <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>

      <!--<input type="submit" value="submit">-->

      </form>



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

