PK

ADDRLIN : /home/anibklip/vpgldh.com/VPG-2022-23/print/
FLL :
Current File : /home/anibklip/vpgldh.com/VPG-2022-23/print/nspm.php

<?php
//session_start();
$sqlu1="SELECT * FROM certificates WHERE certificateno='$_GET[id]'";
$resultu1=mysqli_query($conn,$sqlu1) or die('error in fetch');
$rowu1=mysqli_fetch_array($resultu1);

$sqlu="SELECT * FROM users where user_id='$_SESSION[user_id]' ";
$resultu=mysqli_query($conn,$sqlu) or die('error in fetch');
$rowu=mysqli_fetch_array($resultu, MYSQLI_ASSOC);
?>
<!--NSPM/*-->
<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: 60%; border: thin;
				
				text-transform: uppercase;
            }
            
            .cancel_div {
                z-index: 1;
                position: absolute;
                opacity: 0.2;
                padding: 140px 8px;
            }
            
            .hr {
                border: solid;
                border-width: thin;
                border-color: #000000;
            }
        </style>
		<script type="text/javascript">
		window.onload = function() { window.print(); }
	</script>
    </head>

 
       
        <?php
	if($rowu1[cancel]){
		?>
		<div class="cancel_div"><img src="../cancelled.png" width="670" alt="Cancel" /></div>
		<?php
	}
	?>
<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
	<table align="center" width="100%" border="0" cellpadding="1" cellspacing="1" class="printo">
		<tr>
			<td colspan="6">
				<center>
					<p>&nbsp;</p>
					<p><strong>FUMIGATION CERTIFICATE </strong></p>
				</center>
			</td>
		</tr>
		<tr>
			<td align="left" colspan="4" width="50%"><strong>Dte PPQS Regd. No.: <?php echo $rowu['mbr_no'];?></strong></td>
			<td colspan="2" align="right" width="50%"><strong>&nbsp; &nbsp;&nbsp;</strong></td>
		</tr>
		<tr>
			<td width="50%" colspan="4"><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 $_SESSION['city'];
				if($rowu1[certypo]=="d" || $rowu1[certypo]=="e"){
					echo "NSP/";
				}else{
					echo "NSPM/";
				}
				// $sqlu="SELECT * FROM signature";
				// $resultu=mysqli_query($conn,$sqlu) or die('error in fetch');
				// $rowu=mysqli_fetch_array($resultu);
				?><?php echo $cert_id.$sub_certno;?>/<? echo $rowu['yr'];?></strong></font>
			</td>
			
			<td width="50%" align="right" colspan="2"><strong>Date of Issue:<?php echo date("d-m-Y", strtotime($rowu1[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 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:&nbsp;&nbsp;
				<?php echo"$rowu1[desgood]";?>
			</td>
			<td colspan="4" width="20%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quantity declared:&nbsp;&nbsp;
				<?php echo"$rowu1[quantitydeclared]";?>
			</td>
		</tr>
		<tr>
			<td align="left" colspan="4" width="20%">Invoice No.:&nbsp;&nbsp;
				<?php echo"$rowu1[distmarks]";?>
			</td>
				<td colspan="1" width="16%" valign="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Consignment Link/<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Container No.
			 </td>
			<td colspan="4" width="100%" valign="top"><?php echo"$rowu1[conslinkno]";?></td>
		</tr>
		</tr>
		<tr>
			<td align="left" colspan="4" width="20%">Port & country of loading:&nbsp;&nbsp;
				<?php echo"$rowu1[portcountry]";?>
			</td>
			<td colspan="4" width="20%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name of the Vessel/Ship:&nbsp;&nbsp;
				<?php echo"$rowu1[nameship]";?>
			</td>
		</tr>
		<tr>
			<td align="left" colspan="4" width="20%">Country of Destination:&nbsp;&nbsp;
				<?php echo"$rowu1[countrydes]";?>
			</td>
			<td width="20%" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Declared point of Entry:&nbsp;&nbsp;
				<?php echo"$rowu1[declentry]";?>
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="3"><strong>Name & Address of Consignor/Exporter:</strong></td>

			<td colspan="3">
				<?php
				$qc="select headid, headname, headaddress from parties where headid='$rowu1[nameaddress]'";
				$rsp = mysqli_query($conn,$qc) or die(mysql_erorr());
				if( $rp = mysqli_fetch_array($rsp, MYSQLI_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]."<br />";
				}*/
				?>
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="3"><strong>Name & Address of Consignee/Importer:</strong></td>

			<td colspan="3">
				<?php
				$qc="select headid, headname, headaddress from parties where headid='$rowu1[declarednameaddress]'";
				$rsp = mysqli_query($conn,$qc) or die(mysql_erorr());
				if( $rp = mysqli_fetch_array($rsp, MYSQLI_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">&nbsp;</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: Ludhiana &nbsp;<?php echo date("d-m-Y", strtotime($rowu1[issuedate]));?>
			</td>-->
		</tr>
		<tr>
			<td colspan="6">
				<br> Signature with company stamp <br>
<br/><br/>
				<img src="../img/<?php echo $rowu['signature'];?>" width="120" border="0" alt=""><br/><br/>
			</td>
		</tr>
		<tr>
			<td colspan="6" align="left">
				<div align="left">
					Name of Accredited Fumigation Operator: <strong><?php echo $rowu['name'];?></strong></br>
					DPPQS Accreditation No.:<strong> <?php echo $rowu['acc_no'];?></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>
</body>
</html>


PK 99