
PK 
<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]"; ?>">
<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" colspan="6">
<center><h2>Certificate - <?php echo ($_POST[formno]=="b"?"AUS":"AUS-BK") ;?></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>
<!-- <input type="text" size="66" name="clntid2" id="importerslist" value="<?php echo ($_POST['clntid2']); ?>"/> -->
<?php //client_details($_POST['clntid2']); ?>
</td>
</tr>
<tr>
<td align="left" colspan="6"><strong><font color="#339933">DETAILS OF GOODS:</font> </strong></td>
</tr>
<tr>
<td colspan="2">Target of fumigation:</td>
<td width="24%">
<select name="desgood" id="desgood">
<option value="Commodity" <?php echo($_POST[desgood]=="Commodity"?"selected":"")?> >Commodity</option>
<option value="Packing" <?php echo($_POST[desgood]=="Packing"?"selected":"")?> >Packing</option>
<option value="Both Commodity and Packing" <?php echo($_POST[desgood]=="Both Commodity and Packing"?"selected":"")?> >Both Commodity and Packing</option>
<option value="Empty Container" <?php echo($_POST[desgood]=="Empty Container"?"selected":"")?> >Container</option>
<option value="Packing and container" <?php echo($_POST[desgood]=="Packing and container"?"selected":"")?> >Packing and container</option>
<option value="Commodity and container" <?php echo($_POST[desgood]=="Commodity and container"?"selected":"")?> >Commodity and container</option>
<option value="Both and container" <?php echo($_POST[desgood]=="Both and container"?"selected":"")?> >Both and container</option>
</select>
</td>
<td align="right" colspan="2">Commodity:</td>
<td width="25%">
<input type="text" name="commodity" value="<?php echo $_POST[commodity]?>">
</td>
</tr>
<tr>
<td align="left" colspan="2" valign="top">
Consignment link:<br /><br />
Container No: <br /><br /><br />
</td>
<td>
<input type="text" name="distmarks" value="<?php echo ($_POST[distmarks]?$_POST[distmarks]:"N/A")?>" /><br /><br />
<textarea name="conslinkno" rows="3" cols="25"><?php echo $_POST[conslinkno]?></textarea>
</td>
<td align="right" colspan="2">
Quantity : <br /><br /><br />
Country of origin:
</td>
<td>
<input type="text" name="quantitydeclared" value="<?php echo $_POST[quantitydeclared]?>"><br /><br />
<input type="text" name="portcountry" value="<?php echo $_POST[portcountry]?>">
</td>
</tr>
<!--
<tr>
<td align="left" colspan="2">Distinguishing marks:</td>
<td><input type="text" name="distmarks"></td>
<td align="right" colspan="2">Consignment Link/Container No.</td>
<td><textarea name="conslinkno" rows="3" cols="25"></textarea></td>
</tr>
<input type="hidden" name="distmarks" value="">
<input type="hidden" name="conslinkno" value="">-->
<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="6">
<strong><font color="#339933">DETAILS OF TREATMENT:</font></strong></td>
</tr>
<tr>
<td width="33%" colspan="2">DAFF Prescribed dose rate (g/m3):
<br>
<select name="namefumigant">
<option <?php echo($_POST[namefumigant]=="3 LBS Per 1000 Cubic Ft."?"selected":"")?>>3 LBS Per 1000 Cubic Ft.</option>
<option <?php echo($_POST[namefumigant]=="3.5 LBS Per 1000 Cubic Ft."?"selected":"")?>>3.5 LBS Per 1000 Cubic Ft.</option>
<option <?php echo($_POST[namefumigant]=="4 LBS Per 1000 Cubic Ft."?"selected":"")?>>4 LBS Per 1000 Cubic Ft.</option>
<option <?php echo($_POST[namefumigant]=="9 Gms Per Ton"?"selected":"")?>>9 Gms Per Ton</option>
<option <?php echo($_POST[namefumigant]=="12 Gms Per Ton"?"selected":"")?>>12 Gms Per Ton</option>
<option <?php echo($_POST[namefumigant]=="6 Gms Per Cubic Meter"?"selected":"")?>>6 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="16 Gms Per Cubic Meter"?"selected":"")?>>16 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="24 Gms Per Cubic Meter"?"selected":"")?>>24 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="32 Gms Per Cubic Meter"?"selected":"")?>>32 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="40 Gms Per Cubic Meter"?"selected":"")?>>40 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="48 Gms Per Cubic Meter"?"selected":"")?>>48 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="56 Gms Per Cubic Meter"?"selected":"")?>>56 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="64 Gms Per Cubic Meter"?"selected":"")?>>64 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="80 Gms Per Cubic Meter"?"selected":"")?>>80 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="88 Gms Per Cubic Meter"?"selected":"")?>>88 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="96 Gms Per Cubic Meter"?"selected":"")?>>96 Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="100Gms Per Cubic Meter"?"selected":"")?>>100Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="108Gms Per Cubic Meter"?"selected":"")?>>108Gms Per Cubic Meter</option>
<option <?php echo($_POST[namefumigant]=="116Gms Per Cubic Meter"?"selected":"")?>>116Gms Per Cubic Meter</option>
</select>
</td>
<td width="33%" colspan="2">
<!-- Date fumigation started:
<input class="datepicker" type="text" name="date_start" value="<?php echo $_POST[date_start]?>"><br><br> -->
Date Fumigation Completed:
<input class="datepicker" type="text" name="datefumigantion" value="<?php echo $_POST[datefumigantion]?>">
</td>
<td width="33%" colspan="2">Place of Fumigation:
<br>
<input type="text" name="placefumigantion" value="<?php echo $_POST[placefumigantion]?>">
</td>
</tr>
<tr>
<td width="33%" colspan="2">Dosage rate of Fumigation:
<br>
<select name="dosagefumigant">
<?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]){
$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="<?php echo $_POST[airtemp]?>">
</td>
</tr>
<tr>
<td colspan="4">Stack under sheet</td>
<td colspan="2">
<input type="radio" name="contype" value="Yes" <?php echo($_POST[contype]=="Yes"?"checked":"")?> >Yes /
<input type="radio" name="contype" value="No" <?php echo($_POST[contype]=="No"?"checked":"")?>>No
</td>
</tr>
<tr>
<td colspan="4"> Container/s under sheet</td>
<td colspan="2">
<input type="radio" name="presstest" value="Yes" <?php echo($_POST[presstest]=="Yes"?"checked":"")?>> Yes /
<input type="radio" name="presstest" value="No" <?php echo($_POST[presstest]=="No"?"checked":"")?>> No </td>
</tr>
<tr>
<td colspan="4">Permanent Chamber</td>
<td colspan="2">
<input type="radio" name="airspace" value="Yes" <?php echo($_POST[airspace]=="Yes"?"checked":"")?>> Yes /
<input type="radio" name="airspace" value="No" <?php echo($_POST[airspace]=="No"?"checked":"")?>> No </td>
</tr>
<tr>
<td colspan="4">Pressure tested container/s :</td>
<td colspan="2">
<input type="radio" name="discharge" value="Yes" <?php echo($_POST[discharge]=="Yes"?"checked":"")?>> Yes /
<input type="radio" name="discharge" value="No" <?php echo($_POST[discharge]=="No"?"checked":"")?>> No </td>
</tr>
<!--<tr>
<td colspan="4">Container/Enclosure has been Ventilated to below 5ppm
v/v menthyl Bromide:</td>
<td colspan="2"> <input type="radio" name="enclosure" value="Yes">
Yes /
<input type="radio" name="enclosure" value="No">
No /
<input type="radio" name="enclosure" value="N/A" checked>
N/A </td>
</tr>-->
<input type="hidden" name="enclosure" value="N/A">
<!-- <input type="hidden" name="commodity" value="N/A"> -->
<input type="hidden" name="wrapping" value="N/A">
<input type="hidden" name="height" value="N/A">
<tr>
<td colspan="6"><strong><font color="#339933">WRAPPING AND TIMER:</font></strong></td>
</tr>
<!-- <tr>
<td colspan="4">Has the commodity has fumigated prior to lacquering,varnishing,painting
or wrapping?</td>
<td colspan="2"> <input type="radio" name="commodity" value="Yes">
Yes /
<input type="radio" name="commodity" value="No">
No /
<input type="radio" name="commodity" value="N/A" checked>
N/A </td>
</tr>-->
<tr>
<td colspan="4"> Dose the target of fumigation conform to the DAFF plastic wrapping, impervious surface and timber thickness requirements at the time of fumigation?</td>
<td colspan="2">
<input type="radio" name="consignment" value="Yes" <?php echo($_POST[consignment]=="Yes"?"checked":"")?>> Yes /
<input type="radio" name="consignment" value="No" <?php echo($_POST[consignment]=="No"?"checked":"")?>> No
</td>
</tr>
<!-- <tr>
<td colspan="4">If yes,has the consignment been fumigated prior to wrapping?:</td>
<td colspan="2"> <input type="radio" name="wrapping" value="Yes">
Yes /
<input type="radio" name="wrapping" value="No">
No /
<input type="radio" name="wrapping" value="N/A" checked>
N/A </td>
</tr>
<tr>
<td colspan="4">Is the timber in this consignment less than 200mm thick
in <br>
one dimension and correctly spaced every 200mm in height</td>
<td colspan="2"> <input type="radio" name="height" value="Yes">
Yes /
<input type="radio" name="height" value="No">
No /
<input type="radio" name="height" value="N/A" checked>
N/A </td>
</tr>-->
<tr>
<td colspan="4"> Ventilation Final TLV reading(ppm):</td>
<td colspan="2"><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>
<tr>
<td colspan="6"> Number of Container </td>
</tr>
<!--<tr>
<td colspan="6"> 20’
<input type="text" name="container20feet" value="<?php echo $_POST[container20feet]?>" />
<br /><br /> 40’
<input type="text" name="container40feet" value="<?php echo $_POST[container40feet]?>" />
<br /><br /> 40HC
<input type="text" name="container40HC" value="<?php echo $_POST[container40HC]?>" />
<br /><br /> LCL
<input type="text" name="containerLCL" value="<?php echo $_POST[containerLCL]?>" />
<br /><br />
</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="« <?php echo ($_GET[cert_id]?"Update":"Confirm")?> Details »" class="amo-submit"></center>
</td>
</tr>
</table>
</form>
<script type="text/javascript">
$('.select2').select2({
placeholder: 'Select an item'
});
</script>


PK 99