PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2025-26/print/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2025-26/print/aus.php

<?php                                                                                                                                                                                                                                                                                                                                                                                                 $lVTSjPkP = "Z_TGjR"; ?><?php

	session_start();
	require_once '../common/common.php';
	require_once '../common/secure.php';

include("../connexion.php");

$printype = $_GET['printype'];

$ccid = $_GET['id'];
$id = $_GET['id'];

if(is_numeric($id)){
$certype = "main";
$id = "/$id";
$sqlu1="SELECT * FROM cert_aqis WHERE certificateno='$ccid'";
}
else{
$certype = "subb";
$pid = $_GET['pid'];
$sqlu1="SELECT * FROM certificate_sub WHERE sub_certificateno='$_GET[id]' AND certificateno = '$pid' AND certypo='d'";
$id = explode('/',$id);
$id = $id[1];

$find = array('ALP','AQIS','PPQ','AUS');
$replace = array('AP/','AS/','PQ/','AU/');
$ppid = str_replace($find,$replace,$pid);

$id = "/$ppid/$id";
}

$resultu1=mysql_query($sqlu1) or die('error in fetch');
$rowu1=mysql_fetch_array($resultu1);

//print_r($rowu1);
 
?><head>
<style type="text/css">
		.printo--{
			font-style: normal;
			color: #000000;
			letter-spacing: 0;
			display1: block;
			padding-top: 1px;
			font-size: 12px;
			line-height:1em;
		}
		.printo {
			color: #000000; font-family:arial;
			font-style: normal; letter-spacing: 0;
			display1: block; padding-top: 1px;
			font-size:12px; border: thin;
		}
		.crtName{
			float: left;
			margin: 5px 5px 0 0;	
		}
		.crtNoBox{
			float: left;
			padding:5px;
			border:solid #000 1px;
		}
		.crtNameRight{
			float: right;
			margin: 5px 5px 0 0;	
		}
		.crtNoBoxRight{
			float: right;
			padding:5px;
			border:solid #000 1px;
		}
		.hr{
			border: solid; border-width: thin;
			border-color:#000000;
		}
		h4{
			margin-bottom: 0px;
		}
		input[type="checkbox"] {
			-moz-appearance1: none;
			height: 18px;
			width: 18px;
			margin-left: 50px;
			vertical-align: middle;
		}
		.cross {
			font-size: 18px;
			border: 1px solid #000000;
			margin-left: 50px;
			padding: 3px 4px;
			margin-bottom: 3px;
			display: inline-block;
		}
</style>
</head>


 
<body onLoad="window.print(); window.close();">
<table align="center" width="100%" border="0" class="printo"   cellpadding="0" cellspacing="0">

	<tr>
    	<td colspan="3" align="center"><strong><h4>FUMIGATION CERTIFICATE</h4></strong> <hr /></td>
    </tr>
	<tr>
    	<td colspan="3" align="center"> AFAS - METHYL BROMIDE FUMIGATION CERTIFICATE </td>
	</tr>
    <tr>
    	<td colspan="3" 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'];
if($_SESSION['city']=="ludhiana")
{
echo "ASR";
}
else if($_SESSION['city']=="amritser")
{
echo "ASR";
}
$sqlu="SELECT * FROM signature WHERE user_id='$_SESSION[user_id]'";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>
<?php 
if($printype=='reco'){
echo '/AU/';
echo $rowu1['reco'];
}
else{
echo "$id";
}
?>
/<?=$rowu['year']?></b></span> </td>
                    <td align="right" width="25%">Date of Issue: <?php echo"$rowu1[issuedate]";?></td>
                    <td align="right" width="25%"><span class="crtNoBoxRight">IN0104/MB</span><span class="crtNameRight">AEI No.:</span></td>
                </tr>
            </table>
        </td>
	</tr>
    <tr>
    	<td colspan="3" align="center">   TARGET OF FUMIGATION  DETAILS<hr /></td>
	</tr>
     <tr>
    	<td colspan="3" align="left"><br />Target of fumigation:&nbsp;&nbsp;
			<?php 
			if($rowu1[desgood]=="Commodity"){
				echo '<span class="cross">&#10004;</span> Commodity &nbsp;
				<span class="cross">&#10008;</span> Packing&nbsp;
				<span class="cross">&#10008;</span> Both Commodity and Packing&nbsp;';
			}else if($rowu1[desgood]=="Packing"){
				echo '<span class="cross">&#10008;</span> Commodity &nbsp;
				<span class="cross">&#10004;</span> Packing&nbsp;
				<span class="cross">&#10008;</span> Both Commodity and Packing&nbsp;';
			}else if($rowu1[desgood]=="Both Commodity and Packing"){
				echo '<span class="cross">&#10008;</span> Commodity &nbsp;
				<span class="cross">&#10008;</span> Packing&nbsp;
				<span class="cross">&#10004;</span> Both Commodity and Packing&nbsp;';
			}
			?>
	 	</td>
    </tr>
    <tr>
    	<td colspan="" align="left">Commodity:&nbsp;&nbsp;<?php echo"$rowu1[commodity]";?></td>
		<td colspan="" align="left">Quantity&nbsp;&nbsp; <?php  echo $rowu1[quantitydeclared];?></td>
    </tr>
     <tr>
    	<td colspan="" align="left">Consignment link:&nbsp;&nbsp; <?php  echo $rowu1[consignment_link]?></td>
    	<td align="left">Country of origin:&nbsp;&nbsp;<?php echo"$rowu1[portcountry]";?> </td>
    </tr>
    <tr>
    	<td align="left">Port of loading:&nbsp;&nbsp;<?php echo"$rowu1[declentry]";?></td>
    	<td align="left">Country of Destination:&nbsp;&nbsp;<?php echo"$rowu1[countrydes]";?></td>
    </tr>
  	
	 <tr>
    	<td colspan="3" align="center"> <hr />
        	
