PK

ADDRLIN : /home/anibklip/vpgldh.com/vpgambala16/webmanager/_docs/
FLL :
Current File : /home/anibklip/vpgldh.com/vpgambala16/webmanager/_docs/certificate-aqis-print.php

<?php
	include "includes/dbconnect.php"; 
?><head>
<style type="text/css">
.printo {
	font-style: normal;
	color: #000000;
	letter-spacing: 0;
	display: block;
	padding-top: 1px;
	font-size: 70%;
	border:thin;
 }
 .hr{
	border: solid; border-width: thin;
	border-color:#000000;
 }
</style>
</head>
<body onLoad="window.print(); window.close();">

<br>
<br><br> 
<table align="center" width="100%" border="0" class="printo">
  <tr><td colspan="6"><center><strong>FUMIGATION CERTIFICATE</strong></center></td></tr>
  	  <tr>
      <td align="left" colspan="4" width="50%" ><strong>Dte PPQS Regd. No.: 104/MB</strong></td>
      <td  colspan="2" align="right" width="50%"><strong>AFAS ID NO.: AFASIN104 &nbsp; &nbsp;&nbsp;</strong></td>
  </tr>
  <tr>
    <td  width="50%" colspan="4"><strong>Treatment Certificate Number:<? 
//echo $_SESSION['city'];
//if($_SESSION['city']=="ludhiana")
$city = "ludhiana";
if($city=="ludhiana")
{
echo "LDH";
}
else if($_SESSION['city']=="amritser")
{
echo "ASR";
}
//$sqlu="SELECT * FROM signature WHERE user_id='$_SESSION[user_id]'";
$sqlu="SELECT * FROM signature WHERE user_id='1'";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>/<?php echo"$_POST[certificateno]";?>/<? echo $rowu['year'];?></strong></td>
    <td width="50%" align="right" colspan="2"><strong>Date of Issue:<?php echo"$_POST[issuedate]";?>&nbsp;&nbsp;</strong></td>
  </tr>
  <td colspan="6">This is to certify that the following regulated articles have been fumigated according to the appropriate procedures to confirm 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:&nbsp;&nbsp;<?php echo"$_POST[desgood]";?></td>
    <td colspan="4" width="20%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quantity declared:&nbsp;&nbsp;<?php echo"$_POST[quantitydeclared]";?></td>
  </tr>
  <tr>
    <td align="left" colspan="4" width="20%">Distinguishing marks:&nbsp;&nbsp;<?php echo"$_POST[distmarks]";?></td>
    <td colspan="1" width="20%" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Consignment Link/<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container No.</td>
	<td colspan="3" width="100%" valign="top"><?php echo"$_POST[conslinkno]";?></td>
     </tr>
  <tr>
    <td align="left" colspan="4" width="20%">Port & country of loading:&nbsp;&nbsp;<?php echo"$_POST[portcountry]";?></td>
    <td colspan="4" width="20%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name of the Vessel/Ship:&nbsp;&nbsp;<?php echo"$_POST[nameship]";?></td>
  </tr>
  <tr>
    <td align="left" colspan="4" width="20%">Country of Destination:&nbsp;&nbsp;<?php echo"$_POST[countrydes]";?></td>
    <td width="20%" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Declared point of Entry:&nbsp;&nbsp;<?php echo"$_POST[declentry]";?></td>
  </tr>
<?php
$sqlg="SELECT * FROM certificate WHERE certificateno='$_POST[certificateno]'";
$resultg=mysql_query($sqlg) or die('error in fetch');
$rowg=mysql_fetch_array($resultg);
if($_POST['dtype']=='import')
{
  echo"<tr>
    <td align=left colspan=3>Name and address of consignor/exporter: </td>
    <td colspan=3>";
	?>
	<?php
	
	  $sql="SELECT subname,subaddress FROM clients WHERE subid='$_POST[nameaddress]'";
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['subname']}<br>{$row['subaddress']}";
	}
	echo"
	</td>
  </tr>
   <tr>
    <td colspan=3>Name & address of consignee:</td>
    <td colspan=3>";
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$_POST[declarednameaddress]'";
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['headname']}<br>{$row['headaddress']}";
	}
echo"</td>
  </tr>";
}
else
{
 echo"<tr>
    <td colspan=3>Name and address of consignor/exporter:</td>
    <td colspan=3>";
	//include("connexion.php");
	$sql="SELECT headname,headaddress FROM head WHERE headid='$_POST[nameaddress]'";
	$result=mysql_query($sql) or die('error in fetch');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['headname']}<br>{$row['headaddress']}";
	}
