PK

ADDRLIN : /home/anibklip/aaravpest.in/2025-26/forms/
FLL :
Current File : /home/anibklip/aaravpest.in/2025-26/forms/form_aus_new.php

<?php 
//echo "<pre>"; print_r($_POST); echo "</pre>";
?>
<form action="certificate-invoicebill.php" method="post" onSubmit="return checkform(this);">
	<input type="hidden" name="cert_id" value="<?php echo "$_GET[cert_id]" ;?>">
	<input type="hidden" name="formno" value="<?php echo "$_POST[formno]" ;?>">
	<!-- <input type="hidden" name="clntid" value="<?php echo "$_POST[clntid]" ;?>">
	<input type="hidden" name="clntid2" value="<?php echo "$_POST[clntid2]" ;?>"> -->
	<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="enclosure" value="N/A">
	<input type="hidden" name="wrapping" value="N/A">
	<input type="hidden" name="height" value="N/A">

	<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" colspan="6">
				<center><h2>Certificate - AUS NEW</h2></center>
			</td>
		</tr>
		<td align="left" colspan="6"><strong>DPPQS Registration No</strong>: 567/ MB</td>
		</tr>
		<tr>
			<td colspan="3">Treatment Certificate Number: <em>Auto assigned</em></td>
			<td align="center" colspan="3">
				Date of Issue:
				<input type="text" name="issuedate" class="datepicker" value="<?php echo date('Y-m-d'); ?>">

				<script>
					$(".datepicker").datepicker({
						dateFormat: 'yy-mm-dd'
					});
				</script>
			</td>
		</tr>
		<td class="safe" 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.</td>
		</tr>

		<tr>
			<td align="left" colspan="6"><strong><font color="#339933">PARTY DETAILS:</font> </strong></td>
		</tr>
		<tr>
			<td valign="top" colspan="3">
				<b>Name & Address of Consignor/Exporter</b>:<br/>
				<!-- <select class="js-example-basic-single" name="state">
					<option value="AL">Alabama</option>
					<option value="WY">Wyoming</option>
				</select>
				<script type="text/javascript">
					$(document).ready(function() {
						$('.js-example-basic-single').select2();
					});
				</script> -->
				<select class="select2" style="width:350px;" required name="clntid">
					<option value="">Select</option>
					<?php
					$rs = mysql_query('SELECT headid, headname, headaddress from parties where status="active" && headname like "'. mysql_real_escape_string($_REQUEST['term']) .'%" order by headname ', $dblink);
					$data = array();
					if ( $rs && mysql_num_rows($rs) ){
						while( $row = mysql_fetch_array($rs, MYSQL_ASSOC) ){
							$headid = strip_tags($row['headid']);
							$headname = strip_tags($row['headname']);
							$headaddress = $row['headaddress'];
							if($_POST['clntid']==$headid){
								$sel="selected";
							}else{
								$sel="";
							}
							?>
							<option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option>
							<?php
						}
					}
					?>
				</select>
				<!-- <input type="text" size="66" name="clntid" id="exporterslist" value="<?php echo ($_POST['clntid']); ?>"/> -->
			</td>
			<td valign="top" colspan="3">
				<b>Name & Address Of Consignee/Importer</b>:<br/>
				<select class="select2" style="width:350px;" name="clntid2">
					<option value="">Select</option>
					<?php
					$rs = mysql_query('select headid, headname, headaddress from parties where status="active" && headname like "'. mysql_real_escape_string($_REQUEST['term']) .'%" order by headname ', $dblink);
					$data = array();
					if ( $rs && mysql_num_rows($rs) ){
						while( $row = mysql_fetch_array($rs, MYSQL_ASSOC) ){
							$headid = strip_tags($row['headid']);
							$headname = strip_tags($row['headname']);
							$headaddress = $row['headaddress'];
							if($_POST['clntid2']==$headid){
								$sel="selected";
							}else{
								$sel="";
							}
							?>
							<option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option>
							<?php
						}
					}
					?>
				</select>
			</td>
		</tr>

		<tr>
			<td align="left" colspan="6"><strong><font color="#339933">DETAILS OF GOODS:</font> </strong></td>
		</tr>
		<tr>
			<td align="right" colspan="2">Commodity:</td>
			<td width="25%">
				<input type="text" name="commodity" value="<?php echo $_POST['commodity']?>">
			</td>
			<td align="right" colspan="2">Country of origin:</td>
			<td width="25%">
				<input type="text" name="portcountry" value="<?php echo $_POST['portcountry']?>">
			</td>
		</tr>
		<tr>
			<td align="right" colspan="2"> Commodity Quantity : </td>
			<td>
				<input type="text" name="quantitydeclared" value="<?php echo $_POST['quantitydeclared']?>">
			</td>
			<td align="right" colspan="2">Seal number(s) (if applicable)::</td>
			<td width="25%">
				<input type="text" name="seal_no" value="<?php echo $_POST['seal_no']?>">
			</td>
		</tr>

		<tr>
			<td align="left" colspan="2">Port of loading:</td>
			<td>
				<input type="text" name="declentry" value="<?php echo $_POST['declentry']?>">
			</td>
			<td align="right" colspan="2">Country of destination :</td>
			<td>
				<input type="text" name="countrydes" value="<?php echo $_POST['countrydes']?>">
			</td>
		</tr>

		<tr>
			<td colspan="2">Target of fumigation:</td>
			<td width="24%">
				<div class="checkbox-group">
					<label><input type="checkbox" name="desgood[]" value="Commodity" <?php echo(strpos($_POST['desgood'],"Commodity")!==false?"checked":"")?>> Commodity</label>
					<label><input type="checkbox" name="desgood[]" value="Packing" <?php echo(strpos($_POST['desgood'],"Packing")!==false?"checked":"")?>> Packing</label>
					<label><input type="checkbox" name="desgood[]" value="Empty Container" <?php echo(strpos($_POST['desgood'],"Empty Container")!==false?"checked":"")?>> Container</label>
					<label><input type="checkbox" name="desgood[]" value="Others" id="desgood_others" <?php echo(strpos($_POST['desgood'],"Others")!==false?"checked":"")?>> Others</label>

					<div id="desgood_others_div" style="display:<?php echo(strpos($_POST['desgood'],"Others")!==false?"block":"none")?>">
						<input type="text" name="desgood_others" id="desgood_others_text" value="<?php echo $_POST['desgood_others']?>" style="margin-top:5px; width:90%;">
					</div>
				</div>
			</td>
			<td colspan="2">Enclosure Type:</td>
			<td width="24%">
				<div class="radio-group">
					<label><input type="radio" name="enclosure_type" value="Sheeted Enclosure" <?php echo($_POST['enclosure_type']=="Sheeted Enclosure"?"checked":"")?>> Sheeted Enclosure</label>
					<label><input type="radio" name="enclosure_type" value="Fumigation Chamber" <?php echo($_POST['enclosure_type']=="Fumigation Chamber"?"checked":"")?>> Fumigation Chamber</label>
					<label><input type="radio" name="enclosure_type" value="Unsheeted Container" <?php echo($_POST['enclosure_type']=="Unsheeted Container"?"checked":"")?>> Unsheeted Container</label>
					<label><input type="radio" name="enclosure_type" value="Others" id="enclosure_type_others" <?php echo($_POST['enclosure_type']=="Others"?"checked":"")?>> Others</label>

					<div id="enclosure_type_others_div" style="display:<?php echo($_POST['enclosure_type']=="Others"?"block":"none")?>">
						<input type="text" name="enclosure_type_others" id="enclosure_type_others_text" value="<?php echo $_POST['enclosure_type_others']?>" style="margin-top:5px; width:90%;">
					</div>
				</div>
			</td>
		</tr>
		
		<tr>
			<td align="left" colspan="2" valign="top"> Consignment link: </td>
			<td>
				<input type="text" name="distmarks" value="<?php echo ($_POST['distmarks']?$_POST['distmarks']:"N/A")?>" />
			</td>
			<td colspan="2">Container No:</td>
			<td>
				<textarea name="conslinkno" rows="3" cols="25"><?php echo $_POST['conslinkno']?></textarea>
			</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>
				<select name="namefumigant">
                    <?php
					$q="SELECT * from master where typ='dosage' order by val ";
					$q=mysql_query($q) or die(mysql_error());
					while($r=mysql_fetch_array($q)){
						if($r['val']==$_POST[namefumigant]){
							$sel="selected";
						}else{
							$sel="";
						}
						?>
						<option <?php echo $sel?> value='<?php echo $r['val']?>'><?php echo $r['val']?></option>
						<?php
					}
					?>
				</select>
			</td>
			<td width="33%" colspan="2">
				Exposure period (hrs):
				<br>
				<select name="durationfumigantion">
					<?php
					$q="SELECT * from master where typ='durationexp' order by val ";
					$q=mysql_query($q) or die(mysql_error());
					while($r=mysql_fetch_array($q)){
						if($r['val']==$_POST[durationfumigantion]){
							$sel="selected";
						}else{
							$sel="";
						}
						?>
						<option <?php echo $sel?> value='<?php echo $r['val']?>'><?php echo $r['val']?></option>
						<?php
					}
					?>
				</select>
			</td>
			<td width="33%" colspan="2">
				Forecast minimum temp (C): <br>
				<input type="text" name="airtemp" value="21 &#xb0;C  or above">
			</td>
		</tr>
		<tr>
			<td width="100%" colspan="4">&nbsp;</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>
				<select name="dosagefumigant_trmnt">
					<?php
					$q="SELECT * from master where typ='dosage' order by val ";
					$q=mysql_query($q) or die(mysql_error());
					while($r=mysql_fetch_array($q)){
						if($r['val']==$_POST['dosagefumigant_trmnt']){
							$sel="selected";
						}else{
							$sel="";
						}
						?>
						<option <?php echo $sel?> value='<?php echo $r['val']?>'><?php echo $r['val']?></option>
						<?php
					}
					?>
				</select>
			</td>
			<td width="33%" colspan="2">
				Exposure period (hrs):
				<br>
				<select name="durationfumigantion_trmnt">
					<?php
					$q="select * from master where typ='durationexp' order by val ";
					$q=mysql_query($q) or die(mysql_error());
					while($r=mysql_fetch_array($q)){
						if($r['val']==$_POST['durationfumigantion_trmnt']){
							$sel="selected";
						}else{
							$sel="";
						}
						?>
						<option <?php echo $sel?> value='<?php echo $r['val']?>'><?php echo $r['val']?></option>
						<?php
					}
					?>
				</select>
			</td>
			<td width="33%" colspan="2">
				Forecast minimum temp (C): <br>
				<input type="text" name="airtemp_trmnt" value="<?php echo $_POST['airtemp_trmnt']?>">
			</td>
		</tr>

		
		<tr>
			<td width="33%" colspan="2">
				Street Address: <br>
				<input type="text" name="streetaddress_trmnt" value="<?php echo $_POST['streetaddress_trmnt']?>">
			</td>
			<td width="33%" colspan="2">
				Suburb/Town/City: <br>
				<input type="text" name="city_trmnt" value="<?php echo $_POST['city_trmnt']?>">
			</td>
			<td width="33%" colspan="2">
				Country: <br>
				<input type="text" name="country_trmnt" value="<?php echo $_POST['country_trmnt']?>">
			</td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Postcode: <br>
				<input type="text" name="postcode_trmnt" value="<?php echo $_POST['postcode_trmnt']?>">
			</td>
			<td width="33%" colspan="2">
				Date Fumigation commenced: 
				<input class="datepicker" type="text" name="datefumigantion_start" value="<?php echo $_POST['datefumigantion_start']?>">
			</td>
			<td width="33%" colspan="2">
				Time Fumigation commenced: 
				<input type="time" name="timefumigantion_start" value="<?php echo $_POST['timefumigantion_start']?>">
			</td>
		</tr>
		<tr>
			<td width="33%" colspan="2">
				Date Fumigation Completed: 
				<input class="datepicker" type="text" name="datefumigantion_end" value="<?php echo $_POST['datefumigantion_end']?>">
			</td>
			<td width="33%" colspan="2">
				Time Fumigation Completed: 
				<input type="time" name="timefumigantion_end" value="<?php echo $_POST['timefumigantion_end']?>">
			</td>
			<td width="33%" colspan="2">
				Final TLV reading (ppm): <br>
				<input type="text" name="perforated" value="<?php echo $_POST['perforated']?>">
			</td>
		</tr>
		  
		<tr>
			<tr>
				<td colspan="6">
					<input type="checkbox" <?php echo ($_POST['deck']?"checked":"")?> name="addition"><strong><font color="#339933">ADDITION DECLERATION:</font></strong></td>
			</tr>
			<tr>
				<td colspan="6">
					<textarea name="deck" cols="100"><?php echo $_POST['deck']?></textarea>
					<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>
			<?php
			if(isset($_POST['subc_id']) && $_POST['subc_id']!=''){
				echo "";
			}else{
				/*
				?>
				<tr>
					<td colspan="6"><strong>MAKE INVOICE:</strong></td>
				</tr>
				<tr>
					<td colspan="2" align="right">For Agent:-</td>
					<td colspan="4">
						<input type="text" size="45" name="ajtname" id="agentslist" />

					</td>
				</tr>
				<tr>
					<td colspan="2" align="right"><strong>Amount</strong> :</td>
					<td colspan="4">
						<input type="text" size="7" name="amount">/- INR</td>
				</tr>
				<tr>
					<td colspan="2" align="right">Discount:<em>(in %age)</em></td>
					<td colspan="4">
						<input type="text" name="discount" size="4" value="0" onfocus="this.value=''"> %</td>
				</tr>
				<tr>
					<td colspan="2" align="right">
						<input type="checkbox" name="stax" value="yes" checked> GST :</td>
					<td colspan="4">
						<input type="text" name="srtax" value="18" size="4">%</td>
				</tr>

				<tr>
					<td colspan="2" align="right">Quantity:</td>
					<td colspan="4"><input type="text" name="qty" size="4" /></td>
				</tr>
				<tr>
					<td colspan="2" align="right">IGST:</td>
					<td colspan="4"><input type="checkbox" name="gst_combine" value="1" /></td>
				</tr>

				<tr>
					<td colspan="2" align="right">Name of Product/Service:</td>
					<td colspan="4">
						<input type="text" name="product" size="100">
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">SAC:</td>
					<td colspan="4">
						<input type="text" name="hsn" size="40">
					</td>
				</tr>
				<tr>
					<td colspan="2" align="right">UOM :</td>
					<td colspan="4">
						<input type="text" name="uom" size="40">
					</td>
				</tr>

				<tr>
					<td colspan="2" align="right" valign="middle">Particulars</td>
					<td colspan="4">
						<textarea name="particular" rows="3" cols="50"></textarea>
					</td>
				</tr>
				<?php
				*/
			}
			?>
			<tr>
			  <td colspan="6">
				<br>
				<center><input type="submit" value="&laquo; <?php echo ($_GET['cert_id']?"Update":"Confirm")?> Details &raquo;" class="amo-submit"></center>
			  </td>
			</tr>
	</table> 
</form>

<script type="text/javascript">
	/* $('.select2').select2({
		placeholder: 'Select an item'
	}); */

	// Handle Others checkbox for target of fumigation
	document.getElementById('desgood_others').addEventListener('change', function() {
		document.getElementById('desgood_others_div').style.display = this.checked ? 'block' : 'none';
	});

	// Handle all radio buttons for enclosure type
	let enclosureRadios = document.querySelectorAll('input[name="enclosure_type"]');
	enclosureRadios.forEach(radio => {
		radio.addEventListener('change', function() {
			document.getElementById('enclosure_type_others_div').style.display = 
				this.value === 'Others' ? 'block' : 'none';
		});
	});
</script>

	<style>
		.checkbox-group, .radio-group {
			padding: 5px;
		}
		.checkbox-group label, .radio-group label {
			display: block;
			margin: 5px 0;
			cursor: pointer;
		}
		.checkbox-group input[type="text"], .radio-group input[type="text"] {
			width: 90%;
			padding: 5px;
			margin-left: 20px;
		}
		.checkbox-group input[type="checkbox"], .radio-group input[type="radio"] {
			margin-right: 8px;
			vertical-align: middle;
		}
	</style>


PK 99