<?php
session_start();
//header("location:javascript://history.go(-1)");
if(isset($_SESSION['login_id']))
{
    header('location: dashboard.php');
}




?>
<!DOCTYPE html>
<html>
<head>
  <title>Login - Fairy Herbal Portal</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
   <link rel="stylesheet" type="text/css" href="css/style2.css">
   
   <!-----		sweet alert css and js link	---->
	<link rel="stylesheet" href="dist/sweetalert.css">
	<script src="dist/sweetalert.min.js"> </script>
	<style>
	    .logo-text
	    {
	        line-height: 50px;
	        font-size: 20px;
	        font-weight: 600; 
	        color: #696969 ;
	    }
	</style>
</head>
<body>
    <div class="container">
    <div class="login-signup">
      <div class="row">
          <div class="col-sm-6 col-sm-offset-3 nav-tab-holder">
              <div class="col-sm-6 col-sm-offset-3 text-center" style="border: 1px solid white; padding-right: 40px">
                    <!--<img src="images/logo/astrosys.png" style="width: 80px; height: 70px;">-->
                    <br>
                    <span class="logo-text"> Login Panel </span>
              </div>
          </div>
      </div>
      <div class="row">
        <div class="col-sm-6 col-sm-offset-3 nav-tab-holder">
        <ul class="nav nav-tabs row" role="tablist">
          <li role="presentation" class="active col-sm-6"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">Login</a></li>
          <li role="presentation" class="col-sm-6"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">Sign Up</a></li>
        </ul>
      </div>
      </div>

      <div class="tab-content">
        <div role="tabpanel" class="tab-pane active" id="home">
          <div class="row">

            <div class="col-sm-6 col-sm-offset-3">
              <article role="login">
                <h3 class="text-center"><i class="fa fa-lock"></i>USER</h3>
                <form class="signup"  method="post">
                  
                  <div class="form-group">
                    <input type="text" class="form-control" name="email" placeholder="User id or Email Address" id="login_email" maxlength="30">
					<div id="login_id_error" style="color:red"></div>
                  </div>
                  
                  <div class="form-group">
                    <input type="password" class="form-control" placeholder="Password" name="password" id="login_pwd" maxlength="10">
					<div id="login_pwd_error" style="color:red"></div>
                  </div>
                  <div class="form-group">
                     <a href="forgot_password.php"> Forgot password </a>
                  </div>
                  <div id="err" style="color:red"></div>
                  <div class="form-group">
                    <input type="submit" class="btn btn-success btn-block"  value="Login" name="login_check" 
                    id="login_check">
                  </div>
                </form>

              </article>
            </div>

            <div class="col-sm-6">
              
            </div>

          </div>
          <!-- end of row -->
        </div>
        <!-- end of home -->

      <div role="tabpanel" class="tab-pane" id="profile">
        <div class="row">

          <div class="col-sm-6 col-sm-offset-3">
            <article role="login">
              <h3 class="text-center"><i class="fa fa-lock"></i> Create User Account</h3>
              <form class="signup"  method="post">
                <div class="form-group">
                  <input type="text" class="form-control" placeholder="User refferance id" name="root_id" id="root_id" maxlength="10">
				  <div id="root_id_error1" style="color:red"></div>
				  <div id="msg_root_id" style="color:red"></div>
				  
                </div>
				
				 <div class="form-group">
                  <input type="text" class="form-control" placeholder=""  name="root_name" id="root_name" readonly>
                </div>
                
                <div class="form-group">
                  <input type="radio" name="choice" class="check_box" value="left" checked> Left &nbsp
				  <input type="radio" name="choice" class="check_box" value="right"> Right
				  <div id="left_error1" style="color:red"></div>
                </div>
				
                <div class="form-group">
                  <input type="text" class="form-control" placeholder="Name" name="username" id="username" maxlength="30">
				  <div id="username_error1" style="color:red"></div>
                </div>
                
                <div class="form-group">
				<div class="row">
				<div class="col-sm-6">
					 <select class="form-control" id="user_gender">
						<option value="0"> select your gender  </option>
						<option value="male"> Male </option>
						<option value="female"> Female </option>
					 </select>
				  <div id="gender_error1" style="color:red"></div>
				</div>
				<div class="col-sm-6">
					 <input type="date" class="form-control" name="dob" id="dob">
				  <div id="dob_error1" style="color:red"></div>
				</div>
				</div>
                </div>
				
				<div class="form-group">
                  <input type="text" class="form-control" placeholder="Address" name="address" id="address">
				  <div id="address_error1" style="color:red"></div>
                </div>
				
                <div class="form-group">
                  <input type="text" class="form-control" placeholder="Email Address" name="emailid" id="emailid" maxlength="30">
				  <div id="email_error1" style="color:red"></div>
				  <div id="email_take" style="color:red"></div>
                </div>
				
				 <div class="form-group">
                  <input type="text" class="form-control" placeholder="Mobile" name="mobile" id="mobile" maxlength="10">
				  <div id="mobile_error1" style="color:red"></div>
				   <div id="mobile_take" style="color:red; display: none"></div>
                </div>
				
                <div class="form-group">
                  <input type="password" class="form-control" placeholder="Password" name="password1" 
                  id="password1_signup" maxlength="10">
				   <div id="pwd_error1" style="color:red"></div>
                </div>
				
                <div class="form-group">
                  <input type="password" class="form-control" placeholder="Confirm Password" name="password2" 
                  id="password2_signup" maxlength="10">
				   <div id="pwd_error2" style="color:red"></div>
                </div>
				
				
                <div class="form-group">
                  <div class="checkbox">
                    <label>
                      <input type="checkbox" id="checkbox"> Please accept the terms and conditions to proceed with your request.
                    </label>
                  </div>
				  <div id="check_error1" style="color:red"></div>
                </div>
                <div class="form-group">
                  <input type="button" class="btn btn-success btn-block"  value="Register" id="signup_button">
                </div>
              </form>
              <footer role="signup" class="text-center">
                <ul>
                  <li>
                    <a href="#">Terms of Use</a>
                  </li>
                  <li>
                    <a href="#">Privacy Statement</a>
                  </li>
                </ul>
              </footer>

            </article>
          </div>
          <div class="col-sm-6">
          </div>
        </div>
      </div>
  </div>
  </div>  
 </div>  <!---  end conttainer -->
   <script src="https://code.jquery.com/jquery-2.2.4.min.js"   integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="   crossorigin="anonymous"></script>
    <script type="text/javascript" src="js/jquery.redirect.js"></script>
  <script src="js/custom.js?v=<?php echo rand()?>"></script>
</body>
</html>