echo"</td>
  </tr>";
  
   echo"<tr>
    <td align=left colspan=3>Name & address of consignee:</td>
    <td colspan=3>";
	?>
	<?php
	//include("connexion.php");
	 $sql="SELECT headname,headaddress FROM head WHERE headid='$_POST[declarednameaddress]'";
	$result=mysql_query($sql) or die('error in fetch for database');
	while($row=mysql_fetch_array($result))
	{
		echo"{$row['headname']}<br>{$row['headaddress']}";
	}
	echo"
	</td>
  </tr>";
}
?>
</table>
<table align="center" width="100%" border="0" 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"$_POST[namefumigant]";?></td>
    <td>Date of fumigation:<?php echo"$_POST[datefumigantion]";?></td>
    <td colspan="2">Place of fumigation:<?php echo"$_POST[placefumigantion]";?></td>
   
  </tr>
  <tr>
    <td colspan="3">Dosage rate of fumigant:<?php echo"$_POST[dosagefumigant]";?></td>
   
    <td>Duration of fumigation:<?php echo"$_POST[durationfumigantion]";?></td>
   
    <td colspan="2">Minimum Air temperature:<?php echo"$_POST[airtemp]";?></td>
  
  </tr>
  <tr><td colspan="4">Fumigation has been performed in a container/under gas tight enclosure/sheet:</td>
	<td align="center" colspan="2"><?php
	 if($_POST['contype']=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$_POST[contype]</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['contype']=='Yes')
	 {
	 echo"<b>$_POST[contype]</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$_POST[contype]</b>";
	 }
	 ?>
	</td></tr>
	    <tr><td colspan="4">Container pressure test conducted:</td>
	<td align="center" colspan="2"><?php
	 if($_POST['presstest']=='No')
	 {
	$presstest = $_POST['presstest'];
	 echo"<del> Yes </del>   &nbsp;<b>$presstest</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['presstest']=='Yes')
	 {
	$presstest = $_POST['presstest'];
	 echo"<b>$presstest</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 $presstest = $_POST['presstest'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$presstest</b>";
	 }
	 ?>
	</td></tr>
	<tr><td colspan="4">Container has 200mm free air space at top of container:</td>
	<td align="center" colspan="2"><?php
	$airspace = $_POST['airspace'];
	 if($airspace=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$airspace</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($airspace=='Yes')
	 {
	 echo"<b>$airspace</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	$discharge = $_POST['discharge'];
	 if($discharge=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$discharge</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($discharge=='Yes')
	 {
	 echo"<b>$discharge</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	 $enclosure = $_POST['enclosure'];
	 if($enclosure=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$enclosure</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($enclosure=='Yes')
	 {
	 echo"<b>$enclosure</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	 $commodity = $_POST['commodity'];
	 if($commodity=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$commodity</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($commodity=='Yes')
	 {
	 echo"<b>$commodity</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$commodity</b>";
	 }
	 ?>
	</td>
	</tr>
    <tr>
      <td colspan="4">Has plastic wrapping been used in the consignment:</td>
	  <td align="center" colspan="2"><?php
	 $consignment = $_POST['consignment'];
	 if($consignment=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$consignment</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($consignment=='Yes')
	 {
	 echo"<b>$consignment</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	 $wrapping = $_POST['wrapping'];
	 if($wrapping=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$wrapping</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($wrapping=='Yes')
	 {
	 echo"<b>$wrapping</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	$perforated = $_POST['perforated'];
	 if($perforated=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$perforated</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($perforated=='Yes')
	 {
	 echo"<b>$perforated</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$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
	 $height = $_POST['height'];
	 if($height=='No')
	 {
	 echo"<del> Yes </del>   &nbsp;<b>$height</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($height=='Yes')
	 {
	 echo"<b>$height</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$height</b>";
	 }
	 ?>
	</td></tr>
	<tr>
	<td colspan=6><hr class="hr">
	<strong>ADDITIONAL DECLARATION:</strong><br></td></tr>
	<?php
	 
	
	if($_POST['addition']=='on')
	{
		echo "<tr><td colspan=6>".$_POST['deck']."</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 Standards
</td></tr>
 <tr><td>Place and Date:&nbsp;<? 
//echo $_SESSION['city'];
//if($_SESSION['city']=="ludhiana")
$city="ludhiana";
if($city=="ludhiana")
{
echo "LUDHIANA";
}
else if($_SESSION['city']=="amritser")
{
echo "AMRITSAR";
};?> &nbsp;&nbsp;<?php echo"$_POST[issuedate]";?></td></tr>
  <tr>
    <td colspan="6">
<br><br>Signature<br>
Name of Accredited Fumigation Operator: <? echo $rowu['name'];?><br>
AFAS Accreditation No.:<strong> <? echo $rowu['code1'];?></strong><br>
      </td>
  </tr>
    <tr>
    <td colspan="6" 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>
</body>


PK 99