PK

ADDRLIN : /home/anibklip/pcfcindia.com/gst2018/
FLL :
Current File : /home/anibklip/pcfcindia.com/gst2018/printcertsse_sub.php

<?php
include("connexion.php");
 ?><head>
<style type="text/css">
.printo {
		font-style: normal;
		color: #000000;
		letter-spacing: 0;
		display: block;
		padding-top: 1px;
		font-size: 70%;
   	
 }
.crtName{
 	float: left;
	margin: 5px 5px 0 0;	
}

 

.crtNoBox{
	float: left;
	padding:5px;
	border:solid #000 1px;
}
.crtNameRight{
 	float: right;
	margin: 5px 5px 0 0;	
}
.crtNoBoxRight{
	float: right;
	padding:5px;
	border:solid #000 1px;
}

 .hr{
 border: solid; border-width: thin;
 border-color:#000000;
 }
</style>
</head>

<br><br><br> 
<body onLoad="window.print(); window.close();">

<table align="center" width="100%" border="0" class="printo" cellpadding="0" cellspacing="0">

	<tr>
    	<td align="center"><strong><h4>FUMIGATION CERTIFICATE</h4></strong> <hr /></td>
    </tr>
	<tr>
    	<td align="center"> AFAS - METHYL BROMIDE FUMIGATION CERTIFICATE </td>
	</tr>
    <tr>
    	<td align="center"> 
        	<table width="100%" cellpadding="0" cellspacing="0">
            	<tr>
                	<td align="left" width="50%"><span class="crtName">Certificate number: </span><span class="crtNoBox"><? 
//echo $_SESSION['city'];
if($_SESSION['city']=="ludhiana")
{
echo "LDH";
}
else if($_SESSION['city']=="amritser")
{
echo "ASR";
}
$sqlu="SELECT * FROM signature WHERE user_id='$_SESSION[user_id]'";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>/<?php echo"$_GET[certificate_id]";?>/<?=$rowu['year']?></b></span> </td>
                    <td align="right" width="50%"><span class="crtNoBoxRight">104/MB</span><span class="crtNameRight">AFAS registration number :</span></td>
                </tr>
            </table>
        </td>
	</tr>
    <tr>
    	<td align="center">   TARGET OF FUMIGATION  DETAILS<hr /></td>
	</tr>
    <tr>
    	<td align="left">Target of fumigation:&nbsp;&nbsp;
		<?php 
			if($_GET[desgood]=="Commodity"){
			
				echo '<input type="checkbox" name="desgood" checked="checked" value="Commodity" />Commodity &nbsp;
				<input type="checkbox" name="desgood" value="Commodity" /> Packing&nbsp;
				<input type="checkbox" name="desgood" value="Commodity" /> Both Commodity and Packing&nbsp;';
			
			}else if($_GET[desgood]=="Packing"){
			
				echo '<input type="checkbox" name="desgood" value="Packing" />Commodity &nbsp;
				<input type="checkbox" name="desgood" checked="checked" value="Packing" /> Packing&nbsp;
				<input type="checkbox" name="desgood" value="Packing" /> Both Commodity and Packing&nbsp;';
			
			}else if($_GET[desgood]=="Both Commodity and Packing"){
			
				echo '<input type="checkbox" name="desgood" value="Packing" />Commodity &nbsp;
				<input type="checkbox" name="desgood" value="Packing" /> Packing&nbsp;
				<input type="checkbox" name="desgood" checked="checked" value="Both Commodity and Packing" /> Both Commodity and Packing&nbsp;';
			
			}
		?>
	 	</td>
    </tr>
    <tr>
    	<td align="left">Commodity:&nbsp;&nbsp;<?php echo"$_GET[quantitydeclared]";?></td>
    </tr>
     <tr>
    	<td align="left">Consignment link&nbsp;&nbsp; <?php  echo"$_GET[consignment_link]";?></td>
    </tr>
    <tr>
    	<td align="left">Country of origin:&nbsp;&nbsp;<?php echo"$_GET[portcountry]";?> &nbsp;&nbsp;&nbsp;Port of loading:&nbsp;&nbsp;<?php echo"$_GET[declentry]";?>&nbsp;&nbsp;&nbsp;Country of Destination:&nbsp;&nbsp;<?php echo"$_GET[countrydes]";?></td>
    </tr>
  	
	 <tr>
    	<td align="center"> <hr />
        	
            <?php
            /*$sqlg="SELECT * FROM certificate WHERE certificateno='$_GET[certificateno]'";
			$resultg=mysql_query($sqlg) or die('error in fetch');
			$rowg=mysql_fetch_array($resultg);*/
			?>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
            	<tr>
                	<td align="left" width="50%" style="border-right: solid #000 1px;"> Name and address of exporter: <br/>
					<?php 
						$sql="SELECT subname,subaddress From clients WHERE subid ='".$_GET[nameaddress]."'";
						$result=mysql_query($sql) or die('error in fetch');
						while($row=mysql_fetch_array($result))
						{
							echo"{$row['subname']},<br>{$row['subaddress']}";
						}
					?></td>
                    <td align="left" width="50%"> <span style="margin-left:10px; float:left;">Name and address of importer: <br />
                    <?php
                    $sql="SELECT headname,headaddress FROM head WHERE headid='$_GET[declarednameaddress]'";
					$result=mysql_query($sql) or die('error in fetch');
					while($row=mysql_fetch_array($result))
					{
						echo"{$row['headname']},<br>{$row['headaddress']}";
					}
					?></span></td>
                </tr>
            </table>
                 
            <hr />
           </td>
       </tr>   
       
       
     <tr>
    	<td align="center"> <h4>TREATMENT DETAILS </h4> <hr /></td>
	 </tr>
     
     <tr>
    	<td align="center">
        	<table border="0" width="100%" cellpadding="5" cellspacing="0">	
            	<tr>
                	<td align="left" width="50%">Date fumigation completed: &nbsp;&nbsp;<?php echo"$_GET[datefumigantion]";?></td>
                    <td align="left" width="50%">Place of fumigation:<?php echo"$_GET[placefumigantion]";?></td>
                </tr>
                <tr>
                	<td align="left" width="50%">AQIS prescribed dose rate (g/m3):<?php echo"$_GET[dosagefumigant]";?></td>
                    <td align="left" width="50%">Exposure period (hrs):<?php echo"$_GET[durationfumigantion]";?></td>
                </tr>
                <tr>
                	<td align="left" width="50%">Forecast minimum temp (C):<?php echo"$_GET[airtemp]";?></td>
                    <td align="left" width="50%">Applied dose rate(g/m): <?php echo"$_GET[dosagefumigant]";?></td>
                </tr>
            </table>
            <hr />
        </td>
	 </tr>
     <tr>
    	<td align="left"> 
        	<table width="100%" cellpadding="0">
            	<tr>
                	<td width="25%">How was the fumigation conducted? </td>
                    <td width="75%">
                    <?php
					 	if($_GET['contype']=='Yes') {
							$checkedStackSheet = 'checked="checked"'; 
						}else{
							$checkedStackSheet = "";
						}
						echo '<input type="checkbox" name="contype" '.$checkedStackSheet.' value="'.$_GET[contype].'"> Stack under sheet'; 
					?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    
                     <?php
                    	if($_GET[presstest]=='Yes') {
							$checkedPresstest = "checked='checked'"; 
						}else{
							$checkedPresstest = "";
						}
						echo '<input type="checkbox" name="presstest" '.$checkedPresstest.' value="'.$_GET[presstest].'"> Container/s under sheet'; 
					?>
                    
                    </td>
                </tr>
                <tr>
                	<td width="25%">&nbsp;</td>
                    <td width="75%">
                    <?php
                    	if($_GET[airspace]=='Yes') {
							$checkedAirspace = "checked='checked'"; 
						}else{
							$checkedAirspace = "";
						}
						echo '<input type="checkbox" name="airspace" '.$checkedAirspace.' value="'.$checkedAirspace.'"> Permanent Chamber '; 
					?> &nbsp;&nbsp;&nbsp; 
                    
                     <?php
                    	if($_GET[discharge]=='Yes') {
							$checkedPresstest = "checked='checked'"; 
						}else{
							$checkedPresstest = "";
						}
						echo '<input type="checkbox" name="discharge" '.$checkedPresstest.' value="'.$_GET[discharge].'"> Pressure tested container/s'; 
					?>
                    
                    </td>
                </tr>
            </table>
        	<br/>
            
            Container number/s (where applicable) : &nbsp; <?php echo $_GET['nameship']; ?>
            <hr />
        </td>
	 </tr>
     
       <tr>
    	<td align="left"> Dose the target of fumigation conform to the AQIS plastic wrapping, impervious surface and timber thickness requirements at the time of fumigation?
        &nbsp;&nbsp; <?php
         if($_GET[consignment]=='yes')
		 {
		 echo"Yes <del> No </del>";
		 }
		 else
		 {
			 echo"No <del> Yes </del>";
		 }
		?>
         <hr />
         
         Ventilation Final TLV reading(ppm): <?php echo $_GET['perforated'];  ?>
         (not required for Stack or Permanent chamber fumigations)
         <hr />
         </td>
	 </tr>
     <tr>
    	<td align="center">  <h4>DECLARATION </h4> <hr />
        By signing below, I, the AFAS accredited fumigator responsible, declare that these details are true and correct and the fumigation <br />
