 <?php 
if(isset($_POST['vno'])){
extract($_POST);
require 'connection.php';

 $qry = "SELECT * FROM broilertransfer where vno = $vno";
   $run = mysqli_query($connect, $qry) or die(mysqli_error($connect));
   $row = mysqli_fetch_array($run);
   
	$vno=$row['vno'];
	$supid=$row['supid'];
	$custid=$row['accid'];
	$suprate=$row['vrate'];
	$custrate=$row['crate'];
	$dated=$row['dated'];
	$refno=$row['refno'];
	$qty=$row['qty'];


 $qry = "SELECT * FROM accreg where accid = $supid";
   $run = mysqli_query($connect, $qry) or die(mysqli_error($connect));
   $row = mysqli_fetch_array($run);
   $supname=$row['accname'];

 $qry = "SELECT * FROM accreg where accid = $custid";
   $run = mysqli_query($connect, $qry) or die(mysqli_error($connect));
   $row = mysqli_fetch_array($run);
   $custname=$row['accname'];
}
	?>


<input id="spidss" type="text" value="<?php echo $supid; ?>" name="">
<input id="custidss" type="text" value="<?php echo $custid; ?>" name="">


	<div class="col-lg-12 col-md-12">
		<label  style="font-size: 16px; color: blue;">Supplier Name: </label>
		<label hidden id="supidval" style="font-size: 16px; color: blue;"><?php echo $supid ?> </label>
		<label style="font-size: 20px; color: blue;"><?php echo $supname ?></label>
	</div>
		<div class="col-lg-12 col-md-12">
		<label  style="font-size: 16px; color: blue;">Transaction ID: </label>
		<label id="vnoval" style="font-size: 20px; color: blue;"><?php echo $vno ?></label>
	</div>
<br>

	<div style="margin-bottom: 20px;" class="col-lg-12 col-md-12 col-sm-12">
		

		<label  style=" font-size: 12px; color: blue; ">Date</label>
		<input value="<?php echo $dated; ?>"  type="date" id="datedval" style="color: blue; " value="<?php echo $dated ?>">
	</div >


		<label  style=" font-size: 12px; color: blue; ">Ref No.</label>
		<input type="text" id="refnoval" style="font-size: 12px; color: blue;  max-width: 70px;" value="<?php echo $refno ?>">

		<label  style=" font-size: 12px; color: blue; ">Qty</label>
		<input type="text" id="qtyval" style="font-size: 12px; color: blue; max-width: 70px;" value="<?php echo $qty ?>">

		<label  style=" font-size: 12px; color: blue; ">S.Rate</label>
		<input type="text" id="srateval" style="font-size: 12px; color: blue; max-width: 60px;" value="<?php echo $suprate ?>">

		<label  style=" font-size: 12px; color: blue; ">C.Rate</label>
		<input  type="text" id="crateval" style="font-size: 12px; color: blue; max-width: 60px;" value="<?php echo $custrate ?>">


	</div>



	<br>
	<br>
	<br>
	<br>
<div class="col-lg-12 col-md-12">
		<label  style="font-size: 16px; color: blue;">Customer Name: </label>
		<label hidden id="custidval" style="font-size: 16px; color: blue;"><?php echo $custid; ?> </label>
		<label style="font-size: 20px; color: blue;"><?php echo $custname ?></label>
	</div>

