<?php include('connection/conn.php');
$id=$_GET['id'];
$get="select * from `transfer`,`contract` where `contract_id`=`transfer_contract` and `transfer_id`=$id";
$get_r=$conn->query($get);
$get_row=mysqli_fetch_array($get_r);
?>
<html>
	<head>
		<style>
		@media print {body {-webkit-print-color-adjust: exact;}}
		</style>
	</head>
	<body>
		<div style="width:750px;font-family:'nrt';"  id="right">
			<table dir=rtl id="mydiv" height="" width="100%" border=0>
				<tr>
					<td width=325px style="font-size:11pt">
						<center>
						<font style="font-size:14pt">کۆمپانیای سەروەر عبدالرحمن</font><br>
						بۆ کەرەستەی بیناسازی<br>
						شیش-B.R.C-چیمەنتۆ
						</center>
					</td>
					
					<td style="text-align:left"  width=100px>
					<img src="icon/logo.png" width="170">
					<center><font style="font-size:10pt">پسووڵەی ناردن</font></center>
					</td>
					<td width=325px style="font-size:11pt">
						<center>
						<font style="font-size:14pt">Sarwar Abdulrahman Company</font><br>
						Iron Line - B.R.C - Cement
						</center>
					</td>
				</tr>
				</table>
				
				
				<table width=100%>
				<tr>
					<th colspan=3>
						<hr>
						ژمارە<?php echo "(".$id.")  ".$get_row['transfer_date'];?>
					</th>
				</tr>
			</table>
			<table dir=rtl id="mydiv" height="" width="750px" border=0 style="font-size:16pt">
				<tr style="text-align:right" bgcolor="#f0f0f0">
					<th width=350px>گرێبەستی(<?php echo $get_row['contract_place'];?>)</th>
					<th  width=200px><?php echo $get_row['contract_address'];?></th>
					<th  width=200px><?php echo $get_row['contract_mobile'];?></th>
				</tr>
			</table>
			<table dir=rtl id="mydiv" height="" width="750px" border=0 style="font-size:16pt">
				<tr style="text-align:right">
					<td width=150px>ناوی شۆفێر</td>
					<td  width=250px><?php echo $get_row['transfer_driver'];?></td>
					<td width=150px>ژمارەی شۆفێر</td>
					<td  width=200px><?php echo $get_row['driver_mobile'];?></td>
				</tr>
			</table>
			<br>	
			<table id='mydiv' width='350px' dir=rtl align="right">					
				<tr bgcolor="lightblue">
					<td>جۆر</td>
					<td>وزن</td>
				</tr>
				<?php 
				$gett=$conn->query("select * from `transfer_item`,`type` where `trans_id`=$id and `trans_item_type`=`type_id`");
				while($get_row=mysqli_fetch_array($gett)){ ?>
				<tr>
					<td><?php echo $get_row['type_name'];?></td>
					<td><?php echo $get_row['trans_item_amount'];?></td>
				</tr>
				<?php }?>
			</table>
			<br><br><br><br><br><br><br>
			<table width=100%>
				<tr>
					<th>واژوی ژمێریار</th>
				</tr>
			</table>
			<br><br>
			<table width=100%>
				<tr style="font-size:10pt" bgcolor="#f0f0f0">
					<th width=60%>07708209000 - 07734194949 - 07501075252</th>
					<th width=40%>info@sarwarsteel.com</th>
				</tr>
			</table>
		</div>
	</body>
</html>


