PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2019/form/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2019/form/conform_alp.php

<?php
	session_start();
	require_once '../common/common.php';
	require_once '../common/secure.php';
	include("../connexion.php");
	include"../head.php";

	$_SESSION['form']='inserted';
$sql="SELECT parhead FROM head Where headid='$_GET[clntid]'";
$result=mysql_query($sql) or die('error in getting client type');
while($row=mysql_fetch_array($result))
{
$cmntz="{$row['parhead']}";
}
?>

<table cellspacing="3" align="center" width="100%" border="0" cellpadding="3">
<form action="insert_alp.php" method="get">
<input type="hidden" name="clntid" value="<?php echo"$_GET[clntid]";?>">
<input type="hidden" name="nameaddress" value="<?php echo"$_GET[nameaddress]";?>">
<input type="hidden" name="declarednameaddress" value="<?php echo"$_GET[declarednameaddress]";?>">
<input type="hidden" name="dtype" value="<?php echo"$_GET[dtype]";?>">
<input type="hidden" name="certno" value="<?php echo"$_GET[certno]";?>">
<input type="hidden" name="dat" value="<?php echo"$_GET[dat]";?>">
<input type="hidden" name="invoice" value="<?php echo"$_GET[invoice]";?>">
<input type="hidden" name="desc" value="<?php echo"$_GET[desc]";?>">
<input type="hidden" name="pack" value="<?php echo"$_GET[pack]";?>">
<input type="hidden" name="vessel" value="<?php echo"$_GET[vessel]";?>">
<input type="hidden" name="convey" value="<?php echo"$_GET[convey]";?>">
<input type="hidden" name="destinat" value="<?php echo"$_GET[destinat]";?>">
<input type="hidden" name="chem" value="<?php echo"$_GET[chem]";?>">
<input type="hidden" name="dosage" value="<?php echo"$_GET[dosage]";?>">
<input type="hidden" name="temp" value="<?php echo"$_GET[temp]";?>">
<input type="hidden" name="durat" value="<?php echo"$_GET[durat]";?>">
<input type="hidden" name="Dfumigation" value="<?php echo"$_GET[Dfumigation]";?>">
<input type="hidden" name="remark" value="<?php echo"$_GET[remark]";?>">
<input type="hidden" name="ajtname" value="<?php echo"$_GET[ajtname]";?>">
<input type="hidden" name="cmntz" value="<?php echo"$cmntz";?>">
<input type="hidden" name="particular" value="<?php echo"$_GET[particular]";?>">
<input type="hidden" name="sub_c" value="<?php echo"$_GET[sub_c]";?>">


 
<input type="hidden" name="consignment_link" value="<?php if(isset($_GET['consignment_link']) && $_GET['consignment_link']!=""){ echo $_GET['consignment_link']; }else{ echo "N/A"; } ?>">
<input type="hidden" name="container20feet" value="<?php echo"$_GET[container20feet]";?>" >
<input type="hidden" name="container40feet" value="<?php echo"$_GET[container40feet]";?>" >
<input type="hidden" name="container40HC" value="<?php echo"$_GET[container40HC]";?>" >
<input type="hidden" name="containerLCL" value="<?php echo"$_GET[containerLCL]";?>" >

   <tr>
      <td valign="top" colspan="4"> <center><h3> CERTIFICATE OF FUMIGATION <h3></td>
    </tr>  
<tr>
<td valign="top" colspan="4"><strong>Dte PPQS Regd.No.104/MB</strong></td></tr>
      
