<?php

session_start();


if (!isset($_SESSION['admin_userName'])) {
    header('Location: login.php');
    }
?>
<?php include("header.php"); ?>
<style>
	 .c {
        background-color: rgba(0,0,0,0.5);
    }
     #nav  .c1
    {
        color: #f9a825;
        font-weight: 600;
    }
         nav a:hover {
    background-color: #721418;
    color: #f9a825;
        font-weight: 600;
}
</style>

<body >

 
 <p class="solid1" style="outline-style: solid; margin-top: 35px;  color: #00AC8B" />
    <div class="card text-center" style=" border-radius: 5px; background-color: #F0EEEE; margin-top: 45px; margin-right: 200px; margin-left: 200px">          	

		<!-- Default form register -->
			<form class="text-center border-light p-5" action="../Admin_modules/add_customers.php" method="post">

			    <p class="h4 mb-4">Registration for New Customer</p>
			   <p class="solid1" style="outline-style: solid; margin-top: 5px; margin-bottom: 10px; color: #00AC8B" />

			    <div class="form-row mb-4" style="margin-top: 45px">
			        <div class="col">
			            <!-- First name -->
			            <input type="text" id="defaultRegisterFormFirstName" name="first" class="form-control" placeholder="First name" required>
			        </div>
			        <div class="col">
			            <!-- Last name -->
			            <input type="text" id="defaultRegisterFormLastName" name="last" class="form-control" placeholder="Last name" required>
			        </div>
			    </div>

			    <!-- E-mail -->
			    <input type="email" id="defaultRegisterFormEmail" name="email" class="form-control mb-4" placeholder="E-mail" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$">
			 
			    <!-- Address -->
			    <input type="text" id="defaultRegisterFormAddress" name="address" class="form-control mb-4" placeholder="Address" maxlength="10" required>

			    <!-- Pan No -->
			    <input type="text" id="pan" name="pan" class="form-control mb-4" placeholder="Pan No" pattern="[A-Za-z0-9]{10}" maxlength="10"  onchange="upper()">

			     <!-- Gst No -->
			    <input type="text" id="gst" name="gst" class="form-control mb-4" placeholder="Gst No" pattern="[A-Za-z0-9]{15}" maxlength="15"  onchange="upper()">

			 	<!-- Mobile No -->
			    <input type="text" id="mob" name="mobile" class="form-control mb-4" placeholder="Mobile No"  maxlength="15" required>

			    <script type="text/javascript">
			    	function upper(){
			    		$('#pan').val (function () {
						    return this.value.toUpperCase();
						})
						$('#gst').val (function () {
						    return this.value.toUpperCase();
						})
			    	}
			    </script>

			   
			    <!-- Save button -->
			    <button class="btn  my-4 btn-block" type="submit" name="submit" style="background-color: #00AC8B; font-size: 15px">Add Customer</button>
			</form>
			<!-- Default form register -->

	</div>

</body>
</html>