<?php include 'header.php';?>
<script>
      $(document).on('change',".gstinnumber", function(){    
        var inputvalues = $(this).val();
        var gstinformat = new RegExp('^[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$');
        
        if (gstinformat.test(inputvalues)) {
         return true;
        } else {
            alert('Please Enter Valid GSTIN Number');
            $(".gstinnumber").val('');
            $(".gstinnumber").focus();
        }
        
    });
	

    </script>
<? 
$queryls = "select * from mst_customer where customer_id = '".$_REQUEST['customer_id']."'";
$resultls = mysqli_query($conn,$queryls);	
while($row=mysqli_fetch_array($resultls))
{
$company_name = $row['company_name']; 
}
?>
  <div class="content-page">
    <div class="content">
      <div class="container">
        <div class="row">
          <div class="col-sm-12">
            <div class="page-header-title">
             <button type="button" class="btn btn-dark waves-effect waves-light" onclick="location.href='view_details.php?customer_id=<?php echo $_REQUEST['customer_id'];?>'">BACK </button>
              <div class="clearfix"></div>
            </div>
          </div>
        </div>
        
        
        
		
		
		
		
		
		
		<div class="row">
          <div class="col-md-12"> 
            <div class="panel panel-primary">
              <div class="panel-heading">
                <h3 class="panel-title">Kind Attention for <?php echo $company_name?></h3>
              </div>
              <div class="panel-body">
                <div class="row">
                  <div class="col-sm-12 col-xs-12">
                      <div class="m-t-20">
					 <table class="table table-striped table-bordered dt-responsive nowrap">
 <form name="chkForm" id="chkForm" action="insert_vcontact.php"  method="post" >
<input type="hidden"  name="vendor_id" value="<?php echo $_REQUEST['vendor_id']?>"/>
  <tr style="color:#000000">
    <td><strong>Contact Person Name</strong></td>
    <td><input type="text" class="form-control"  name="contact_name"/></td>
  </tr>
  <tr style="color:#000000">
    <td><strong>Mobile no.</strong></td>
    <td><input type="text" class="form-control"  name="mobile_no"  pattern="^\d{10}$" title="Please Enter 10 digit " /></td>
  </tr> 
  <tr style="color:#000000">
    <td><strong>Email</strong></td>
    <td><input type="text" class="form-control"  name="email_id"/></td>
  </tr> 
   <tr style="color:#000000">
    <td colspan="2"><div align="center"> <button type="submit" class="btn btn-primary waves-effect waves-light"> ADD </button></td>
    </tr></form> 
</table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
		
		
		
		
		
		
		
        
      </div>
    </div>
	<?php include 'footer.php';?>