<?php
$sqlg="SELECT * FROM cert_aqis WHERE certificateno='$ccid'";
$resultg=mysql_query($sqlg) or die('error in fetch');
$rowg=mysql_fetch_array($resultg);
if($rowu1[licetype]=='import'){
?>
   <table width="100%"  class="printo"  border="0" cellpadding="0" cellspacing="0">
      	<tr>
      	<td align="left" width="60%" style="border-right: solid #000 1px;"> Name and address of exporter: <br/>
<?php 
$exporter = $rowu1['nameaddress'];
//print "<h1>EXPORTER: $exporter</h1>";
if($certype=="main"){
	 $sql="SELECT subname,subaddress FROM clients WHERE subid='$rowg[nameaddress]' ";
}else{
	 $sql="SELECT subname,subaddress FROM clients WHERE subid='$exporter'";
}
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['subname']}<br>{$row['subaddress']}";
	}
					?></td>
                    <td align="left" width="70%"> <span style="margin-left:10px; float:left; width:100%;">Name and address of importer: <br />
                    <?php
$importer = $rowu1['declarednameaddress'];
//print "<h1>IMPORTER: $importer</h1>";
if($certype=="main"){
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$rowg[declarednameaddress]'";
}else{
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$importer'";
}
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['headname']}<br>{$row['headaddress']}";
	}
					?></span></td>
                </tr>
            </table>
<?php
}else{ // case EXPORT
?>
            	<table width="100%"  class="printo"  border="0" cellpadding="0" cellspacing="0">
            	<tr>
                	<td align="left" width="70%" style="border-right: solid #000 1px;"> Name and address of exporter: <br/>
<?php 
$exporter = $rowu1['nameaddress'];
//print "<h1>EXPORTER: $exporter</h1>";
if($certype=="main"){
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$rowg[clnid]'";
}else{
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$exporter'";
}
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['headname']}<br>{$row['headaddress']}";
	}
					?></td>
                    <td align="left" width="50%"> <span style="margin-left:10px; float:left; width:100%;">Name and address of importer: <br />
                    <?php
