<?php
if((isset($_REQUEST['action']))&&($_REQUEST['action']==0)){
	session_start();
	session_destroy();
	$msg="You have successfully logout";
 }
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Admin</title>

    <!-- Bootstrap CSS -->    
    <link href="assets/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- bootstrap theme -->
    <link href="assets/dist/css/bootstrap-theme.css" rel="stylesheet">
    <!--external css-->
    <!-- font icon -->
    <link href="assets/dist/css/elegant-icons-style.css" rel="stylesheet" />
    <link href="assets/dist/css/font-awesome.css" rel="stylesheet" />
    <!-- Custom styles -->
    <link href="assets/dist/css/style.css" rel="stylesheet">
    <link href="assets/dist/css/style-responsive.css" rel="stylesheet" />

  
</head>

  <body class="login-img3-body">

    <div class="container">

      <form class="login-form" method="post" action="validate.php">        
        <div class="login-wrap">
       
            <p class="login-img">
             <a href="index.php">Admin</a>
            </p>
			
						<?php
						if(isset($msg)){
							print "<p align='center'>$msg</p>";
						}
						?>
            <div class="input-group">              
              <input name="user_id" type="text" class="form-control" placeholder="Email" autofocus>
            </div>
            <div class="input-group">               
                <input name="password" type="password" class="form-control" placeholder="Password">
            </div>
            

          
            <button class="btn btn-success btn-lg btn-block" type="submit">Login</button>
            
            	<br/><br/>
            	<p align='center'>
            	<a href="change_pw.php">Change password</a>
            	</p>
        </div>
      </form>

    </div>


  </body>
</html>
