  <?php include "layouts/menucodfa.php";
   $mfin = $_REQUEST['mfin'];
if($mfin=='SENTHOOR MOTOR FINANCE') {
$sscode = "Somasundaram"; }
else {
  $sscode = "SEVUGAN";  
}
  ?>
		
		<script type="text/javascript">
	  $(function() {
   $("#datepicker").datepicker({ dateFormat: 'dd-mm-yy' });
  });
</script>
<script type="text/javascript">
function zp(n){
return n<10?("0"+n):n;
}
function insertDate(t,format){
var now=new Date();
var DD=zp(now.getDate());
var MM=zp(now.getMonth()+1);
var YYYY=now.getFullYear();
format=format.replace(/DD/,DD);
format=format.replace(/MM/,MM);
format=format.replace(/YYYY/,YYYY);
t.value=format;
}
</script>
    <script>
  $(function() {
   $("#datepicker1").datepicker({ dateFormat: 'dd-mm-yy' });
  });
  </script>
    <script>
  $(function() {
   $("#datepicker2").datepicker({ dateFormat: 'dd-mm-yy' });
  });
  </script>
      <script>
  $(function() {
   $("#datepicker8").datepicker({ dateFormat: 'dd-mm-yy' });
  });
  </script>
    <script>
  $(function() {
   $("#datepicker9").datepicker({ dateFormat: 'dd-mm-yy' });
  });
  </script>
     <style>
	#partitioned {
  padding-left: 15px;
  letter-spacing: 10px;
  border: 1;
  background-image: linear-gradient(to left, black 70%, rgba(255, 255, 255, 0) 0%);
  background-position: bottom;
  background-size: 20px 1px;
  background-repeat: repeat-x;
  background-position-x: 20px;
  width: 100%;
}

blink {
    -webkit-animation: 6s linear infinite condemned_blink_effect; // for android
    animation: 6s linear infinite condemned_blink_effect;
}
@-webkit-keyframes condemned_blink_effect { // for android
    0% {
        visibility: hidden;
    }
    50% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
}
@keyframes condemned_blink_effect {
    0% {
        visibility: hidden;
    }
    50% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
}
</style>
   <?php include "layouts/menu1.php"; ?>
            <!-- Right side column. Contains the navbar and content of the page -->
           <div class="right_col" role="main">
                <!-- Content Header (Page header) -->
            
				 <div class="panel-body">
                            <div class="row">
 <div class="col-lg-12">  
								 </br>
				    
                                   <?php	$qry=mysqli_query($conn, "select * from customerdetails order by hpl DESC");
						$n=mysqli_num_rows($qry);
						if($n==0)
						{
							$rty = 1;
						}
						else
					    {
						$row=mysqli_fetch_array($qry);
						
						$sss = $row['hpl'];
						
						$rtyy = $sss + 1;
						$rty = $rtyy;
						} ?>
									  <div class="alert alert-info">New Registration For SMART CUSTOMERS</div>
                           <div class="col-lg-6">
   <form role="form" name="form1" method="post" action="1bentry.php" enctype="multipart/form-data">
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Name of the SMART CUSTOMERS</label>
      <input type="text" class="form-control" id="inputPassword3" name="name" >
	   <input type="hidden" class="form-control" id="inputPassword3" value="<?php echo $rty; ?>" name="hpl" >
	  
 </div>
   <div class="form-group has-success has-feedback">
    <label for="inputPassword3" >Mobile Number</label>
      <input type="text" class="form-control" value="" id="inputPassword3" name="pno" >
 </div>
 
  <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >Upload Image</label>
    <input type="file" id="exampleInputFile" name="uimg" >
    <p class="help-block">Upload Passport size Photo here.</p>
  </div>  
  <div class="form-group has-success has-feedback">
    <label for="inputPassword3">Area</label>
      <input type="text" class="form-control" id="area" name="area"  value="">
     <span class="glyphicon glyphicon-info-sign form-control-feedback"></span>
  </div>
   
 
   </div> <div class="col-lg-6">
  
  
 <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >Aadhar Card No</label>
   
            <input type="text"  class="form-control"  id="partitioned" type="text" name="g1" maxlength="12" placeholder="" >

  </div>
   <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >PAN Card No</label>
      <input type="text" class="form-control" id="inputEmail3" name="g2" value="">
  </div>
   <div class="form-group has-success has-feedback">
    <label for="inputEmail3" >Vehicle No</label>
      <input type="text" class="form-control" id="inputEmail3" name="vno" value="">
  </div>
    <div class="form-group has-success has-feedback">
    <label for="inputPassword3">Reason/Remark</label>
      <textarea cols="2" type="text" class="form-control" id="remarks" name="remarks"  value=""></textarea>
     <span class="glyphicon glyphicon-info-sign form-control-feedback"></span>
  </div>
	   
	</div>
   
 <div class="form-group">
  
      <button type="submit" class="btn btn-primary btn-lg btn-block" name="s5">Register</button>

  </div>   <div>
	 
<?php
							if(isset($_POST['s5']))
							{
								extract($_POST);
								$uimg=$_FILES['uimg']['name'];
								
								$insert=mysqli_query($conn, "INSERT INTO `customerdetails`(`hpl`, `remarks`, `mfin`, `scode`, `name`, `vno`, `g1`, `g2`, `uimg`, `pno`, `area`) 
								VALUES ('$hpl', '$remarks', '$mfin', '$sscode', '$name', '$vno','$g1', '$g2', '$uimg', '$pno','$area')");
								if($insert)
								{
								$move=move_uploaded_file($_FILES['uimg']['tmp_name'],"user/".$uimg);	
								echo "Sucessful";	
								}
								else
								{
									echo "Failure";
								}
							}
?>	 
	  </div>
</form>
</div></div></div>
  <center><font color="red" size="3"><b>
 * Note : Kindly Enter All Fields (Textbox)  </font> <font color="green" size="4"> Without Space .
  </b></font></center>
  
                      
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>

              
        <!-- /page content -->

        <!-- footer content --> 
        <footer>
          <div class="pull-right">
             <a href="https://infossel.com">Infossel Soft Solution</a>
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="vendors/jszip/dist/jszip.min.js"></script>
    <script src="vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="vendors/pdfmake/build/vfs_fonts.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="build/js/custom.min.js"></script>

  </body>
</html>