PK

ADDRLIN : /home/anibklip/aaravpest.in/2023-24/print/
FLL :
Current File : //home/anibklip/aaravpest.in/2023-24/print/afas.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<body onLoad="window.print(); window.close();">
		<?
		$sqlu1="SELECT * FROM certificates WHERE certificateno='$_GET[id]'";
		$resultu1=mysql_query($sqlu1) or die('error in fetch');
		$rowu1=mysql_fetch_array($resultu1);
		?>
		<style type="text/css">
			.cross{
			font-size:22px; border:1px solid #000000; margin-left:50px; padding:0 4px;
			}
			.printo {
			font-style: normal;
			color: #000000;
			letter-spacing: 0;
			display: block;
			padding-top: 1px;
			font-size: 80%;
			}
			.crtName{
			float: left;
			margin: 5px 5px 0 0;	
			}
			.crtNoBox{
			float: left;
			padding:3px;
			border:solid #000 1px;
			}
			.crtNameRight{
			float: right;
			margin: 5px 5px 0 0;	
			}
			.crtNoBoxRight{
			float: right;
			padding:3px;
			border:solid #000 1px;
			}
			.cancel_div{z-index:1; position:absolute; opacity:0.2; padding:140px 8px;}
			.hr{
			border: solid; border-width: thin;
			border-color:#000000;
			}
			h4{
			margin-bottom: 0px;
			}
			input[type=checkbox]{
			-moz-appearance: none;
			height: 18px;
			width: 18px;
			margin-left:50px;
			}
		</style>
		<table align="center" width="100%" border="0" class="printo"   cellpadding="0" cellspacing="0">
			<p>&nbsp;</p>
			<?php
			if($rowu1[cancel]){
				?>
				<div class="cancel_div"><img src="../cancelled.png" width="670" alt="Cancel" /></div>
				<?
			}
			?>
			<tr>
				<td colspan="2" align="center">
					<strong>
						<h4>FUMIGATION CERTIFICATE</h4>
					</strong>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" style="line-height: 15px; font-size: 16px;">AFAS - METHYL BROMIDE FUMIGATION CERTIFICATE </td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<table width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td align="left" width="50%"><span class="crtName">Certificate number:</span><span class="crtNoBox"><? 
								//echo $_SESSION['city'];
								echo "VPC";
								
								$sqlu="SELECT * FROM signature where user_id='$_SESSION[user_id]' ";
								$resultu=mysql_query($sqlu) or die('error in fetch');
								$sign=mysql_fetch_array($resultu);
								?>
								/<?php echo "$_GET[id]";?>/<? echo $sign['year'];?>
								</span> 
							</td>
							<td align="right" width="30%" > <strong>Issue Date</strong><?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?></td>
							<td align="right" width="50%"><span class="crtNoBoxRight">IN 0074MB</span><span class="crtNameRight">AEI No.:</span></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" style="line-height: 15px; font-size: 13px;">
					<strong>TARGET OF FUMIGATION  DETAILS</strong>
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">Target of fumigation:&nbsp;&nbsp;
					<?php 
					if($rowu1[desgood]=="Commodity"){
						echo '<span class="cross">&#10004;</span>  <strong>Commodity</strong> &nbsp;
						 <span class="cross">&#10008;</span> <strong>Packing</strong>&nbsp;
						 <span class="cross">&#10008;</span> <strong>Both Commodity and Packing</strong>&nbsp;';
					
					}else if($rowu1[desgood]=="Packing"){
						echo '<span class="cross">&#10008;</span> <strong>Commodity</strong> &nbsp;
						 <span class="cross">&#10004;</span> <strong>Packing</strong>&nbsp;
						<span class="cross">&#10008;</span> <strong>Both Commodity and Packing</strong>&nbsp;';
					}else if($rowu1[desgood]=="Both Commodity and Packing"){			
						echo '<span class="cross">&#10008;</span> <strong>Commodity</strong> &nbsp;
						<span class="cross">&#10008;</span> <strong>Packing</strong>&nbsp;
						<span class="cross">&#10004;</span> <strong> Both Commodity and Packing</strong>&nbsp;';
					}
					?>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">Commodity:&nbsp;&nbsp;<?php echo"$rowu1[quantitydeclared]";?></td>
			</tr>
			<tr>
				<td colspan="2" align="left">Consignment link&nbsp;&nbsp; <?php  echo"$rowu1[distmarks]";?></td>
			</tr>
			<tr>
				<td colspan="2" align="left">Country of origin:&nbsp;&nbsp;<?php echo"$rowu1[portcountry]";?> &nbsp;&nbsp;&nbsp;Port of loading:&nbsp;&nbsp;<?php echo"$rowu1[declentry]";?>&nbsp;&nbsp;&nbsp;Country of Destination:&nbsp;&nbsp;<?php echo"$rowu1[countrydes]";?>	</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<hr />
			<tr>
			<tr>
				<td width="50%" colspan="1" valign="top"><strong>EXPORTER NAME:</strong></td>
				<td valign="top" style="border-left: 1px solid #000000; padding-left: 10px;"><strong>IMPORTER NAME:</strong></td>
				<td width="1%" colspan="2">&nbsp;</td>
			</tr>
			<tr>
				<td width="49%" valign="top">
					<?php
					/*Exporter's details*/
					$exp1 = explode(',',$rowu1['nameaddress']);
					$ln1 = count($exp1);
					
					for($i=1; $i<$ln1; $i++)
					{
						echo $exp1[$i]."<br />";
					}
					?>
				</td>
				<td valign="top" style="border-left: 1px solid #000000; padding-left: 10px;"><?php		/*Importer's Details*/
					$exp = explode(',',$rowu1['declarednameaddress']);
					$ln = count($exp);
					
					for($i=1; $i<$ln; $i++)
					{
						echo $exp[$i]."<br />";
					}
					?>
				</td>
				<td colspan="2">&nbsp;</td>
			</tr>
			<!--tr>
				<td colspan="4"><hr /></td>
				</tr-->
			<tr>
				<td colspan="2" align="center">
					<hr />
					<h4>TREATMENT DETAILS </h4>
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<table border="0" width="100%" cellpadding="5" cellspacing="0">
						<tr>
							<td align="left" width="50%">Date fumigation completed: &nbsp;&nbsp;<?php echo date("d-m-Y", strtotime($rowu1[datefumigantion]));?></td>
							<td align="left" width="50%">Place of fumigation:<?php echo"$rowu1[placefumigantion]";?></td>
						</tr>
						<tr>
							<td align="left" width="50%">AQIS prescribed dose rate (g/m3):<?php echo"$rowu1[namefumigant]";?></td>
							<td align="left" width="50%">Exposure period (hrs):<?php echo"$rowu1[durationfumigantion]";?></td>
						</tr>
						<tr>
							<td align="left" width="50%">Forecast minimum temp (C):<?php echo"$rowu1[airtemp]";?></td>
							<td align="left" width="50%">Applied dose rate(g/m): <?php echo"$rowu1[dosagefumigant]";?> </td>
						</tr>
					</table>
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					<table width="100%"  	 cellpadding="0">
						<tr>
							<td width="25%"><strong>How was the fumigation conducted? </strong></td>
							<td width="75%">
								<?php
								if($rowu1['contype']=='Yes') {
								//$checkedStackSheet = 'checked="checked"'; 
								echo '<span class="cross">&#10004;</span> ';
								}else{
								//$checkedStackSheet = "";
								echo '<span class="cross">&#10008;</span> ';
								}
								echo '  <strong>Stack under sheet</strong>'; 
								?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								<?php
								if($rowu1[presstest]=='Yes') {
								//$checkedPresstest = "checked='checked'"; 
								echo '<span class="cross">&#10004;</span> ';
								}else{
								//$checkedPresstest = "";
								echo '<span class="cross">&#10008;</span> ';
								}
								echo '  <strong>Container/s under sheet</strong>'; 
								?>
							</td>
						</tr>
						<tr>
							<td width="25%">&nbsp;</td>
							<td width="75%">
								<?php
								if($rowu1[airspace]=='Yes') {
								//$checkedAirspace = "checked='checked'"; 
								echo '<span class="cross">&#10004;</span> ';
								}else{
								//$checkedAirspace = "";
								echo '<span class="cross">&#10008;</span> ';
								}
								echo ' <strong> Permanent Chamber </strong>'; 
								?> &nbsp;&nbsp;&nbsp; 
								<?php
								if($rowu1[discharge]=='Yes') {
								//$checkedPresstest = "checked='checked'"; 
								echo '<span class="cross">&#10004;</span> ';
								}else{
								//$checkedPresstest = "";
								echo '<span class="cross">&#10008;</span> ';
								}
								echo ' <strong>Pressure tested container/s</strong>'; 
								?>
							</td>
						</tr>
					</table>
					<br/>
					Container number/s (where applicable) : &nbsp; <?php echo $rowu1['conslinkno']; ?>
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					Dose the target of fumigation conform to the AQIS plastic wrapping, impervious surface and timber thickness requirements at the time of fumigation?
					&nbsp;&nbsp; 
					<?php
					if($rowu1[consignment]=='Yes'){
						echo"Yes <del> No </del>";
					 }else{
						 echo"No <del> Yes </del>";
					 }
					?>
					<hr />
					Ventilation Final TLV reading(ppm): <?php echo $rowu1['perforated'];  ?>
					(not required for Stack or Permanent chamber fumigations)
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" >
					<h4>DECLARATION </h4>
					<hr />
					By signing below, I, the AFAS accredited fumigator responsible, declare that these details are true and correct and the fumigation <br />
					has been carried out in accordance with all the requirements in the AQIS Methyl Bromide Fumigation Standard. 
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<h4>ADDITIONAL DECLARATIONS </h4>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left">
					<?php
					//		if($rowu1['addition']=="on")
					//		{
								echo $rowu1[decla];
					//		}
					?> <br/><br/><br/>
					<hr />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<table border="0" class="printo"  width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td width="30%" align="center<br/><br/>Signature<br/><br/><br/>...............................................................................<br/> Name of Accreditation Fumigator<br/><br/><strong><?php echo $sign[name];?><?php echo $sign[code];?></strong></td>	
							<td width="30%" align="center" >Date <?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?><br/><br/><br/>................................................................................<br/> AFAS Accreditation Number<br /><strong><br/>AFASIN 0074</strong></td>
							<td width="40%" align="center">&nbsp;<br/></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="left" style="font-size: 12px;"> <br/>1.This certificate is valid only if the goods described above is shipped within 21 days from the date of fumigation.<br/>2.No Liability attached to the certifying company or its representatives with respect to this certificate. <br/>3.Consignment details as declared by
					shipper or his shipping agent <br/>4.Without hologram certificate is not valid.
				</td>
			</tr>
		</table>


PK 99