PK

ADDRLIN : /home/anibklip/vpgldh.com/2019-20bk/webmanager/
FLL :
Current File : /home/anibklip/vpgldh.com/2019-20bk/webmanager/certificate-aqis-confirm.php

<?php 
	include "templatic/head.php"; 
	include "templatic/header.php";
?>
<div class="box">

<h2>Certificate Details</h2>

<div style="padding:0px 10px;">

<?php
$_SESSION['form_data']='good2go';

$clntid = $_POST['clntid'];
$sql="SELECT parhead FROM parties Where headid='$clntid'";
$result=mysql_query($sql) or die('Error in getting client type');
while($row=mysql_fetch_array($result))
{
$cmntz="{$row['parhead']}";
}
?>
<!-- <form action="certificate-aqis-invoicebill.php" method="post"> -->
<form action="certificate-invoicebill.php" method="post">
<input type="hidden" name="formno" value="<?php echo $_POST['formno']; ?>">
<input type="hidden" name="subc_id" value="<?php echo $_POST['subc_id']; ?>">
<input type="hidden" name="dtype" value="<?php echo $_POST['dtype']; ?>">
<input type="hidden" name="sub_c" value="<?php echo $_POST['sub_c']; ?>">
<input type="hidden" name="clntid" value="<?php echo $_POST['clntid']; ?>">
<input type="hidden" name="clntid2" value="<?php echo $_POST['clntid2']; ?>">
<input type="hidden" name="issuedate" value="<?php echo $_POST['issuedate']; ?>">
<input type="hidden" name="desgood" value="<?php echo $_POST['desgood']; ?>">
<input type="hidden" name="quantitydeclared" value="<?php echo $_POST['quantitydeclared']; ?>">
<input type="hidden" name="distmarks" value="<?php echo $_POST['distmarks']; ?>">
<input type="hidden" name="conslinkno" value="<?php echo $_POST['conslinkno']; ?>">
<input type="hidden" name="portcountry" value="<?php echo $_POST['portcountry']; ?>">
<input type="hidden" name="countrydes" value="<?php echo $_POST['countrydes']; ?>">
<input type="hidden" name="declentry" value="<?php echo $_POST['declentry']; ?>">
<input type="hidden" name="namefumigant" value="<?php echo $_POST['namefumigant']; ?>">
<input type="hidden" name="datefumigantion" value="<?php echo $_POST['datefumigantion']; ?>">
<input type="hidden" name="placefumigantion" value="<?php echo $_POST['placefumigantion']; ?>">
<input type="hidden" name="dosagefumigant" value="<?php echo $_POST['dosagefumigant']; ?>">
<input type="hidden" name="durationfumigantion" value="<?php echo $_POST['durationfumigantion']; ?>">
<input type="hidden" name="airtemp" value="<?php echo $_POST['airtemp']; ?>">
<input type="hidden" name="contype" value="<?php echo $_POST['contype']; ?>">
<!--
<input type="hidden" name="airspace" value="<?php echo $_POST['airspace']; ?>">
<input type="hidden" name="presstest" value="<?php echo $_POST['presstest']; ?>">
-->
<input type="hidden" name="discharge" value="<?php echo $_POST['discharge']; ?>">
<input type="hidden" name="enclosure" value="<?php echo $_POST['enclosure']; ?>">
<input type="hidden" name="commodity" value="<?php echo $_POST['commodity']; ?>">
<input type="hidden" name="consignment" value="<?php echo $_POST['consignment']; ?>">
<input type="hidden" name="wrapping" value="<?php echo $_POST['wrapping']; ?>">
<input type="hidden" name="perforated" value="<?php echo $_POST['perforated']; ?>">
<input type="hidden" name="height" value="<?php echo $_POST['height']; ?>">
<input type="hidden" name="cmntz" value="<?php echo"$cmntz";?>">
<input type="hidden" name="nameship" value="<?php echo $_POST['nameship']; ?>">
<input type="hidden" name="deck" value="<?php echo $_POST['deck']; ?>">
<input type="hidden" name="days" value="<?php echo $_POST['days']; ?>">
<input type="hidden" name="addition" value="<?php echo $_POST['addition']; ?>">
<input type="hidden" name="consignment_link" value="<?php if(isset($_POST['consignment_link']) && $_POST['consignment_link']!=""){ echo $_POST['consignment_link']; }else{ echo "N/A"; } ?>">
<input type="hidden" name="container20feet" value="<?php echo $_POST['container20feet']; ?>" >
<input type="hidden" name="container40feet" value="<?php echo $_POST['container40feet']; ?>" >
<input type="hidden" name="container40HC" value="<?php echo $_POST['container40HC']; ?>" >
<input type="hidden" name="containerLCL" value="<?php echo $_POST['containerLCL']; ?>" >

