<?php ob_start(); ?>
<!DOCTYPE html>
<html>
<?php include "layouts/db_connect.php"; ?>
<?php
session_start('ERP');
if($_SESSION['uname']==""&&$_SESSION['pwd']=="")
{
header("location:index.php");
}
	?>
<?php 
		 if(isset($_SESSION['code'])) {
	  $code = $_SESSION['code'];
	  $scode = $_SESSION['code'];
	   $mfin = $_SESSION['mfin'];
	   $otpp = $_SESSION['otp'];
		$staff = $_SESSION['name'];
		 $postt = $_SESSION['postt'];
	} ?>

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>INFOSSEL SOFT SOLUTIONS </title>
<link rel="icon" href="layouts/favicon.ico" type="image/x-icon">
    <!-- Bootstrap -->
    <link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- NProgress -->
    <link href="vendors/nprogress/nprogress.css" rel="stylesheet">
    <!-- Animate.css -->
    <link href="vendors/animate.css/animate.min.css" rel="stylesheet">
   <link rel="stylesheet" href="font.css">   	<link rel="stylesheet" href="bfont/font.css">
        <style type="text/css">
		/* when @font-face is defined(it is in font.css) you can add the font to any rule by using font-family */
		hh1 {
			font-family: 'BAUHS93';
		}
		</style>
    <!-- Custom Theme Style -->
    <link href="build/css/custom.min.css" rel="stylesheet">

  </head>

  <body class="login">
    <div>
      <a class="hiddenanchor" id="signup"></a>
      <a class="hiddenanchor" id="signin"></a>

      <div class="login_wrapper">
        <div class="animate form login_form">
          <section class="login_content">
       <form class="form-horizontal" method="post" action="" enctype="multipart/form-data" role="form">
            <a href="index.php" class="site_title"> <span><h1><font color="red">SENTHOOR MOTOR </font><font color="#0d0a95"> FINANCE</font></h1></span></a>
              <div>
                <input type="text" name="otp" class="form-control" placeholder="OTP" required="" />
              </div>
              <div>
        
			</br>	<button type="submit" class="btn btn-primary btn-lg btn-block" name="s2" href="#">Log in</button>
                <a class="reset_pass" href="#">Resend OTP</a>
              </div>

              <div class="clearfix"></div>

              <div class="separator">
              

                <div class="clearfix"></div>
                <br />

                <div>
                  <h1><hh1><font color="red" face="Bauhaus 93">INFO</font><font color="#0d0a95" face="Bauhaus 93">SSEL</font> SOFT SOLUTIONS </br>
                  INFOSSEL FIN VER 5.5 </BR></h1></hh1>
                  <p>©2018 All Rights Reserved. </p>
                </div>
              </div>
            <div>
	  <?php
								if(isset($_POST['s2']))
								{
									extract($_POST);
									session_start('ERP');	
							if($otp == $otpp) {
										header("location:index2.php");
										} else {
echo '<script language="javascript">';
echo 'alert("Invalid OTP.")';
echo '</script>';										
										}
										}
							?>
	 </div> </form>
          </section>
        </div>

        <div id="register" class="animate form registration_form">
          <section class="login_content">
            <form>
              <h1>Create Account</h1>
              <div>
                <input type="text" class="form-control" placeholder="Username" required="" />
              </div>
              <div>
                <input type="email" class="form-control" placeholder="Email" required="" />
              </div>
              <div>
                <input type="password" class="form-control" placeholder="Password" required="" />
              </div>
              <div>
                <a class="btn btn-default submit" href="index.html">Submit</a>
              </div>
 
              <div class="clearfix"></div>

              <div class="separator">
                <p class="change_link">Already a member ?
                  <a href="#signin" class="to_register"> Log in </a>
                </p>

                <div class="clearfix"></div>
                <br />

                <div>
                  <h1><i class="fa fa-paw"></i> INFOSSEL SOFT SOLUTIONS</h1>
                  <p>©2016 All Rights Reserved. INFOSSEL SOFT SOLUTIONS!</p>
                </div>
              </div>
            </form>
          </section>
        </div>
      </div>
    </div>
  </body>
</html>
