PK

ADDRLIN : /home/anibklip/pcfcindia.com/20-21/print/
FLL :
Current File : /home/anibklip/pcfcindia.com/20-21/print/report.php

<!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" />
<?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_aqis";
}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, MYSQL_ASSOC);
//echo "<pre>"; print_r($row);echo "</pre>";
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">&nbsp;</td>
					<td colspan="19">
						<div align="center">
							<h1><strong>Fumigation Record</strong></h1>
						</div>
					</td>
					<td width="1" rowspan="13">&nbsp;</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;?>
							&nbsp;
						</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;?>
							&nbsp;
						</div>
					</td>
					<td>
						<div align="center">
							<?=$placefumigantion;?>
							&nbsp;
						</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?>&nbsp;</div>
					</td>
					<td colspan="2">
						<div align="center"><?=$portcountry?>&nbsp;</div>
					</td>
					<td colspan="5">
						<div align="center"><?=$countrydes?>&nbsp;</div>
					</td>
					<td colspan="2">
						<div align="center"> <?=$declentry?></div>
					</td>
					<?php
					//echo $licetype;
					if(isset($licetype) && $licetype=='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
								$ar=explode(",",$nameaddress);
								$nameaddress=$ar[0];

								$ar=explode(",",$declarednameaddress);
								$declarednameaddress=$ar[0];

								/*$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'];*/
								/*echo $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']}";
								}*/
								
								$sql="SELECT subname,subaddress FROM clients WHERE subid='$nameaddress'";
								$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>
						<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'];*/
								
								/*echo $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']}";
								}*/

								$sql="SELECT headname,headaddress FROM head WHERE headid='$declarednameaddress'";
								$result=mysql_query($sql) or die('error in fetch');
								while($row=mysql_fetch_array($result)){
									echo"{$row['headname']}<br>{$row['headaddress']}";
								}
								?>
							</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;?>
							&nbsp;
						</div>
					</td>
					<td colspan="4" rowspan="2">
						<div align="center"><?=$date_start;?>&nbsp;
						</div>
					</td>
					<td colspan="3" rowspan="2">
						<div align="center">
						  <?=$datefumigantion;?>&nbsp;
						</div>
					</td>
					<td colspan="2" rowspan="2">
						<div align="center">
							<?=$airtemp;?>
							&nbsp;
						</div>
					</td>
					<?php
					$dosefig = explode(' ', $dosagefumigant);
					$dosefig = $dosefig[0];
					
					//$container20feet=1;
					$doseamt = $dosefig*$container20feet;
					$doseamt100 = $doseamt*100/100;
					$doseamt102 = $doseamt/0.98;
					
					$dosefinal = number_format($doseamt102,3);
					?>
					<td colspan="3" rowspan="2">
						<div align="center"> &nbsp; </div>
					</td>
					<td colspan="2" rowspan="2">
						<div align="center"><?=$container20feet;?> Cubic Meter</div>
					</td>
				</tr>
				<tr>
					<td rowspan="11">&nbsp;</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">&nbsp;</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>
							Front Base</strong>
						</div>
					</td>
					<td colspan="2">
						<div align="center"><strong>
							M. Center</strong>
						</div>
					</td>
					<td colspan="2">
						<div align="center"><strong>
							Top Back</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">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="2">&nbsp;</td>
					<td colspan="3">&nbsp;</td>
					<td>&nbsp;</td>
					<td colspan="3">&nbsp;</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">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="13"><strong>Name &amp; signature of accredited fumigation operator with date/accredition No.</strong></td>
					<td colspan="9">&nbsp;<?php echo $rowSu[name].",".$rowSu[code];?>&nbsp;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">&nbsp;</td>
				</tr>
				<tr>
					<td colspan="22">
					</td>
				</tr>
			</table>
			<!-- End ImageReady Slices -->
	</div>
</body>
</html>


PK 99