<?php 
include("../config.php");
if(isset($_POST["employee_id"])){ 
$output = '';  
    $query = "SELECT * FROM vendor_master WHERE id = '".$_POST["employee_id"]."'";  
    $result = mysqli_query($conn, $query);  
    $output .= '  
    <div class="table-responsive">  
        <table class="table table-bordered">';  
        while($row = mysqli_fetch_array($result)){  
            $output .= '  
            <tr>  
                 <td width="30%"><label>VENDOR CODE</label></td>  
                 <td width="70%">'.$row["code"].'</td>  
            </tr>  
            <tr>  
                 <td width="30%"><label>VENDOR NAME</label></td>  
                 <td width="70%">'.$row["name"].'</td>  
            </tr>  
            <tr>  
                 <td width="30%"><label>ADDRESS</label></td>  
                 <td width="70%">'.$row["address"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>COUNTRY</label></td>  
                 <td width="70%">'.$row["country"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>STATE</label></td>  
                 <td width="70%">'.$row["state"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>DISTRICT</label></td>  
                 <td width="70%">'.$row["district"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>CITY</label></td>  
                 <td width="70%">'.$row["city"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>PINCODE</label></td>  
                 <td width="70%">'.$row["pincode"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>PHONE</label></td>  
                 <td width="70%">'.$row["contact"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>MOBILE</label></td>  
                 <td width="70%">'.$row["mobile"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>E-MAIL</label></td>  
                 <td width="70%">'.$row["email"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>PANCARD</label></td>  
                 <td width="70%">'.$row["pan"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>GSTIN</label></td>  
                 <td width="70%">'.$row["gstin"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>CONTACT PERSON</label></td>  
                 <td width="70%">'.$row["contact_person"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>MOBILE</label></td>  
                 <td width="70%">'.$row["con_per_mobile"].'</td>  
            </tr>
            <tr>  
                 <td width="30%"><label>EMAIL</label></td>  
                 <td width="70%">'.$row["con_per_email"].'</td>  
            </tr>';  
      }  
      $output .= "</table></div>";  
      echo $output;
}
?>