<?php
if (!session_start()) {
    session_start();
}
?>

<!--Global Header Starts -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Monsoon Vibes - Book Market Place</title>
<!-- Google Font-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&family=Noto+Sans+Malayalam:wght@300;400&display=swap" rel="stylesheet">
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<!-- Bootstrap icons-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="../css/layout.css" rel="stylesheet" />
<link href="../css/styles.css" rel="stylesheet" />
<script type="text/javascript" src="login.js"></script> 
</head>
<body>
<header>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <nav class="navbar navbar-expand-lg navbar-light navigation"> <a class="navbar-brand" href="index.php"> <img src="../assets/image/monsoon_vibes.png" alt="Monsoon Vibes" class="img-fluid"> </a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
          <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav m-auto main-nav ">
              <li class="nav-item"><a class="nav-link" aria-current="page" href="../index.php">Home</a></li>
              <li class="nav-item"><a class="nav-link" href="../publishing_policy.php">Publishing Policy</a></li>
              <li class="nav-item"><a class="nav-link" href="../authors.php">Reviews</a></li>
            </ul>
            <div class="wrapper-animated_search">
                <div class="searchbox-amimated_search">
                  <input type="text" class="input active-width" placeholder="Book name / Author / Publisher / Subject" fdprocessedid="hyhx2">

                  <div class="searchbtn">
                    <i class="fas fa-search"></i>
                  </div>

                </div>
              </div>
            <ul class="navbar-nav me-end">
              <li class="nav-item"> <a class="nav-link login-btn active" href="login.php">Login</a> </li>
              <li class="nav-item"> <a class="nav-link btn btn-outline-primary rounded-pill signup-btn" href="signup.php"> Sign Up</a> </li>
            </ul>
          </div>
        </nav>
      </div>
    </div>
    
  </div>
</header>
<!-- Global Header Ends --> 

<!-- Inside Body Starts-->
<section class="pt-5">
  <div class="container container-tight py-4">
    <div class="card card-md shadow">
      <div class="card-body p-4">
        <h2 class="h2 text-center mb-4">Sign Up</h2>
        <a type="button" class="btn btn-google w-100 mb-4" href="../index.php"><img src="../assets/image/monsoon_vibes.png" class=""> </a>
        <div class="position-relative mb-4">
        
         
        </div>
        <p class="text-center fw-semibold">Enter Details</p>
        <form action="insert.php"  method="post" autocomplete="off" >
          
               <div class="mb-3"> <!--&nbsp;<span><font size="4" color="red">*</font></span>-->
            <input type="text" name="name" class="form-control" placeholder="Name" pattern="([A-z][\s\.]|[A-z])+" title="Only letters & dot allowed" autocomplete="off" required>
          </div>
          
          <div class="mb-3">
            <input type="text" name="email" class="form-control" placeholder="Username/Email" autocomplete="off" required>
          </div>
          <div class="mb-2">
            <input type="password" name="password1" class="form-control" placeholder="Password" autocomplete="off" required>
            <span class="form-label-description my-2"> <a href="#"></a> </span> </div>
            <div class="mb-3">
            <input type="text" name="housename" class="form-control" placeholder="Flat No/House Name" autocomplete="off" required>
          </div>
          <div class="mb-3">
            <input type="text" name="location" class="form-control" placeholder="Street/Road/Location" autocomplete="off" required>
          </div>
           <div class="mb-3">
            <input type="text" name="city" class="form-control" placeholder="City" autocomplete="off" required>
          </div>
           <div class="mb-3">
            <input type="text" name="state" class="form-control" placeholder="State" autocomplete="off" required>
          </div>
          <div class="mb-3">
            <input type="text" name="country" class="form-control" placeholder="Country" autocomplete="off" required>
          </div>
           <div class="mb-3">
            <input type="text" name="zipcode" class="form-control" placeholder="Zip code" placeholder="Zip Code"  min="10000" max="999999" title="Only numbers allowed" autocomplete="off" required>
          </div>
          <div class="mb-3">
            <input type="mobile" name="mobile" class="form-control" placeholder="Mobile" pattern="[0-9]{10}"  title="Only numbers allowed" autocomplete="off" required>
          </div>
          
          <div class="form-footer">
            <button type="submit" name="submitRegister" class="btn btn-primary py-2 w-100" >Sign Up</button>
          </div>
           <div class="errornew">
			<?php //session_start();
            if (isset($_SESSION['RegistererrorUser']) != '') {
                echo $_SESSION['RegistererrorUser'];
            } ?>
			<div id="p"></div>
			<div id="p1"></div>
			<div id="p2"></div>
			</div>
        </form>
        <p class="text-center pt-4">Already have an acount? <a class="" href="login.php">Login Here</a></p>
      </div>
    </div>
  </div>
</section>

<!-- Global Footer Section-->
<footer class="footer-new">
    <div class="container">
      <div class="row">
        <div class="footer-new-col">
          
          <img src="../assets/image/monsoon_vibes.png" class="img-fluid set-200" alt="logo">
       
          <p class="alt-color mt-2">MONSOONVIBES PUBLICA PRIVATE LIMITED, 33/6466-C, Shanthi Villa, Vappoli Thazham,
            Puliyankode Road,Marikunnu P.O, 673012 - Pin, Kozhikkode .</p>
        </div>
        <div class="footer-new-col res-new-ps-md" >
          <h4>Policies</h4>
          <ul>
            <li><a href="Privacy_Policy.php">Privacy policy</a></li>
              <li><a href="Refundpolicy.php">Refund policy</a></li>
              <li><a href="TermsAndConditions.php">Terms & conditions</a></li>
          </ul>
        </div>
        <div class="footer-new-col">
          <h4>Quick Links</h4>
          <ul>
            <li><a href="about_us.php">About us</a></li>
            <li><a href="contact_us.php">Contact us</a></li>
            <!--<li><a href="#">FAQ</a></li>-->
            <li><a href="#">Profile</a></li>
          </ul>
        </div>
        
        <div class="footer-new-col">
          <h4>follow us</h4>
          <div class="social-links">
            <a href="https://www.facebook.com/monsoonvibes/?paipv=0&eav=AfZpBwqPtSXZtMH65SXYth8zMXVn66ngzKdU58PQvx1ZMABzbpEHV9J5qSZ3WcOGdWE&_rdr"><i class="fab fa-facebook-f"></i></a>
            <a href="#"><i class="fab fa-twitter"></i></a>
            <a href="#"><i class="fab fa-instagram"></i></a>
            <a href="#"><i class="fab fa-linkedin-in"></i></a>
            <a href="#"><i class="fab fa-youtube"></i></a>

          </div>
        </div>
      </div>
    </div>
 </footer>
<footer class="py-1 footer">
    <div class="container">
      <p class="m-0 text-center " style="color: gray;">Copyright @ 2024. Workmate infotech Pvt Ltd All rights reserved</p>
    </div>
  </footer>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
<!-- Bootstrap core JS--> 
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> 
<!-- Core theme JS--> 
<script src="js/scripts.js"></script>
<script>$(".searchbtn").click(function() {
  $(this).toggleClass("bg-green");
  $(".fas").toggleClass("color-white");
  $(".input").focus().toggleClass("active-width").val('');
});
</script>
</body>
</html>
<!-- Global Footer Section Ends-->