
PK 
<!--AQIS/*-->
<?
$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 {
color: #000000; font-family:arial;
font-style: normal; letter-spacing: 0;
display: block; padding-top: 1px;
font-size:66%; border: thin;
}
.cancel_div {
z-index: 1;
position: absolute;
opacity: 0.2;
padding: 140px 8px;
}
.hr {
border: solid;
border-width: thin;
border-color: #000000;
}
</style>
</head>
<body onLoad="window.print(); window.close();">
<p> </p>
<?php
if($rowu1[cancel]){
?>
<?
}
?>
<table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="printo">
<tr>
<td colspan="3">
<center>
<p><strong>FUMIGATION CERTIFICATE</strong></p>
<p> </p>
</center>
</td>
</tr>
<tr>
<td align="left" width="50%"><strong>Dte PPQS Regd. No.: 584/MB <!-- Dated:15/05/2017 --></strong></td>
<td align="right" width="50%"><strong>AEI No. : IN584/MB</strong></td>
</tr>
<tr>
<td width="50%"><strong>Treatment Certificate Number:
<?php
if($rowu1[parent_cert]){
$cert_id=$rowu1[parent_cert];
$cert_id=getColumn("certificates","certificateno", $rowu1['parent_cert'],"certno");
if($rowu1['sub_certno']==1){
$sub_certno="/A";
}elseif($rowu1['sub_certno']==2){
$sub_certno="/B";
}elseif($rowu1['sub_certno']==3){
$sub_certno="/C";
}elseif($rowu1['sub_certno']==4){
$sub_certno="/D";
}elseif($rowu1['sub_certno']==5){
$sub_certno="/E";
}elseif($rowu1['sub_certno']==6){
$sub_certno="/F";
}elseif($rowu1['sub_certno']==7){
$sub_certno="/G";
}elseif($rowu1['sub_certno']==8){
$sub_certno="/H";
}
}else{
$cert_id=$rowu1[certno];
}
echo "AFPMS";
$sqlu="SELECT * FROM signature";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>/<?php echo $cert_id.$sub_certno;?>/<? echo $rowu['year'];?></strong></font>
</td>
<td width="50%" align="right" nowrap>
<strong>Date of Issue:<?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?></strong>
</td>
</tr>
<tr>
<td colspan="2">This is to certify that the following regulated articles have been fumigated according to the appropriate procedures to conform to the current Phytosanitary requirements of the importing country.</td>
</tr>
<td align="left" colspan="2"><strong>DETAILS OF GOODS</strong></td>
</tr>
<tr>
<td width="20%">Description of goods:
<?php echo"$rowu1[desgood]";?>
</td>
<td width="20%"> Quantity declared:
<?php echo"$rowu1[quantitydeclared]";?>
</td>
</tr>
<tr>
<td align="left" width="20%">Distinguishing Mark:
<?php echo"$rowu1[distmarks]";?>
</td>
<td width="16%" valign="top">
Consignment Link/ <?php echo"$rowu1[conslinkno]";?><br>
Container No.
</td>
</tr>
<tr>
<td align="left" width="20%">Port & country of loading:
<?php echo"$rowu1[portcountry]";?>
</td>
<td width="20%"> Name of the Vessel/Ship:
<?php echo"$rowu1[nameship]";?>
</td>
</tr>
<tr>
<td align="left" width="20%">Country of Destination:
<?php echo"$rowu1[countrydes]";?>
</td>
<td width="20%" > Declared point of Entry:
<?php echo"$rowu1[declentry]";?>
</td>
</tr>
<tr>
<td colspan="2" valign="top" >
<div style="float:left; margin-left:1px;"><strong>Name & Address of Consignor/Exporter:</strong></div>
<div style="float:left; margin-left:120px;">
<?php
$qc="select headid, headname, headaddress from parties where headid='$rowu1[nameaddress]'";
$rsp = mysql_query($qc) or die(mysql_erorr());
if( $rp = mysql_fetch_array($rsp, MYSQL_ASSOC) ){
echo "<b>$rp[headname]</b><br>$rp[headaddress]";
}
/*$exp1 = explode(',',$rowu1['nameaddress']);
$ln1 = count($exp1);
for($i=1; $i<$ln1; $i++){
echo $exp1[$i]." ";
}*/
?>
</div>
</td>
</tr>
<tr>
<td valign="top" colspan="2">
<div style="float:left; margin-left:1px;"><strong>Name & Address of Consignee/Importer:</strong></div>
<div style="float:left; margin-left:120px;">
<?php
$qc="select headid, headname, headaddress from parties where headid='$rowu1[declarednameaddress]'";
$rsp = mysql_query($qc) or die(mysql_erorr());
if( $rp = mysql_fetch_array($rsp, MYSQL_ASSOC) ){
echo "<b>$rp[headname]</b><br>$rp[headaddress]";
}
/*$exp = explode(',',$rowu1['declarednameaddress']);
$ln = count($exp);
for($i=1; $i<$ln; $i++)
{
echo $exp[$i]."<br />";
}*/
?>
</div>
</td>
</tr>
</table>
<table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="printo">
<tr>
<td colspan="6">
<hr class="hr">
<strong>DETAILS OF TREATMENT</strong>
</td>
</tr>
<tr>
<td colspan="3">
Name of Fumigant:
<?php echo"$rowu1[namefumigant]";?>
</td>
<td nowrap>
Date of Fumigation:
<?php echo date("d-m-Y", strtotime($rowu1[datefumigantion]));?>
<?php// echo str_replace("/","-",$rowu1[datefumigantion]);?>
</td>
<td colspan="2" nowrap>
Place of Fumigation:
<?php echo"$rowu1[placefumigantion]";?>
</td>
</tr>
<tr>
<td colspan="3">
Dosage rate of Fumigant:
<?php echo"$rowu1[dosagefumigant]";?>
</td>
<td>
Duration of Fumigation:
<?php echo"$rowu1[durationfumigantion]";?>
</td>
<td nowrap colspan="2">
Minimum Air Temperature:
<?php echo"$rowu1[airtemp]";?>
</td>
</tr>
<tr>
<td colspan="4">Fumigation has been performed in
<?=$rowu1[fumigation_conduct]?>:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['contype']."</b>"; ?>
</td>
</tr>
<tr>
<td colspan="4">Container pressure test conducted:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['cont_pressure']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">Container Has 200 mm free air space at the top of container:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['cont_airspace']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">In transit Fumigation-needs Ventilation at the port of discharge:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['discharge']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">Container/Enclosure has been Ventilated to below 5ppm v/v Methyl Bromide:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['enclosure']."</b>"; ?></td>
</tr>
<tr>
<td colspan="6">
<hr class="hr"><strong>WRAPPING AND TIMBER</strong></td>
</tr>
<tr>
<td colspan="4">Has the commodity been fumigated prior to lacquering,varnishing,painting or wrapping:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['commodity']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">Has plastic wrapping been used in the consignment:</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['consignment']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">If yes,has the consignment has been fumigated prior to wrapping?</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['wrapping']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">Or has the plastic wrapping been slashed,opened or perforated in accordance with the wrapping and perforation standard?</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['perforated']."</b>"; ?></td>
</tr>
<tr>
<td colspan="4">Is the timber in this consignment less than 200mm thick in one dimension and correctly spaced every 200mm in height?</td>
<td align="center" colspan="2">
<?php echo "<b>".$rowu1['height']."</b>"; ?></td>
</tr>
<tr>
<td colspan=6>
<hr class="hr">
<strong>ADDITIONAL DECLARATION:</strong><br>
</td>
</tr>
<?php
//echo "aman".$rowu1[decla];
if($rowu1['decla']==''){
echo"";
}else{
echo"<tr><td colspan=6>".nl2br($rowu1[decla])."</td></tr>";
}
?>
<tr>
<td colspan="6"> </td>
</tr>
<tr>
<td colspan="6">
I declare that these details are true and correct and the fumigation has been carried out in accordance with the Australian Methyl Bromide Standard.<br>Place and Date: Ludhiana
<?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?>
</td>
</tr>
<tr>
<td colspan="6">
<br><br><br> Signature
</td>
</tr>
<tr>
<td colspan="6" align="left">
<div align="left">
Name of Accredited Fumigation Operator:
<?php echo $rowu['name'];?></br>
AFAS Accreditation No.:<strong> 91 TRPK 041 PM</strong></div>
</td>
</tr>
<tr>
<td align="center" colspan="6">
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