PK

ADDRLIN : /home/anibklip/pcfcindia.com/2025-26/form/
FLL :
Current File : /home/anibklip/pcfcindia.com/2025-26/form/confirmform_aus_new.php

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

$_SESSION['formfive'] = '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']}";
}

/*echo "<pre>";
print_r($_GET);
echo "</pre>";
*/
?>
CONFIRM CERTIFICATE DETAILS > > Step 2 of 3
<table align="center" width="100%" border="0">
	<form action="insert_aus_new.php" method="get">
		<?php
		if(is_array($_GET)){
			foreach($_GET as $key => $value){
				if($key=="desgood"){
					$value = implode(", ", $_GET['desgood']);
				}
				// echo "<br>$key: ";
				echo "<input type='hidden' name='$key' value='$value' />";
			}
		}
		?>
		<tr>
			<td align="left" colspan="6"><strong>DPPQS Registration No</strong>:104 MB</td>
		</tr>
		<tr>
			<td colspan="2">Treatment Certificate Number:</td>
			<td width="15%"><em>Auto assigned</em></td>
			<td align="right" colspan="2">Date of Issue:</td>
			<td width="24%"><?php echo "$_GET[issuedate]"; ?></td>
		</tr>
		<td colspan="6">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.<BR><BR>
		</td>

		<tr>
			<td align="left" colspan="6">
				<strong> <font color="#339933">Party Details:</font> </strong>
			</td>
		</tr>
		
		<?php
		if (isset($_GET['dtype']) && $_GET['dtype'] == 'export') {
			?>
			<tr>
				<td align="left" colspan="3">Name and address of consignor/exporter:</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>
			<tr>
				<td colspan="3">Name & address of consignee:</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 {
			//Import Address
			?>
			<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='" . $_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>
			<tr>
				<td colspan="3">Name & address of consignee:</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
		}
		?>

		</tr>
			<td align="left" colspan="6"><strong>DETAILS OF GOODS</strong></td>
		</tr>
		<tr>
			<td align="left" colspan="2">Commodity:</td>
			<td><?php echo "$_GET[commodity]"; ?></td>
			<td align="right" colspan="2">Country of origin:</td>
			<td><?php echo "$_GET[portcountry]"; ?></td>
		</tr>
		<tr>
			<td align="right" colspan="2">Quantity Declared:</td>
			<td><?php echo "$_GET[quantitydeclared]"; ?></td>
			<td align="right" colspan="2">Seal number(s) (if applicable):</td>
			<td><?php echo "$_GET[seal_no]";?></td>
		</tr>
		<tr>
			<td align="left" colspan="2">Port of loading:</td>
			<td><?php echo "$_GET[declentry]";?></td>
			<td align="right" colspan="2">Country of destination :</td>
			<td><?php echo "$_GET[countrydes]";?></td>
		</tr>
		<tr>
			<td colspan="2">Target of fumigation:</td>
			<td >
				<div class="checkbox-group">
					<?php echo implode(", ", $_GET['desgood']); ?>

					<div style="display:<?php echo(strpos($_GET['desgood'],"Others")!==false?"block":"none")?>">
						Others: <?php echo "$_GET[desgood_others]";?>
					</div>
				</div>
			</td>
			<td colspan="2">Enclosure Type:</td>
			<td >
				<div class="radio-group">
					<?php echo implode(", ", $_GET['enclosure_type']); ?>
					<div id="enclosure_type_others_div" style="display:<?php echo($_GET['enclosure_type']=="Others"?"block":"none")?>">
						Others: <?php echo "$_GET[enclosure_type_others]";?>
					</div>
				</div>
			</td>
		</tr>
		<tr>
			<td align="right" colspan="2">Consignment link::</td>
			<td><?php echo "$_GET[consignment_link]";?></td>
			<td align="right" colspan="2">Container No:</td>
			<td><?php echo "$_GET[nameship]";?></td>
		</tr>
		<tr>
			<td colspan="6"> <strong><font color="#339933">Treatment Schedule (Prescribed/specified treatment schedule):</font></strong></td>
		</tr>
		<tr>
			<td width="33%" colspan="2">DAFF  dose rate (g/m3): <br>
				<?php echo "$_GET[namefumigant]";?>
			</td>
			<td width="33%" colspan="2">
				Exposure period (hrs): <br>
				<?php echo "$_GET[durationfumigantion]";?>
			</td>
			<td width="33%" colspan="2">
				Forecast minimum temp (C): <br>
				<?php echo "$_GET[airtemp]";?>
			</td>
		</tr>
		<tr>
			<td colspan="6"> <strong><font color="#339933">DETAILS OF TREATMENT:</font></strong></td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Dosage rate of Fumigation: <br>
				<?php echo "$_GET[dosagefumigant_trmnt]";?>
			</td>
			<td width="33%" colspan="2">
				Exposure period (hrs): <br>
				<?php echo "$_GET[durationfumigantion_trmnt]";?>
			</td>
			<td width="33%" colspan="2">
				Forecast minimum temp (C): <br>
				<?php echo "$_GET[airtemp_trmnt]";?>
			</td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Street Address: <br>
				<?php echo "$_GET[streetaddress_trmnt]";?>
			</td>
			<td width="33%" colspan="2">
				Suburb/Town/City: <br>
				<?php echo "$_GET[city_trmnt]";?>
			</td>
			<td width="33%" colspan="2">
				Country: <br>
				<?php echo "$_GET[country_trmnt]";?>
			</td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Postcode: <br>
				<?php echo "$_GET[postcode_trmnt]";?>
			</td>
			<td width="33%" colspan="2">
				Date Fumigation commenced: 
				<?php echo "$_GET[datefumigantion_start]";?>
			</td>
			<td width="33%" colspan="2">
				Time Fumigation commenced: 
				<?php echo "$_GET[timefumigantion_start]";?>
			</td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Date Fumigation Completed: 
				<?php echo "$_GET[datefumigantion_end]";?>
			</td>
			<td width="33%" colspan="2">
				Time Fumigation Completed: 
				<?php echo "$_GET[timefumigantion_end]";?>
			</td>
			<td width="33%" colspan="2">
				Final TLV reading (ppm): <br>
				<?php echo "$_GET[perforated]";?>
			</td>
		</tr>  
		<?php
		if ($_GET['addition'] == '') {
			echo "";
		} else {
			echo "<tr>
				<td colspan=6><hr><strong>ADDITION DECLERATION:</strong><br></td></tr>
				<tr><td colspan=6>
					$_GET[deck]<br>I declare that these details are true and correct 
				and the fumigation has been carried out in accordance with the NSPM -12

			</td></tr>
			</tr>
	  	";
		}
		?>
		<tr>
			<td colspan="6"><hr size="1"></td>
		</tr>
		<tr>
			<td valign="top" colspan="2"><strong>Encloser Area of Fumigation</strong>:</td>
			<td colspan="3"><?php echo $_GET['container20feet']; ?> Cubic meters</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<hr size="1">
				<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">GST:<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>

		<tr>
			<td colspan="2" align="right">No. of Container:</td>
			<td colspan="2" align="center">
				<?php echo $_GET[qty]; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="right">IGST :</td>
			<td colspan="2" align="center">
				<?php echo $_GET[gst_combine]; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="right">Name of Product/Service:</td>
			<td colspan="2" align="center">
				<?php echo $_GET[product]; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="right">HSN ACS:</td>
			<td colspan="2" align="center">
				<?php echo $_GET[hsn]; ?>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="right">UOM:</td>
			<td colspan="2" align="center">
				<?php echo $_GET[uom]; ?>
			</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="6" align="center"><br>
				<center><input type="submit" class="amo-submit" value=">> Proceed to Checkout >>"></center><br>
			</td>
		</tr>

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

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


PK 99