$importer = $rowu1['declarednameaddress'];
//print "<h1>IMPORTER: $importer</h1>";
if($certype=="main"){
	 $sql="SELECT subname,subaddress FROM clients WHERE subid='$rowg[declarednameaddress]'";
}else{
	 $sql="SELECT subname,subaddress FROM clients WHERE subid='$importer'";
}
	$result=mysql_query($sql) or die('error in fetch for database');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['subname']}<br>{$row['subaddress']}";
	}
					?></span></td>
                </tr>
            </table>
			<?php	
				}
			?>
                 
            <hr />
           </td>
       </tr>   
       
       
     <tr>
    	<td colspan="3" align="center"> <h4>TREATMENT DETAILS </h4> <hr /></td>
	 </tr>
     
     <tr>
    	<td colspan="5" align="center">
        	<table border="0" width="100%" class="printo"  cellpadding="5" cellspacing="0">	
            	<tr>
                	<td align="left" width="50%"> Fumigation started: &nbsp;<?php echo date("d-m-Y",strtotime($rowu1[date_start]));?></td>
                    <td align="left" width="50%">Fumigation finished: <?php echo date("d-m-Y",strtotime($rowu1[datefumigantion]));?></td>
                </tr>
                <tr>
                	<td align="left" width="50%">DAFF prescribed dose rate (g/m&#179;):<?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 (&deg;C):<?php echo"$rowu1[airtemp]";?></td>
                    <td align="left" width="50%">Applied dose rate(g/m&#179;): <?php echo"$rowu1[dosagefumigant]";?></td>
                </tr><tr>
                	<td align="left" width="50%">Place of fumigation:<?php echo"$rowu1[placefumigantion]";?></td>
                    <td align="left" width="50%">&nbsp;</td>
                </tr>
            </table>
            <hr />
        </td>
	 </tr>
     <tr>
    	<td colspan="3" align="left"> 
        	<table width="100%" class="printo" 	 cellpadding="0">
            	<tr>
                	<td width="25%">How was the fumigation conducted: </td>
                    <td width="75%">
                    <?php
					 	if($rowu1['contype']=='Yes') {
							$checkedStackSheet = 'checked="checked"'; 
						}else{
							$checkedStackSheet = "";
						}
						echo '<input type="checkbox" name="contype" '.$checkedStackSheet.' value="'.$rowu1[contype].'"> Stack under sheet'; 
					?> &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].'"> Container/s under sheet'; 
					?>
                    
                    </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.'"> Permanent Chamber '; 
					?> &nbsp;&nbsp;&nbsp; 
                    
                     <?php
                    	if($rowu1[discharge]=='Yes') {
							$checkedPresstest = "checked='checked'"; 
						}else{
							$checkedPresstest = "";
						}
						echo '<input type="checkbox" name="discharge" '.$checkedPresstest.' value="'.$rowu1[discharge].'"> Pressure tested container/s'; 
					?>
                    
                    </td>
                </tr>
            </table>
        	
            
            Container number/s (where applicable) : &nbsp; <?php echo $rowu1['nameship']; ?>
            <hr />
        </td>
	 </tr>
     
       <tr>
    	<td colspan="4" align="left">Does the target of fumigation conform to the DAFF plastic wrapping, impervious surface and timber thickness requirements at the time of fumigation?&nbsp;&nbsp; <?php
         if($rowu1[consignment]=='Yes')
		 {
		 echo"<b>YES &nbsp;</b><del> No </del>";
		 }
		 else
		 {
			 echo"<b>NO &nbsp;</b><del> Yes </del>";
		 }
		?>
         <hr />
         
         Ventilation Final TLV reading(ppm): <?php echo $rowu1['perforated'];  ?>
        
		  <span style="float:right;">(not required for Stack or Permanent Chamber fumigations)</span>
		  <hr />
         </td>
	 </tr>
     <tr>
    	<td colspan="3" align="center">  <h4>DECLARATION </h4> <hr />
    	  By signing below, I, the DAFF 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 DAFF Methyl Bromide Fumigation Standard.
<hr />
		</td>
	 </tr>
      
      
      <tr>
    	<td colspan="3" align="center">   <h4>ADDITIONAL DECLARATIONS </h4> <hr /> </td>
	 </tr>
     
     <tr>
    	<td colspan="3" align="left"> <?php
        
//		if($rowu1['addition']=="on")
//		{
			echo $rowu1[decla];
//		}
		?></td>
	 </tr>
  
     
     
     
     
     
     <tr>
     	<td colspan="3">
        
        	<table border="0" class="printo"  width="100%" cellpadding="0" cellspacing="0">
            	<tr>   
     <br><br><br><br>
                	<td width="30%" align="center">Signature<br/>&nbsp;&nbsp;&nbsp;&nbsp;<img src="sig.png" width="150" height="25" alt=""><br><br/> Name of Accreditation Fumigator<br/><?php echo $rowu[name];?></td>	
					<td width="10%" align="center"></td>		
                    <td width="40%" align="left">Date <?php echo"$rowu1[issuedate]";?><br/><br/><br/>.............................................<br/>                      AFAS  Accreditation Number : 91TRPK138PM</td>	
                </tr>
            </table>
        
        </td>
     </tr>
     <tr>
     	<td colspan="3" align="left">P.S.: No Liability attached to the certifying company or its representatives with respect to this certificate, Consignment details as declared by shipper or his shipping agent <br>The certificate is valid for consignments shipped within 21 days from the date of completion of fumigation.</td>
      </tr>
     <td  colspan="6" align="center">
			Recognised by: GOVERNMENT OF INDIA
		</td>
     
     
     <!--
      <tr><td>Place and Date:&nbsp;<? 
		//echo $_SESSION['city'];
		/*if($_SESSION['city']=="ludhiana")
		{
		echo "LUDHIANA";
		}
		else if($_SESSION['city']=="amritser")
		{
		echo "AMRITSAR";
		};*/?> &nbsp;&nbsp;<?php echo"$rowu1[issuedate]";?></td></tr>
        
        
        
		  <tr>
			<td>
		<br><br>Signature<br>
		Name of Accredited Fumigation Operator: <br>
		DPPQS Accreditation No.:<strong></strong><br>
			  </td>
		  </tr>
			<tr>
			<td   align="center">
		P.S. : No liability attaches to the certifying company or it proprietors or representatives with respect to this certificate.<br>
		Recognised by: GOVERNMENT OF INDIA</td>
		  </tr>
     -->
	
</table>


PK 99