<td valign="top" colspan="2"><strong>Treatment Certificate No.</strong>:<em>Auto assigned</em></td>
<td valign="top" colspan="2"><?php echo "$_GET[dat]"; ?></td>
</tr>
			
	<tr><td colspan="4">  &nbsp;This is to certify that consignment has been treated as per details listed below and that
	 subject consigenmentis believed  <br>  &nbsp; &nbsp;to be substantially free from any  injurious pests.</td></tr>  		

   <?php
    	if(isset($_GET['dtype'])  && $_GET['dtype']=="export" ){ 
	
	?>
    
    <tr><td align="left" colspan="3"><b>Name and address of consignor/exporter</b>:</td><td align="center" colspan="3">
	<?php 
		
		$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$_GET[nameaddress]."'";
		$resultHeadAddress=mysql_query($sqlHeadQuery) or die('error in getting Sub client details');
		$resultHeadAddress1=mysql_fetch_array($resultHeadAddress);
		echo $resultHeadAddress1['headname']."<br/>".$resultHeadAddress1['headaddress'];
	?>
	</td></tr>
	<br>
	<tr><td colspan="3"><b>Declared name & address of consignee</b>:</td><td align="center" colspan="3">
	<?php 
		$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$_GET[declarednameaddress]."'";
		$resultClientAddress=mysql_query($sqlClientQuery) or die('error in getting Sub client details');
		$resultClientAddress1=mysql_fetch_array($resultClientAddress);
		echo $resultClientAddress1['subname'].",<br/>".$resultClientAddress1['subaddress'];
	
	
		
 	?></td></tr>
    
    <?php
    	}else{
	?>
		
       <tr><td align="left" colspan="3"><b>Name and address of consignor/exporter</b>:</td><td align="center" colspan="3">
		<?php 
		$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$_GET[nameaddress]."'";
		$resultClientAddress=mysql_query($sqlClientQuery) or die('error in getting Sub client details');
		$resultClientAddress1=mysql_fetch_array($resultClientAddress);
		echo $resultClientAddress1['subname'].",<br/>".$resultClientAddress1['subaddress'];
	
	?>
	
	</td></tr>
	<br>
	<tr><td colspan="3"><b>Declared name & address of consignee</b>:</td><td align="center" colspan="3">

    
    <?php 
		$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$_GET[declarednameaddress]."'";
		$resultHeadAddress=mysql_query($sqlHeadQuery) or die('error in getting Sub client details');
		$resultHeadAddress1=mysql_fetch_array($resultHeadAddress);
		echo $resultHeadAddress1['headname']."<br/>".$resultHeadAddress1['headaddress'];
		
 	?>
	</td></tr>
        
        
	<?php	
		}
	
	?>
<td valign="top"  colspan="2"><strong>Invoice No</strong>:</td><td colspan="2"><?php echo "$_GET[invoice]";?></td>
</tr>
<tr>
<td valign="top"  colspan="2"><strong>Description of Consigenment</strong>:</td><td colspan="2"><?php echo "$_GET[desc]";?></td>
</tr>
<tr>
<td valign="top"  colspan="2"><strong>Type and No. of Packges</strong>:</td><td colspan="2"><?php echo "$_GET[pack]";?></td>
</tr>
<tr>
<td valign="top"  colspan="2"><strong>Container No. or Vessel</strong>:</td><td colspan="2"><?php echo "$_GET[vessel]";?></td>
</tr>

<tr>
<td valign="top"  colspan="2"><strong>Means of Conveyance</strong>:</td><td colspan="2"><?php echo "$_GET[convey]";?></td>
</tr>

<tr>
<td valign="top"  colspan="2"><strong>Destination Port</strong>:</td><td colspan="2"><?php echo "$_GET[destinat]";?></td>
</tr>
<br>
<tr><td valign="top"  colspan="4">  <center> <h3> SCHEDULE OF TREATMENT  </h3></center> </td></tr>  
<BR>
<tr>
<td valign="top"  colspan="2"><strong>Chemical(Fumigant)</strong>:</td><td colspan="2"><?php echo "$_GET[chem]";?></td>
</tr>
<tr>
<td valign="top"  colspan="2"><strong>Dosage</strong>:</td><td colspan="2"><?php echo "$_GET[dosage]";?></td>
</tr>
<tr>
<td valign="top"  colspan="2"><strong>Temperature</strong>:</td><td colspan="2"><?php echo "$_GET[temp]";?></td>
</tr>

<tr>
<td valign="top"  colspan="2"><strong>Duration of Exposure</strong>:</td><td colspan="2"><?php echo "$_GET[durat]";?></td>
</tr>

