<?php $PageSecurity = 5;
include('includes/session.inc');


  $sql = "SELECT vendor_code,vendor_name,adrress1,adrress2,mobile FROM suppliers where id='".$_GET['site']."' ";
$result=DB_query($sql,$db);
$myrow=DB_fetch_array($result);
$data1='';

$data1.="<input type='text' name='VenderCode' value='".$myrow['vendor_code']."' style='width:100%;'; readonly>
<input name='VenderName' type='hidden' value='".$myrow['vendor_name']."' />";
$data2="";
$data2.="<input type='text' name='address1' value='".$myrow['adrress1']."' style='width:100%;' readonly>";
$data3="";
$data3.="<input type='text' name='address2' value='".$myrow['adrress2']."' style='width:100%;' readonly>";
$data4="";

$SQLContactperson=DB_query("SELECT * FROM `contact_information_master` where master_code='".$_GET['site']."' and master_prefix='S'",$db);


$data4.="<option value=''>Select</option>";
while($Contact=DB_fetch_array($SQLContactperson))
{
	$data4.="<option value='".$Contact['id']."'>".$Contact['person']."</option>";
}


//$data4.="<input type='text' name='mobile' value='".$myrow['mobile']."' style='width:100%;' readonly>";


echo $data=$data1."__".$data2."__".$data3."__".$data4;