<input type="hidden" name="ajtname" value="<?php echo $_POST['ajtname']; ?>">

<table align="center" width="100%" border="0">
<tr><td align="left" colspan="6"><strong>DPPQS Registration No</strong>:074 MB</td></tr>
<tr>
<td colspan="3">Treatment Certificate No.: <em>Auto assigned</em></td>
<td align="center" colspan="3">Date of Issue: <?php echo $_POST['issuedate']; ?></td>
</tr>
<td colspan="6" class="safe">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="2">Desription of goods:</td><td width="15%"><?php echo $_POST['desgood']; ?></td>
	<td align="right" colspan="2">Quantity declared:</td><td width="15%"><?php echo $_POST['quantitydeclared']; ?></td></tr>
	<tr><td align="left" colspan="2">Invoice No:</td><td><?php echo $_POST['distmarks']; ?></td>
	<td align="right" colspan="2">Consignment Link/Container No.</td><td><?php echo $_POST['conslinkno']; ?></td></tr>
	<tr><td align="left" colspan="2">Port & country of loading:</td><td><?php echo $_POST['portcountry']; ?></td>
	<td align="right" colspan="2">Name of the Vessel/Ship:</td><td><?php echo $_POST['nameship']; ?></td></tr>
	<tr><td align="left" colspan="2">Country of Destination:</td><td><?php echo $_POST['countrydes']; ?></td>
	<td align="right" colspan="2">Quantity declared:</td><td><?php echo $_POST['declentry']; ?></td>
</tr>	

