PK

ADDRLIN : /home/anibklip/aaravpest.in/print/
FLL :
Current File : /home/anibklip/aaravpest.in/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);
?>

<head>
<style type="text/css">
.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;
 }
</style>

</head>

<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> <hr /></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 "LDH";

$sqlu="SELECT * FROM signature";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>

/<?php echo "$_GET[id]";?>/<? echo $rowu['year'];?>
</b></span> </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 '<input type="checkbox" name="desgood" checked="checked" value="Commodity" /><strong>Commodity</strong> &nbsp;
				<input type="checkbox" name="desgood" value="Commodity" /> <strong>Packing</strong>&nbsp;
				<input type="checkbox" name="desgood" value="Commodity" /> <strong>Both Commodity and Packing</strong>&nbsp;';
			
			}else if($rowu1[desgood]=="Packing"){
			
				echo '<input type="checkbox" name="desgood" value="Packing" /><strong>Commodity</strong> &nbsp;
				<input type="checkbox" name="desgood" checked="checked" value="Packing" /> <strong>Packing</strong>&nbsp;
				<input type="checkbox" name="desgood" value="Packing" /> <strong>Both Commodity and Packing</strong>&nbsp;';
			
			}else if($rowu1[desgood]=="Both Commodity and Packing"){
			
				echo '<input type="checkbox" name="desgood" value="Packing" /><strong>Commodity</strong> &nbsp;
				<input type="checkbox" name="desgood" value="Packing" /> <strong>Packing</strong>&nbsp;
				<input type="checkbox" name="desgood" checked="checked" value="Both Commodity and Packing" /><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[consignment_link]";?></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]";?>	</hr></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"$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[dosagefumigant]";?></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"'; 
						}else{
							$checkedStackSheet = "";
						}
						echo '<input type="checkbox" name="contype" '.$checkedStackSheet.' value="'.$rowu1[contype].'"> <strong>Stack under sheet</strong>'; 
					?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                     <?php
                    	if($rowu1[presstest]=='Yes') {
							$checkedPresstest = "checked='checked'"; 
						}else{
							$checkedPresstest = "";
						}
						echo '<input type="checkbox" name="presstest" '.$checkedPresstest.' value="'.$rowu1[presstest].'"> <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'"; 
						}else{
							$checkedAirspace = "";
						}
						echo '<input type="checkbox" name="airspace" '.$checkedAirspace.' value="'.$checkedAirspace.'"><strong> Permanent Chamber </strong>'; 
					?> &nbsp;&nbsp;&nbsp; 
                    
                     <?php
                    	if($rowu1[discharge]=='Yes') {
							$checkedPresstest = "checked='checked'"; 
						}else{
							$checkedPresstest = "";
						}
						echo '<input type="checkbox" name="discharge" '.$checkedPresstest.' value="'.$rowu1[discharge].'"> <strong>Pressure tested container/s</strong>'; 
					?>
                    
                    </td>
                </tr>
            </table>
        	<br/>
            
            Container number/s (where applicable) : &nbsp; <?php echo $rowu1['nameship']; ?>
            <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> <hr /> </td>
	 </tr>
     
     <tr>
    	<td colspan="2" align="left"> <?php
        
//		if($rowu1['addition']=="on")
//		{
			echo $rowu1[decla];
//		}
		?></td>
	 </tr>
     
     
     
     
     
     
     
     <tr>
     	<td colspan="2">
        
        	<table border="0" class="printo"  width="100%" cellpadding="0" cellspacing="0">
            	<tr>
                	<td width="30%" align="center">Signature<br/><br/><br/>...............................................................................<br/> Name of Accreditation Fumigator<br/><br/><strong><?php echo $rowu[name];?><?php echo $rowu[code];?></strong></td>	
					<td width="30%" align="center" >Date <?php echo"$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