
PK 
<head>
<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>
<script language="JavaScript" type="text/javascript">
<!--
function checkform(form) {
// ** START **
if (form.certificateno.value == "") {
alert("Please enter Certificate no.");
form.certificateno.focus();
return false;
}
// ** END **
// ** START **
if (form.desgood.value == "") {
alert("Please enter Target of fumigation:");
form.desgood.focus();
return false;
}
// ** END **
// ** START **
if (form.quantitydeclared.value == "") {
alert("Please enter Commodity:");
form.quantitydeclared.focus();
return false;
}
// ** END **
// ** START **
if (form.distmarks.value == "") {
alert("Please enter Distinguishing marks:");
form.distmarks.focus();
return false;
}
// ** END **
// ** START **
if (form.desgood.value == "") {
alert("Please enter Target of fumigation:");
form.desgood.focus();
return false;
}
// ** END **
// ** START **
if (form.conslinkno.value == "") {
alert("Please enter Consignment Link/Container No.");
form.conslinkno.focus();
return false;
}
// ** END **
// ** START **
if (form.portcountry.value == "") {
alert("Please enter Port & country of loading:");
form.portcountry.focus();
return false;
}
// ** END **
// ** START **
if (form.nameship.value == "") {
alert("Please enter Consignment link:");
form.nameship.focus();
return false;
}
// ** END **
// ** START **
if (form.countrydes.value == "") {
alert("Please enter Country of destination :");
form.countrydes.focus();
return false;
}
// ** END **
// ** START **
if (form.declentry.value == "") {
alert("Please enter Commodity:");
form.declentry.focus();
return false;
}
// ** END **
// ** START **
if (form.datefumigantion.value == "") {
alert("Please enter date:");
form.datefumigantion.focus();
return false;
}
// ** END **
// ** START **
if (form.placefumigantion.value == "") {
alert("Please enter place here:");
form.placefumigantion.focus();
return false;
}
// ** END **
// ** START **
if (form.airtemp.value == "") {
alert("Please enter air temp:");
form.airtemp.focus();
return false;
}
// ** END **
// ** START **
if (form.amount.value == "") {
alert("Please enter amount:");
form.amount.focus();
return false;
}
// ** END **
return true;
}
//
-->
</script>
</head>
<table align="center" width="100%" border="3" cellpadding="0" cellspacing="0">
<form action="form/confirmform_aus_new.php" method="get" onsubmit="return checkform(this);">
<input type="hidden" name="formno" value="<?php echo "$_GET[formno]"; ?>">
<input type="hidden" name="clntid" value="<?php echo "$_GET[clntid]"; ?>">
<input type="hidden" name="dtype" value="<?php echo "$_GET[dtype]"; ?>">
<input type="hidden" name="sub_c" value="<?php echo "$_GET[sub_c]"; ?>">
<?php
$dat = date('d-m-Y');
?>
<tr>
<td align="center" colspan="6">
<center>
<h2>PEST CONTROL & FUMIGATION COMPANY</h2>
</center>
</td>
</tr>
<td align="left" colspan="6"><strong>AEI No.:</strong>: IN0104/MB</td>
</tr>
<tr>
<td colspan="2">Treatment Certificate Number:</td>
<td><em>Auto assigned</em></td>
<td align="right" colspan="2">Date of Issue:</td>
<td ><input type="text" name="issuedate" value="<?php echo "$dat"; ?>"></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.</td>
</tr>
<td align="left" colspan="6">
<strong> <font color="#339933">Party Details:</font> </strong>
</td>
<?php
echo "<input type=hidden name=clntid value=$_GET[clntid]>";
echo "<input type=hidden name=dtype value=$_GET[dtype]>";
$sql = "SELECT * From head WHERE headid='$_GET[clntid]'";
$result = mysql_query($sql) or die('error in getting client details');
while ($row = mysql_fetch_array($result)) {
if ($_GET[dtype] == 'import') {
echo "<input type=hidden name=declarednameaddress value=$_GET[clntid]>";
echo "<tr>
<td align=left colspan=3>Name and address of consignor/exporter:</td>
<td align=center colspan=3>";
?>
<input name='nameaddress' id="exporterslist" size="80" type="text" />
<?php
echo "</td>
</tr>
<tr>
<td colspan=3>Name & address of consignee:</td>
<td align=center colspan=3>
<b>{$row['headname']}</b><br>{$row['headaddress']}<br>{$row['headphone']}
</td>
</tr>";
} else {
echo "<input type=hidden name=nameaddress value=$_GET[clntid]>";
echo "<tr>
<td colspan=3>Name and address of consignor/exporter:</td>
<td align=center colspan=3>
<b>{$row['headname']}</b><br>{$row['headaddress']}<br>{$row['headphone']}
</td>
</tr>
<tr>
<td colspan=3>Name & address of consignee:</td>
<td align=center colspan=3>";
?>
<input name='declarednameaddress' id="exporterslist" size="80" type="text" />
<?php
echo "</td>
</tr>";
}
}
?>
<td align="left" colspan="6">
<HR><strong> <font color="#339933">DETAILS OF GOODS:</font> </strong>
</td>
</tr>
<tr>
<td align="left" colspan="2">Commodity:</td>
<td><input type="text" name="commodity"></td>
<td align="right" colspan="2">Country of origin:</td>
<td><input type="text" name="portcountry"></td>
</tr>
<tr>
<td align="right" colspan="2">Quantity Declared:</td>
<td><input type="text" name="quantitydeclared"></td>
<td align="right" colspan="2">Seal number(s) (if applicable):</td>
<td><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"></td>
<td align="right" colspan="2">Country of destination :</td>
<td><input type="text" name="countrydes"></td>
</tr>
<tr>
<td colspan="2">Target of fumigation:</td>
<td >
<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 >
<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="right" colspan="2">Consignment link::</td>
<td><input type="text" value="N/A" name="consignment_link"></td>
<td align="right" colspan="2">Container No:</td>
<td><textarea name="nameship" rows="3" cols="25"></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">
<option>3 LBS Per 1000 Cubic Ft.</option>
<option>3.5 LBS Per 1000 Cubic Ft.</option>
<option>4 LBS Per 1000 Cubic Ft.</option>
<option>9 Gms Per Ton</option>
<option>12 Gms Per Ton</option>
<option>6 Gms Per Cubic Meter</option>
<option>16 Gms Per Cubic Meter</option>
<option>24 Gms Per Cubic Meter</option>
<option>32 Gms Per Cubic Meter</option>
<option>40 Gms Per Cubic Meter</option>
<option>48 Gms Per Cubic Meter</option>
<option>56 Gms Per Cubic Meter</option>
<option>64 Gms Per Cubic Meter</option>
<option>80 Gms Per Cubic Meter</option>
<option>88 Gms Per Cubic Meter</option>
<option>96 Gms Per Cubic Meter</option>
<option>100Gms Per Cubic Meter</option>
<option>108Gms Per Cubic Meter</option>
<option>116Gms Per Cubic Meter</option>
</select>
</td>
<td width="33%" colspan="2">
Exposure period (hrs):
<br>
<select name="durationfumigantion">
<option>12 Hour</option>
<option>24 Hour</option>
<option>48 Hour</option>
<option>72 Hour</option>
<option>7 days</option>
</select>
</td>
<td width="33%" colspan="2">
Forecast minimum temp (C): <br>
<input type="text" name="airtemp" value="<?php echo $_POST['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>
<select name="dosagefumigant_trmnt">
<option>3 LBS Per 1000 Cubic Ft.</option>
<option>3.5 LBS Per 1000 Cubic Ft.</option>
<option>4 LBS Per 1000 Cubic Ft.</option>
<option>9 Gms Per Ton</option>
<option>12 Gms Per Ton</option>
<option>6 Gms Per Cubic Meter</option>
<option>16 Gms Per Cubic Meter</option>
<option>24 Gms Per Cubic Meter</option>
<option>32 Gms Per Cubic Meter</option>
<option>40 Gms Per Cubic Meter</option>
<option>48 Gms Per Cubic Meter</option>
<option>56 Gms Per Cubic Meter</option>
<option>64 Gms Per Cubic Meter</option>
<option>80 Gms Per Cubic Meter</option>
<option>88 Gms Per Cubic Meter</option>
<option>96 Gms Per Cubic Meter</option>
<option>100Gms Per Cubic Meter</option>
<option>108Gms Per Cubic Meter</option>
<option>116Gms Per Cubic Meter</option>
</select>
</td>
<td width="33%" colspan="2">
Exposure period (hrs):
<br>
<select name="durationfumigantion_trmnt">
<option>12 Hour</option>
<option>24 Hour</option>
<option>48 Hour</option>
<option>72 Hour</option>
<option>7 days</option>
</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>
<td colspan="6">
<hr><input type="checkbox" name="addition"><strong>
<font color="#339933">ADDITION DECLERATION:</font>
</strong>
</td>
</tr>
<tr>
<td colspan="6"><textarea name="deck" cols="100"> </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>
<!-- <tr>
<td valign="top" colspan="3"><strong>Encloser Area of Fumigation</strong>:</td>
<td colspan="3"><input type="text" name="container20feet" /> Cubic meters</td>
</tr> -->
<tr>
<td colspan="3" align="right">
<center>
<strong>MAKE INVOICE:</strong>
</center>
</td>
<td colspan="3">For agent:-
<input name='ajtname' id="agentslist" size="80" type="text" />
<!--select name="ajtname">
<option value="0">Select an agent</option>
<?php
$sql = "SELECT ajcomp,ajid FROM ajent order by ajcomp";
$result = mysql_query($sql) or die('error in fetch');
if (mysql_num_rows($result) == 0) {
echo "<option value=0>no agents found</option>";
}
while ($row = mysql_fetch_array($result)) {
echo "<option value='" . $row['ajid'] . "'>{$row['ajcomp']}</option>";
}
?></select-->
</td>
</tr>
<tr>
<td colspan="3" align="right"><strong>Fumigation Amount</strong> :</td>
<td align="center" colspan="3"> Rs.<input type="text" name="famount">/-</td>
</tr>
<tr>
<tr>
<td colspan="3" align="right"><strong>Travel Expenses</strong> :</td>
<td align="center" colspan="3"> Rs.<input type="text" name="tamount">/-</td>
</tr>
<tr>
<tr>
<td colspan="3" align="right"><strong>Miscellaneous</strong> :</td>
<td align="center" colspan="3"> Rs.<input type="text" name="mamount">/-</td>
</tr>
<tr>
<td colspan="3" align="right"> Discount:<em>(in %age)</em></td>
<td colspan="3" align="center">
<input type="text" name="discount" size="4" value="0" onfocus="this.value=''">
%
</td>
</tr>
<tr>
<td colspan="3" align="right"><input type="checkbox" name="stax" value="yes" checked> GST :</td>
<td colspan="3" align="center"><input type="text" name="srtax" value="18" size="4">%</td>
</tr>
<tr class="highlight">
<td colspan="3" align="right">No. of Container:</td>
<td colspan="3"><input name="qty" size="4" value="1" type="text"></td>
</tr>
<tr>
<td colspan="3" align="right">IGST :</td>
<td colspan="3"><input name="gst_combine" value="1" type="checkbox"></td>
</tr>
<tr class="highlight">
<td colspan="3" align="right">Name of Product/Service:</td>
<td colspan="3"><input name="product" size="100" value="Disinfecting and exterminating services" type="text"></td>
</tr>
<tr>
<td colspan="3" align="right">SAC:</td>
<td colspan="3"><input name="hsn" size="40" value="998531" type="text"></td>
</tr>
<tr class="highlight">
<td colspan="3" align="right">UOM :</td>
<td colspan="3"><input name="uom" size="40" type="text"></td>
</tr>
<tr>
<td colspan="2" align="center" valign="middle">Particulars</td>
<td colspan="4"><textarea name="particular" rows="2" cols="40"></textarea></td>
</tr>
<tr>
<td colspan="6" align="center"><br>
<center><input type="submit" value="» Please Check & Confirm »" class="amo-submit"></center>
</td>
</tr>
</form>
</table>
<script>
// 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';
});
});
$(".datepicker").datepicker({
dateFormat: 'yy-mm-dd'
});
</script>


PK 99