
PK 
<?php
session_start();
require_once '../common/common.php';
require_once '../common/secure.php';
include("../connexion.php");
$cype=$_GET['ctype'];
if($cype=="aus"){
$table="cert_aqis";
}elseif($cype=="ppq"){
$table="cert_ppq";
}else{
$table="cert_$cype";
}
$sql = "SELECT * FROM $table WHERE certificateno='".(int)$_GET['cid']."'";
$result = mysql_query($sql) or die('error in fetch');
$row = mysql_fetch_array($result);
extract($row);
if($certypo=="a" || $certypo=="b"){
$certificateno="0".$certno;
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fumigation Record</title>
<style type="text/css">
<!--
.style1 {font-size: 12px; font-weight:200;}
.style3 {font-size: 18px}
-->
</style>
</head>
<!--body onLoad="window.print(); window.close();" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"-->
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center" class="style1">
<!-- ImageReady Slices (Untitled-1) -->
<table width="700" height="808" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666" id="Table_01">
<tr>
<td colspan="21"><div align="center"><strong>APENDIX- <span class="style3">X</span></strong></div>
<!--strong>Certificate No: =</strong><?=$certificateno;?>--></td>
<td width="2" rowspan="25">
<img src="spacer.gif" width="1" height="4" alt="">
<img src="spacer.gif" width="1" height="13" alt="">
<img src="spacer.gif" width="1" height="7" alt="">
<img src="spacer.gif" width="1" height="9" alt="">
<img src="spacer.gif" width="1" height="8" alt="">
<img src="spacer.gif" width="1" height="17" alt="">
<img src="spacer.gif" width="1" height="31" alt="">
<img src="spacer.gif" width="1" height="7" alt="">
<img src="spacer.gif" width="1" height="27" alt="">
<img src="spacer.gif" width="1" height="34" alt="">
<img src="spacer.gif" width="1" height="9" alt="">
<img src="spacer.gif" width="1" height="31" alt="">
<img src="spacer.gif" width="1" height="3" alt="">
<img src="spacer.gif" width="1" height="12" alt="">
<img src="spacer.gif" width="1" height="21" alt="">
<img src="spacer.gif" width="1" height="16" alt=""><img src="spacer.gif" width="1" height="8" alt="">
<img src="spacer.gif" width="1" height="10" alt="">
<img src="spacer.gif" width="1" height="10" alt="">
<img src="spacer.gif" width="1" height="49" alt="">
<img src="spacer.gif" width="1" height="17" alt="">
<img src="spacer.gif" width="1" height="17" alt="">
<img src="spacer.gif" width="1" height="18" alt="">
<img src="spacer.gif" width="1" height="13" alt=""></td>
</tr>
<tr>
<td width="2" rowspan="24"> </td>
<td colspan="19"><div align="center">
<h1><strong>Fumigation Record</strong></h1>
</div></td>
<td width="1" rowspan="13"> </td>
</tr>
<tr>
<td colspan="11" rowspan="2"><strong>Fumigation Company: PEST CONTROL & FUMIGATION COMPANY </strong></td>
<td colspan="8"><strong>Reg. No.: 104/MB</strong></td>
</tr>
<tr>
<td colspan="8"><strong>Date: <?=$issuedate;?></strong></td>
</tr>
<tr>
<td colspan="19"><div align="center"><strong>Description of Goods</strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong>Commodity</strong></div></td>
<td colspan="2"><div align="center"><strong>
Quantity</strong></div></td>
<td colspan="3"><div align="center"><strong>
No. of package</strong></div></td>
<td colspan="3"><div align="center"><strong>
Mode of Package</strong></div></td>
<td colspan="3"><div align="center"><strong>
Shipping Mark</strong></div></td>
<td colspan="5"><div align="center"><strong>
Container Nos</strong></div></td>
<td width="159"><div align="center"><strong>
Place of Fumigation</strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<?=$desgood;?>
</div></td>
<td colspan="2"><div align="center"></div></td>
<td colspan="3"><div align="center">
<?=$quantitydeclared;?>
</div></td>
<td colspan="3"><div align="center"></div></td>
<td colspan="3"><div align="center"> <?=$distmarks;?></div></td>
<td colspan="5"><div align="center">
<?=$conslinkno;?>
</div></td>
<td><div align="center">
<?=$placefumigantion;?>
</div></td>
</tr>
<tr>
<td colspan="19">
<strong>Shipping Particulers</strong></td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong>
Vessal Name</strong></div></td>
<td colspan="2"><div align="center"><strong>
Port of loading</strong></div></td>
<td colspan="5"><div align="center"><strong>
Contry of export</strong></div></td>
<td colspan="2"><div align="center"><strong>
Foregin port of shipment</strong></div></td>
<td colspan="6"><div align="center"><strong>
Name of Exporter</strong></div></td>
<td colspan="2"><div align="center"><strong>
Name of Importer</strong></div></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<?=$nameship?>
</div></td>
<td colspan="2">
<div align="center">
<?=$portcountry?>
</div></td>
<td colspan="5">
<div align="center">
<?=$countrydes?>
</div></td>
<td colspan="2"><div align="center"> <?=$declentry?></div></td>
<?php
if(isset($dtype) && $dtype=='export' ){
?>
<td colspan="6">
<div align="center">
<?php
$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$nameaddress."'";
$resultHeadAddress=mysql_query($sqlHeadQuery) or die('error in getting Sub client details');
$resultHeadAddress1=mysql_fetch_array($resultHeadAddress);
echo $resultHeadAddress1['headname']."<br/>".$resultHeadAddress1['headaddress'];
?>
</div></td>
<td colspan="2">
<div align="center">
<?php
$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$declarednameaddress."'";
$resultClientAddress=mysql_query($sqlClientQuery) or die('error in getting Sub client details');
$resultClientAddress1=mysql_fetch_array($resultClientAddress);
echo $resultClientAddress1['subname'].",<br/>".$resultClientAddress1['subaddress'];
?>
</div></td>
<?php
}else{
//Import Address
?>
<td colspan="6">
<div align="center">
<?php
/*$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$nameaddress."'";
$resultClientAddress=mysql_query($sqlClientQuery) or die('error in getting Sub client details');
$resultClientAddress1=mysql_fetch_array($resultClientAddress);
echo $resultClientAddress1['subname'].",<br/>".$resultClientAddress1['subaddress'];*/
$sql="SELECT headname,headaddress FROM head WHERE headid='$nameaddress'";
$result=mysql_query($sql) or die('error in fetch');
while($row=mysql_fetch_array($result)){
echo"{$row['headname']}<br>{$row['headaddress']}";
}
?>
</div></td>
<td colspan="2">
<div align="center">
<?php
/*$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$declarednameaddress."'";
$resultHeadAddress=mysql_query($sqlHeadQuery) or die('error in getting Sub client details');
$resultHeadAddress1=mysql_fetch_array($resultHeadAddress);
echo $resultHeadAddress1['headname']."<br/>".$resultHeadAddress1['headaddress'];*/
$sql="SELECT subname,subaddress FROM clients WHERE subid='$declarednameaddress'";
$result=mysql_query($sql) or die('error in fetch for database');
while($row=mysql_fetch_array($result)){
echo"{$row['subname']}<br>{$row['subaddress']}";
}
?>
</div></td>
<?php } ?>
</tr>
<tr>
<td colspan="19">
<strong>Details of fumigation</strong></td>
</tr>
<tr>
<td colspan="2" rowspan="2"><div align="center"><strong>
Fumigant</strong></div></td>
<td colspan="3" rowspan="2"><div align="center"><strong>
Dose/gm</strong></div></td>
<td colspan="4" rowspan="2"><div align="center"><strong>
Date/Time of Starting fumigation</strong></div></td>
<td colspan="3" rowspan="2"><div align="center"><strong>Date/Time of Ending fumigation</strong></div></td>
<td colspan="2" rowspan="2"><div align="center"><strong>Temp. in C</strong></div></td>
<td colspan="3" rowspan="2"><div align="center"><strong>
Quantity of Fumigation</strong></div></td>
<td colspan="2"><div align="center"><strong>
Volume type of fumigation enclosure</strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="center"></div></td>
</tr>
<tr>
<td colspan="2" rowspan="2"><div align="center">
<?=$namefumigant;?>
</div></td>
<td colspan="3" rowspan="2"><div align="center">
<?=$dosagefumigant;?>
</div></td>
<td colspan="4" rowspan="2"><div align="center">
<?=$datefumigantion;?>
</div></td>
<td colspan="3" rowspan="2"><div align="center"></div></td>
<td colspan="2" rowspan="2"><div align="center">
<?=$airtemp;?>
</div></td>
<?php
$dosefig = explode(' ', $dosagefumigant);
$dosefig = $dosefig[0];
$doseamt = $dosefig*$container20feet;
$doseamt100 = $doseamt*100/100;
$doseamt102 = $doseamt/0.98;
$dosefinal = $doseamt102;
?>
<td colspan="3" rowspan="2"><div align="center"><?=$dosefinal;?>g</div></td>
<td colspan="2" rowspan="2"><div align="center"><?=$container20feet;?> Cubic Meter</div></td>
</tr>
<tr>
<td rowspan="11"> </td>
</tr>
<tr>
<td colspan="14">
<strong>If containers are not sheeted, the pressure decay(gas-tightness)value for 200-100 pascals in sec</strong></td>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="10"><strong>Record of monitoring gas consentration</strong></td>
<td colspan="9">
<strong>Gas monitor type used</strong></td>
</tr>
<tr>
<td colspan="3" rowspan="2"><div align="center"><strong>
Date Time</strong></div></td>
<td width="97" rowspan="2"><div align="center"><strong>Time interval</strong></div></td>
<td colspan="12"><div align="center"><strong>
Reading of sampling lines</strong></div></td>
<td colspan="3" rowspan="2"><div align="center"><strong>
Monitored By</strong></div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><strong>
S1</strong></div></td>
<td colspan="2"><div align="center"><strong>
S2</strong></div></td>
<td colspan="2"><div align="center"><strong>
S3</strong></div></td>
<td colspan="2"><div align="center"><strong>
S4</strong></div></td>
<td colspan="3"><div align="center"><strong>
S5</strong></div></td>
<td width="68"><div align="center"><strong>
S6</strong></div></td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr>
<td colspan="3"> </td>
<td> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="2"> </td>
<td colspan="3"> </td>
<td> </td>
<td colspan="3"> </td>
</tr>
<?php
$sqlSu="SELECT * FROM signature WHERE user_id='$_SESSION[user_id]'";
$resultSu=mysql_query($sqlSu) or die('error in fetch');
$rowSu=mysql_fetch_array($resultSu);
?>
<tr>
<td colspan="13">
<strong>Particulars of topup fumigant at the end point of fumigation, if any under taken</strong></td>
<td colspan="9"> </td>
</tr>
<tr>
<td colspan="13"><strong>Name & signature of accredited fumigation operator with date/accredition No.</strong></td>
<td colspan="9"> <?php echo $rowSu[name].",".$rowSu[code];?> Date: <?=$issuedate;?></td>
</tr>
<tr>
<td colspan="13"><p><strong>Supervised by specified Officer of Dte PPQS<br>
(applicablein case of non-accredited agency)</strong></p></td>
<td colspan="9"> </td>
</tr>
<tr>
<td colspan="22">
</td>
</tr>
</table>
<!-- End ImageReady Slices -->
</div>
</body>
</html>


PK 99