<tr><td colspan="6"><strong>DETAILS OF PARTIES</strong></td></tr>    
<tr>
<td valign="top" colspan="3">
<strong>Name and address of Consignor/Exporter</strong>:<br/>
<?php 
client_details($_POST['clntid']);
?>
</td>
<td colspan="3">
<strong>Name and address of Consignee/Importer</strong>:<br/>
<?php 
client_details($_POST['clntid2']);
?>
</td>
</tr>
 
	<tr><td colspan="6"><strong>DETAILS OF TREATMENT</strong></td></tr>
	<tr><td width="15%">Name of fumigant:</td><td width="15%"><?php echo $_POST['namefumigant']; ?></td>
	<td>Date of fumigant:</td><td width="15%"><?php echo $_POST['datefumigantion']; ?></td>
	<td width="15%">Place of fumigant:</td><td width="15%"><?php echo $_POST['placefumigantion']; ?></td>
	</tr>
     <tr><td width="30%">Dosage rate of fumigant:</td><td width="15%"><?php echo $_POST['dosagefumigant']; ?></td>
	<td>Duration of fumigant:</td><td width="15%"><?php echo $_POST['durationfumigantion']; ?></td>
	<td width="30%">Minimum Air temperature:</td><td width="15%"><?php echo $_POST['airtemp']; ?></td>
	</tr>
	
    <tr><td colspan="3">Fumigation has been performed in a container/under gas tight enclosure/sheet:</td>
	<td align="center" colspan="3">
	<?php
	 if($_POST['contype']=='No')
	 {
	$contype = $_POST['contype'];
	 echo "<del> Yes </del>   &nbsp;<b>$contype</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['contype']=='Yes')
	 {
	$contype = $_POST['contype'];
	 echo"<b>$contype</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$contype = $_POST['contype'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$contype</b>";
	 }
	 ?>
	</td></tr>
        
<!--	<tr>
	<td colspan="3">Containser pressure tets conducted:</td>

	<td align="center" colspan="3"><?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="3">Containser has 200mm free air space at top ofcontainer:</td>
	<td align="center" colspan="3">
	<?php
	 if($_POST['airspace']=='No')
	 {
	$airspace = $_POST['airspace'];
	 echo"<del> Yes </del>   &nbsp;<b>$airspace</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['airspace']=='Yes')
	 {
	$airspace = $_POST['airspace'];
	 echo"<b>$airspace</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$airspace = $_POST['airspace'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$airspace</b>";
	 }
	 ?>
	</td></tr>
-->
	<tr><td colspan="3">In transit Fumigation-needs Ventillated at port of discharge:</td>
	<td align="center" colspan="3"><?php
	 if($_POST['discharge']=='No')
	 {
	$discharge = $_POST['discharge'];
	 echo"<del> Yes </del>   &nbsp;<b>$discharge</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['discharge']=='Yes')
	 {
	$discharge = $_POST['discharge'];
	 echo"<b>$discharge</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$discharge = $_POST['discharge'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$discharge</b>";
	 }
	 ?>
	</td>
	</tr>
	<tr><td colspan="3">Container/Enclosure has been Ventilated to below 5ppm v/v menthyl Bromide:</td>
	<td align="center" colspan="3"><?php
	 if($_POST['enclosure']=='No')
	 {
	$enclosure = $_POST['enclosure'];
	 echo"<del> Yes </del>   &nbsp;<b>$enclosure</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['enclosure']=='Yes')
	 {
	$enclosure = $_POST['enclosure'];
	 echo"<b>$enclosure</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$enclosure = $_POST['enclosure'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$enclosure</b>";
	 }
	 ?>
	</td>
	</tr>
	<tr><td colspan="6"><strong>WRAPPING AND TIMER</strong></td></tr>
	<tr><td colspan="3">Has the commodity has fumigated prior to lacquering,varnishing,painting or wrapping?</td>
	<td align="center" colspan="3"><?php
	 if($_POST['commodity']=='No')
	 {
	$commodity = $_POST['commodity'];
	 echo"<del> Yes </del>   &nbsp;<b>$commodity</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['commodity']=='Yes')
	 {
	$commodity = $_POST['commodity'];
	 echo"<b>$commodity</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$commodity = $_POST['commodity'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$commodity</b>";
	 }
	 ?>
	</td>
	</tr>
    <tr><td colspan="3">Has plastic wrapping been used in the consignment?:</td>
	<td align="center" colspan="3"><?php
	 if($_POST['consignment']=='No')
	 {
	$consignment = $_POST['consignment'];
	 echo"<del> Yes </del>   &nbsp;<b>$consignment</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['consignment']=='Yes')
	 {
	$consignment = $_POST['consignment'];
	 echo"<b>$consignment</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$consignment = $_POST['consignment'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$consignment</b>";
	 }
	 ?>
	</td>
    </tr>
	<tr><td colspan="3">If Yes,has the consignment been fumigated prior to wrapping?:</td>
	<td align="center" colspan="3">
	<?php
	 if($_POST['wrapping']=='No')
	 {
	$wrapping = $_POST['wrapping'];
	 echo"<del> Yes </del>   &nbsp;<b>$wrapping</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['wrapping']=='Yes')
	 {
	$wrapping = $_POST['wrapping'];
	 echo"<b>$wrapping</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$wrapping = $_POST['wrapping'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$wrapping</b>";
	 }
	 ?>
	</td>
	</tr>
	<tr><td colspan="3">Or has the plasstic wrapping been slashed,open or perforated
	<br> in accordance with the wrapping and perfortion standard?</td>
	<td align="center" colspan="3"><?php
	 if($_POST['perforated']=='No')
	 {
	$perforated = $_POST['perforated'];
	 echo"<del> Yes </del>   &nbsp;<b>$perforated</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['perforated']=='Yes')
	 {
	$perforated = $_POST['perforated'];
	 echo"<b>$perforated</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$perforated = $_POST['perforated'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$perforated</b>";
	 }
	 ?>
	</td></tr>
	<tr><td colspan="3">Is the timber in this consignment less than 200mm thick in <br>
	one dimension and correctly spaced every 200mm in height</td>
	<td align="center" colspan="3"><?php
	 if($_POST['height']=='No')
	 {
	$height = $_POST['height'];
	 echo"<del> Yes </del>   &nbsp;<b>$height</b>&nbsp;  <del> N/A </del>";
	 }
	 elseif($_POST['height']=='Yes')
	 {
	$height = $_POST['height'];
	 echo"<b>$height</b>  &nbsp;<del> No </del>&nbsp; <del> N/A </del>";
	 }
	 else
	 {
	$height = $_POST['height'];
	 echo"<del> Yes </del> &nbsp;<del>  No </del>&nbsp; <b>$height</b>";
	 }
	 ?>
	</td></tr>
	<?php
	if(isset($_POST['addition']) && $_POST['addition']=='')
	{
	echo"";
	}
	else
	{
	$deck = $_POST['deck'];
echo "<tr>
<td colspan=6><strong>ADDITION DECLERATION:</strong><br></td></tr>
<tr><td colspan='6' class='safe'>$deck<br><br>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>";
}
$days=$_POST['days'];
?>
<tr>
<td colspan="2">Shipped Within:</td>
<td colspan="4"><?php echo $days; ?> &nbsp&nbsp days from the date of fumigation.</td>
</tr>
<tr>	
        <td colspan="6"> <b>Number of Containers</b>   </td>
      </tr>
     
      <tr>	
        <td colspan="6">&nbsp; &nbsp; 20&rsquo;&nbsp; &nbsp; &nbsp; &nbsp; <?=$_POST['container20feet'];?> <br /><br />
         &nbsp; &nbsp; 40&rsquo; &nbsp; &nbsp; &nbsp; &nbsp;<?=$_POST['container40feet'];?> <br /><br />
         &nbsp; &nbsp;  40HC &nbsp; &nbsp; <?=$_POST['container40HC'];?> <br /><br />
         &nbsp; &nbsp; LCL &nbsp; &nbsp; &nbsp; <?=$_POST['containerLCL'];?> <br /><br />
        
        
        </td>
      </tr>
<tr>
<td colspan="3" align="right">Agent Name:</td>
<td colspan="3" align="center"><?php echo $_POST['ajtname']; ?>
<?php
	if($_POST['ajtname']!=''){
	
	echo $_POST['ajtname'];
	} 
	else {
	echo "n/a";
	}
	?>
</td></tr> 

<?php
//if(isset($_POST['subc_id']) && $_POST['subc_id']!=''){
//echo "";
//}
//else{

?>
<tr><td colspan="6"><strong>INVCOICE DETAILS</strong></td></tr>
<tr><td colspan="3" align="right">Amount :</td><td align="center" colspan="3">Rs. <?php echo round($_POST['amount'], 2); ?>/-</td></tr>

<tr><td colspan="3" align="right">Discount:<i>(
<?php 
if(isset($_POST['discount']) && $_POST['discount']==''){
echo "n/a";
}
else{
$discount = round($_POST['discount'], 2);
echo "$discount %"; 
} 
?>
)</i></td>
	<td colspan="3" align="center">
	<?php
	if($_POST['discount']!=''){
	$fdiscount=round($_POST['amount']*$_POST['discount']/100, 2);
	echo "Rs. $fdiscount /-";
	} 
	else {
	echo "n/a";
	$fdiscount=$_POST['amount']*$_POST['discount']/100;
	}
	?>
</td></tr>
	
	<tr><td colspan="3" align="right">GST :<i>(
<?php 
if(isset($_POST['stax']) && $_POST['stax']=='yes'){
$srtax = $_POST['srtax']; 
echo "$srtax %";
}
else{
echo "n/a";
} 
?>
)</i></td>
<td colspan="3" align="center"> 
	<?php
	if(isset($_POST['stax']) && $_POST['stax']=='yes'){
	$fgrandtotal=$_POST['amount']-$fdiscount;
	$staxnet=round($fgrandtotal*$_POST['srtax']/100, 2);
	echo"Rs. $staxnet /-";
	} 
	else {
	$staxnet=0;
	echo "n/a";
	}
	?>
</td></tr>
	<?php
	$fgrandtotal=$_POST['amount']-$fdiscount;
	$finalone=round($fgrandtotal+$staxnet, 2);
	 ?>
	<tr><td align="right" colspan="3"><strong>Grand Total :</strong></td><td colspan="3" align="center">Rs. <?php echo"<strong>$finalone</strong>";?>/-
	</td></tr>
<?php
//}
?>
<tr><td colspan="6" align="center"><br><center><input type="submit" class="amo-submit" value=">> Proceed to Checkout >>"></center><br></td></tr>

<?php 
if(isset($_POST['stax']) && $_POST['stax']=='yes'){
$srtax=$_POST['srtax'];
} 
else{
$srtax=0;
}
?>


<!- Invoice ->
<input type="hidden" name="amount" value="<?php echo $_POST['amount']; ?>" >
<input type="hidden" name="discount" value="<?php echo $fdiscount; ?>" >
<input type="hidden" name="srtax" value="<?php echo $staxnet; ?>" >
<input type="hidden" name="finalone" value="<?php echo $finalone; ?>">
<!- End Invoide Data ->
	</form>
	</table>
</div>			
</div>
<?php
	include "templatic/footer.php";
?>


PK 99