has been carried out in accordance with all the requirements in the AQIS Methyl Bromide Fumigation Standard. <hr />
		</td>
	 </tr>
      
      
      <tr>
    	<td align="center">   <h4>ADDITIONAL DECLARATIONS </h4> <hr /> </td>
	 </tr>
     
     <tr>
    	<td align="left"> <?php
        
		if($_GET['addition']=="on")
		{
			echo $_GET[deck];
		}
		?></td>
	 </tr>
     
     
     
     
     <tr>
     	<td>
        
        	<table border="0" width="100%" cellpadding="0" cellspacing="0">
            	<tr>
                	<td width="30%" align="center">Signature<br/><br/><br/>.............................................<br/> Name of Accreditation Fumigator<br/><?php echo $rowu[name];?></td>	
					<td width="30%" align="center">Date <?php echo"$_GET[issuedate]";?><br/><br/><br/>.............................................<br/> AFAS of Accreditation Number<br /><?php echo $rowu[code];?></td>		
                    <td width="40%" align="center">&nbsp;</td>	
                </tr>
            </table>
        
        </td>
     </tr>
     <tr>
     	<td align="left"> N.B. : No Liability attached to the certifying company or its representatives with respect to this cerlificate, Consignment details as declared by
shipper or his shipping agent </td>
     </tr>
     
     
     
     <!--
      <tr><td>Place and Date:&nbsp;<? 
		//echo $_SESSION['city'];
		/*if($_SESSION['city']=="ludhiana")
		{
		echo "LUDHIANA";
		}
		else if($_SESSION['city']=="amritser")
		{
		echo "AMRITSAR";
		};*/?> &nbsp;&nbsp;<?php echo"$_GET[issuedate]";?></td></tr>
        
        
        
		  <tr>
			<td>
		<br><br>Signature<br>
		Name of Accredited Fumigation Operator: <?php echo $rowu[name];?><br>
		DPPQS Accreditation No.:<strong><?php echo $rowu[code];?></strong><br>
			  </td>
		  </tr>
			<tr>
			<td   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>


PK 99