
PK 
<?php
//PPQ
session_start();
$sqlu1="SELECT * FROM certificates WHERE certificateno='$_GET[id]'";
$resultu1=mysql_query($sqlu1) or die('error in fetch');
$rowu1=mysql_fetch_array($resultu1);
?>
<html>
<head>
<style type="text/css">
.printo {
color: #000000; font-family:arial;
font-style: normal; letter-spacing: 0;
display: block; padding-top: 1px;
font-size: 68%; 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>
<p> </p>
<p> </p>
<p> </p>
<br>
<?php
if($rowu1[cancel]){
?>
<div class="cancel_div"><img src="../cancelled.png" width="670" alt="Cancel" /></div>
<?php
}
?>
<table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="printo">
<tr>
<td colspan="6">
<center>
<p> </p>
<p><strong>FUMIGATION CERTIFICATE </strong></p>
</center>
</td>
</tr>
<tr>
<td align="left" colspan="6" width="80%"><strong>Dte PPQS Regd. No.: <?php echo ($_SESSION[username]=="delhi"?"567/MB Dated:17/01/17":"438/MB Dated:22/01/14")?></strong></td>
</tr>
<tr>
<td width="60%" colspan="4"><strong>Treatment Certificate No.:
<?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 $_SESSION['city'];
if($rowu1[certypo]=="d" || $rowu1[certypo]=="e"){
echo "APM";
}else{
echo "APMS";
}
if($rowu1[certno]<=7556){
$sqlu="SELECT * FROM signature where id=4 ";
}else{
$sqlu="SELECT * FROM signature where id=3 ";
}
$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="40%" align="right" colspan="2"><strong>Date of Issue:<?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?> </strong></td>
</tr>
<td colspan="6">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="6"><strong>DETAILS OF GOODS</strong></td>
</tr>
<tr>
<td colspan="4" width="20%">Description of goods:
<?php echo"$rowu1[desgood]";?>
</td>
<td colspan="4" width="20%"> Quantity declared:
<?php echo"$rowu1[quantitydeclared]";?>
</td>
</tr>
<tr>
<td align="left" colspan="4" width="20%">Distinguishing Mark:
<?php echo"$rowu1[distmarks]";?>
</td>
<td colspan="1" width="16%" valign="top"> Consignment Link/<br>
Container No.
</td>
<td colspan="4" width="100%" valign="top"><br><?php echo"$rowu1[conslinkno]";?></td>
</tr>
</tr>
<tr>
<td align="left" colspan="4" width="20%">Port & country of loading:
<?php echo"$rowu1[portcountry]";?>
</td>
<td colspan="4" width="20%"> Name of the Vessel/Ship:
<?php echo"$rowu1[nameship]";?>
</td>
</tr>
<tr>
<td align="left" colspan="4" width="20%">Country of Destination:
<?php echo"$rowu1[countrydes]";?>
</td>
<td width="20%" colspan="4"> Declared point of Entry:
<?php echo"$rowu1[declentry]";?>
</td>
</tr>
<tr>
<td valign="top" colspan="3"><strong>Name & Address of Consignor/Exporter:</strong></td>
<td colspan="3" style="text-transform:uppercase;">
<?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 "M/S<b> $rp[headname]</b><br>$rp[headaddress]";
}
/*$exp1 = explode(',',$rowu1['nameaddress']);
$ln1 = count($exp1);
for($i=1; $i<$ln1; $i++)
{
echo $exp1[$i]."<br />";
}*/
?>
</td>
</tr>
<tr>
<td valign="top" colspan="3"><strong>Name & Address of Consignee/Importer:</strong></td>
<td colspan="3" style="text-transform:uppercase;">
<?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 />";
}*/
?>
</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 colspan="2" nowrap>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>
$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 NSPM-12 / ISPM-15. <br>Place and Date: Rewari <?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>
DPPQS Accreditation No.:<strong> <?php echo $rowu['code'];?></strong>
<!-- signature of Hanuman sigh till certificate no: 7556 -->
</div>
</td>
</tr>
<tr>
<td align="center" colspan="6"> <p> </p>
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>
</body>
</html>


PK 99