<tr>
<td valign="top"  colspan="2"> <strong>Date of Fumigation</strong>:</td><td colspan="2"><?php echo "$_GET[Dfumigation]";?></td>
</tr>


<tr>
<td valign="top"  colspan="2"><strong>Remark</strong>:</td><td colspan="2"><?php echo "$_GET[remark]";?></td>
</tr>
<!-- <tr>
<td valign="top"  colspan="2"><strong>Encloser Area of Fumigation</strong>:</td><td colspan="3"><?=$_GET['container20feet'];?> Cubic meters</td>
</tr> -->
<tr>
<td valign="top"  colspan="2"></td><td colspan="3"></td>
</tr>
<hr>
<hr>	 
	   <br />
<br />
<tr><td colspan="4" align="center"><center><strong>INVCOICE DETAILS</strong></center></td></tr>
	<tr><td colspan="2" align="right">Fumigation Amount :</td><td align="center" colspan="2">Rs. <?php echo"$_GET[famount]";?>/-</td></tr>
	<tr><td colspan="2" align="right">Travel Amount :</td><td align="center" colspan="2">Rs. <?php echo"$_GET[tamount]";?>/-</td></tr>
	<tr><td colspan="2" align="right">Miscellaneous Amount :</td><td align="center" colspan="2">Rs. <?php echo"$_GET[mamount]";?>/-</td></tr>
<?php
$famount = $_GET['famount'];
$tamount = $_GET['tamount'];
$mamount = $_GET['mamount'];

$amount = $famount+$tamount+$mamount;
?>
	<tr><td colspan="2" align="right">Discount:<i>(<?php if($_GET[discount]=='0'){echo"n/a";} else {echo "$_GET[discount] %";} ?>)</i></td>
	<td colspan="2" align="center">
	<?php if($_GET[discount]!='0'){
	$fdiscount=$amount*$_GET[discount]/100;
	echo"Rs. $fdiscount /-";
	} 
	else {
	echo "n/a";
	}?></td></tr>
	
	<tr><td colspan="2" align="right">ServiceTax :<i>(<?php if($_GET[stax]=='yes'){echo"$_GET[srtax] %";} else {echo "n/a";}?>)</i></td><td colspan="2" align="center"> 
    <?php if($_GET[stax]=='yes'){
	$fgrandtotal=$amount-$fdiscount;
	$staxnet=$fgrandtotal*$_GET[srtax]/100;
	echo"Rs. $staxnet /-";
	} 
	else {
	$staxnet=0;
	echo "n/a";
	}?></td></tr>
	<?php
	$fgrandtotal=$amount-$fdiscount;
	$finalone=$fgrandtotal+$staxnet;
	 ?>
	<tr><td align="right" colspan="2"><strong>Grand Total :</strong></td><td colspan="2" align="center">Rs. <?php echo"<strong>$finalone</strong>";?>/-
	</td></tr>
<tr><td colspan="4" align="center"><br><center> <a href="certificate.php"><span style="margin-right:100px;">Cancel</span></a>
      <input type="submit" class="amo-submit" value=">> Proceed to Checkout >>"></center><br></td></tr>


<?php if($_POST[stax]=='yes'){
	$srtax="$_POST[srtax]";
	} 
	else {
	$srtax=0;
	}?>
	
<input type="hidden" name="finalone" value="<?php echo"$finalone";?>">
<input type="hidden" name="amount" value="<?php echo"$amount";?>">
<input type="hidden" name="qty" value="<?php echo $_POST[qty];?>">

<input type="hidden" name="famount" value="<?php echo"$famount";?>">
<input type="hidden" name="tamount" value="<?php echo"$tamount";?>">
<input type="hidden" name="mamount" value="<?php echo"$mamount";?>">

<input type="hidden" name="discount" value="<?php echo"$_POST[discount]";?>">
<input type="hidden" name="srtax" value="<?php echo"$_POST[srtax]";?>">
<input type="hidden" name="stax" value="<?php echo"$_POST[stax]";?>">
	</form>
</table>
<br>
</form>

<?php
include"../foot.php";
?>


PK 99