PK

ADDRLIN : /home/anibklip/pcfcindia.com/19-20/form/
FLL :
Current File : /home/anibklip/pcfcindia.com/19-20/form/confirmform_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='$_POST[clntid]'";
$result=mysql_query($sql) or die('error in getting client type');
while($row=mysql_fetch_array($result))
{
$cmntz="{$row['parhead']}";
}
?>
CONFIRM CERTIFICATE DETAILS > > Step 2 of 3 


<form action="insert_alp.php" method="post" onsubmit="return checkform(this);">
	<input type="hidden1" name="ajtname" value="<?php echo $_POST[ajtname];?>" />
	<input type="hidden" name="formno" value="<?php echo "$_POST[formno]" ;?>" />
	<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="parent_cert" value="<?php echo "$_POST[parent_cert]"; ?>">

	<input type="hidden" name="country" value="<?php echo $_POST['country']; ?>" />
	<input type="hidden" name="namefumigant" value="<?php echo $_POST['namefumigant']; ?>"/>
	<input type="hidden" name="dosagefumigant" value="<?php echo $_POST['dosagefumigant']; ?>"/>
	<input type="hidden" name="fumi_completed" value="<?php echo $_POST['fumi_completed']; ?>" />
	<input type="hidden" name="datefumigantion" class="datepicker" value="<?php echo $_POST['datefumigantion']; ?>" />
	<input type="hidden" name="placefumigantion" value="<?php echo $_POST['placefumigantion']; ?>" />
	<input type="hidden" name="durationfumigantion" value="<?php echo $_POST['durationfumigantion']; ?>" />
	<input type="hidden" name="airtemp" value="<?php echo $_POST['airtemp']; ?>" />
	<input type="hidden" name="gsheet" value="<?php echo $_POST['gsheet']; ?>" />
	<input type="hidden" name="gas_tight_value" value="<?php echo $_POST['gas_tight_value']; ?>" />
	<input type="hidden" name="conslinkno" value="<?php echo $_POST['conslinkno']; ?>" />
	<input type="hidden" name="port" value="<?php echo $_POST['port']; ?>" />
	<input type="hidden" name="vessal" value="<?php echo $_POST['vessal']; ?>" />
	<input type="hidden" name="desc" value="<?php echo $_POST['desc']; ?>" />
	<input type="hidden" name="quantitydeclared" value="<?php echo $_POST['quantitydeclared']; ?>" />
	<input type="hidden" name="packing" value="<?php echo $_POST['packing']; ?>" />
	<input type="hidden" name="brand" value="<?php echo $_POST['brand']; ?>" />
	<input type="hidden" name="decla" value="<?php echo $_POST['decla']; ?>" />
	<input type="hidden" name="distmarks" value="<?php echo $_POST['distmarks']; ?>" />
	<input type="hidden" name="shiper_containerno_shw" value="<?php echo $_POST['shiper_containerno_shw']; ?>" />
	<input type="hidden" name="shiper_containerno" value="<?php echo $_POST['shiper_containerno']; ?>" />
	<input type="hidden" name="consignment_details_shw" value="<?php echo $_POST['consignment_details_shw']; ?>" />
	<input type="hidden" name="consignment_details" value="<?php echo $_POST['consignment_details']; ?>" />
	<input type="hidden" name="container20feet" value="<?php echo $_POST['container20feet']; ?>" />
	<input type="hidden" name="issuedate" class="datepicker" value="<?php echo date('Y-m-d'); ?>">
	<input type="hidden" name="nameaddress" value="<?php echo $_POST[nameaddress];?>">
	<input type="hidden" name="declarednameaddress" value="<?php echo $_POST[declarednameaddress];?>">


	<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
		<tr>
			<td valign="top" colspan="8">
				<center><h3> FUMIGATION CERTIFICATE - ALP</h3></center>
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Dte PPQS Regd.No.:136/ALP</td>
			<td valign="top" colspan="4"></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Treatment Certificate No.:
				<em>Auto assigned</em>
			</td>
			<td colspan="4"> Date: <?php echo date('Y-m-d'); ?></td>
		</tr>

		<tr>
			<td align="left" colspan="7"><strong><font color="#339933">PARTY DETAILS:</font> </strong></td>
		</tr>
		
		
		<?php
		if(isset($_POST['dtype']) && $_POST['dtype']=='export' ){
			?>
			<tr>
				<td align="left" colspan="4">Name and address of consignor/exporter:</td>
				<td align="center" colspan="3">
					<?php 
					$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$_POST[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>
			<tr>
				<td colspan="4">Name & address of consignee:</td>
				<td align="center" colspan="3">
					<?php
					$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$_POST[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">Name and address of consignor/exporter:</td>
				<td align="center" colspan="3">
					<?php 
						$sqlClientQuery="SELECT subname,subaddress From clients WHERE subid='".$_POST[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>
			<tr>
				<td colspan="3">Name & address of consignee:</td>
				<td align="center" colspan="3">
					<?php
						$sqlHeadQuery="SELECT headname,headaddress From head WHERE headid='".$_POST[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
		}
		?>

		<tr>
			<td valign="top" colspan="4">Country</td>
			<td colspan="4"><?php echo $_POST['country']; ?></td>
		</tr>
		<tr>
			<td colspan="8" align="center">
				<hr>
				<font color="#339933"><strong>DETAILS OF TREATMENT:</strong></font>
			</td>
		</tr>
		<tr>
			<td colspan="2">Name of fumigation:<br></td>
			<td colspan="2">
				<?php echo $_POST['namefumigant']; ?>
			</td>
			<td colspan="2">Dosage rate of fumigation:<br></td>
			<td colspan="2">
				<?php echo $_POST['dosagefumigant']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="3" nowrap>
				Date of Fumigation:
				<?php echo $_POST['fumi_completed']; ?>
				<?php echo $_POST['datefumigantion']; ?>
			</td>
			<td colspan="2">Place of Fumigation:</td>
			<td colspan="2">
				<?php echo $_POST['placefumigantion']; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2">Duration of Exposure:<br></td>
			<td colspan="2">
				<?php echo $_POST[durationfumigantion]; ?>
			</td>
		</tr>

		<tr>
			<td valign="top" colspan="2">Humidity During Fumigation:</td>
			<td colspan="2"><?php echo $_POST['airtemp']; ?></td>
			<td valign="top" colspan="2">Fumigation Performed under Gastight Sheets:</td>
			<td colspan="2"><?php echo $_POST['gsheet']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="6">Average ambient temperature during fumigation (Deg. C.):</td>
			<td colspan="2"><?php echo $_POST['gas_tight_value']; ?></td>
		</tr>
		<tr>
			<td colspan="8" align="center"><strong>Descripition of Goods</strong></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Container Number(or Numerical Link)./ Seal Number:</td>
			<td colspan="4"><?php echo $_POST['conslinkno']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Port of Discharge:</td>
			<td colspan="4"><?php echo $_POST['port']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Vessal Name:</td>
			<td colspan="4"><?php echo $_POST['vessal']; ?></td>
		</tr>
		<!-- <tr>
			<td valign="top" colspan="4">Name & Address Of Exporter:</td>
			<td colspan="4"><?php echo"$_POST[clntid]";?></td>
		</tr> -->
		<tr>
			<td valign="top" colspan="4">Type and Description of Cargo:</td>
			<td colspan="4"><?php echo $_POST['desc']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Quantity(MTS)/No Of Packages/No Of Pieces:</td>
			<td colspan="4"><?php echo $_POST['quantitydeclared']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Description Of Packing Material:</td>
			<td colspan="4"><?php echo $_POST['packing']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Shipping marks or Brand:</td>
			<td colspan="4"><?php echo $_POST['brand']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Additional Declaration:</td>
			<td colspan="4"><?php echo $_POST['decla']; ?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Distinguishing Mark:</td>
			<td colspan="4"><?php echo $_POST[distmarks]?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">
				<input type="checkbox" disabled <?php echo ($_POST[shiper_containerno_shw]?"checked":"")?> /> 
				As per shipper Cargo is Loaded in Container No:
			</td>
			<td colspan="4"><?php echo $_POST[shiper_containerno]?></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">
				<input type="checkbox" disabled <?php echo ($_POST[consignment_details_shw]?"checked":"")?> />
				Consignment details as declared by the Exporter:
			</td>
			<td colspan="4"><?php echo $_POST[consignment_details]?></td>
		</tr>
		<tr>
			<td valign="top" colspan="8" align="center">P.S.No Liability to the Certifying or Its proprietors or repersentative with Respect to this Certificate.</td>
		</tr>


		<tr>
			<td valign="top" colspan="4"><strong>Encloser Area of Fumigation</strong>:</td>
			<td colspan="4"><?php echo $_POST['container20feet']; ?> Cubic meters</td>
		</tr>

		<tr>
			<td colspan="8" align="right">
				<center>
					<strong>MAKE INVOICE:</strong>
				</center>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<center><strong>INVCOICE DETAILS</strong></center>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">Fumigation Amount :</td>
			<td align="center" colspan="3">Rs. <?php echo"$_POST[famount]";?>/-</td>
		</tr>
		<tr>
			<td colspan="4" align="right">Travel Amount :</td>
			<td align="center" colspan="3">Rs. <?php echo"$_POST[tamount]";?>/-</td>
		</tr>
		<tr>
			<td colspan="4" align="right">Miscellaneous Amount :</td>
			<td align="center" colspan="3">Rs. <?php echo"$_POST[mamount]";?>/-</td>
		</tr>
		<?php
			$famount = $_POST['famount'];
			$tamount = $_POST['tamount'];
			$mamount = $_POST['mamount'];
			$amount = $famount+$tamount+$mamount;
			?>
		<tr>
			<td colspan="4" align="right">Discount:<i>(<?php if($_POST[discount]=='0'){echo"n/a";} else {echo "$_POST[discount] %";} ?>)</i></td>
			<td colspan="3" align="center">
				<?php 
				if($_POST[discount]!='0'){
					$fdiscount=$amount*$_POST[discount]/100;
					echo"Rs. $fdiscount /-";
				}else{
					echo "n/a";
				}
				?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">
				GST :<i>(<?php if($_POST[stax]=='yes'){echo"$_POST[srtax] %";} else {echo "n/a";}?>)</i>
			</td>
			<td colspan="3" align="center"> 
				<?php
				if($_POST[stax]=='yes'){
					$fgrandtotal=$amount-$fdiscount;
					$staxnet=$fgrandtotal*$_POST[srtax]/100;
					echo"Rs. $staxnet /-";
				} else {
					$staxnet=0;
					echo "n/a";
				}
				?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">No. of Container:</td>
			<td colspan="3" align="center"> 
				<?php echo $_POST[qty];?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">IGST:</td>
			<td colspan="3" align="center"> 
				<?php echo $_POST[gst_combine];?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">Name of Product/Service:</td>
			<td colspan="3" align="center"> 
				<?php echo $_POST[product];?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">HSN ACS:</td>
			<td colspan="3" align="center"> 
				<?php echo $_POST[hsn];?>
			</td>
		</tr>
		<tr>
			<td colspan="4" align="right">UOM:</td>
			<td colspan="3" align="center"> 
				<?php echo $_POST[uom];?>
			</td>
		</tr>
		<?php
		$fgrandtotal=$amount-$fdiscount;
		$finalone=$fgrandtotal+$staxnet;
		 ?>
		<tr>
			<td align="right" colspan="4"><strong>Grand Total :</strong></td>
			<td colspan="3" align="center">Rs. <?php echo"<strong>$finalone</strong>";?>/-
			</td>
		</tr>
		<tr>
			<td colspan="7" align="center">
				<br>
				<center><input type="submit" class="amo-submit" value=">> Proceed to Checkout >>"></center>
				<br>
			</td>
		</tr>
	</table>

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

	<input type="hidden" name="product" value="<?php echo $_POST[product];?>">
	<input type="hidden" name="hsn" value="<?php echo $_POST[hsn];?>">
	<input type="hidden" name="uom" value="<?php echo $_POST[uom];?>">

	<input type="hidden" name="finalone" value="<?php echo"$finalone";?>">
	<input type="hidden" name="amount" value="<?php echo"$amount";?>">
	<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]";?>">
	<input name="qty" type="hidden" value="<?php echo $_POST[qty]?>">
</form>

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


PK 99