PK

ADDRLIN : /home/anibklip/aaravpest.in/2021-22/forms/
FLL :
Current File : /home/anibklip/aaravpest.in/2021-22/forms/form_ppq.php

<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><h3>CERTIFICATE OF FUMIGATION <?php echo ($_POST[formno]=="c"?"PPQ":"PPQ-BK") ;?></h3> </center>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="6"><strong>DPPQS Registration No</strong> :<?php echo ($_SESSION[username]=="delhi"?"567/MB Dated:17/01/17":"438/MB Dated:22/01/14")?></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" id="issuedate" name="issuedate" class="datepicker" value="<?php echo date('Y-m-d'); ?>" />
                <script>
                    $(".datepicker").datepicker({
                        dateFormat: 'yy-mm-dd'
                    });
                </script>
            </td>
        </tr>
        <tr>
            <td colspan="6" class="safe">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 colspan=3><b>Name & Address of Consignor/Exporter:</b></td>
            <td colspan=3><b>Name & Address of Consignee/Importer:</b></td>
        </tr>

        <tr>
            <td colspan='3'>
				<!-- <select class="select2" style="width:350px;" required name="clntid">
					<option value="">Select</option> -->
					<?php
					$q="select headid, headname, headaddress from parties where status='active' and headid='$_POST[clntid]' and headname like '". mysql_real_escape_string($_REQUEST['term']) ."%' order by headname ";
					$rs = mysql_query($q) or die(mysql_error());
					$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="";
							}
							?>
							<?php echo $headname?> <?php echo $headaddress?>
							<!-- <option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option> -->
							<?php
						}
					}
					?>
				<!-- </select> -->
				<input type="hidden" size="66" name="clntid" id="exporterslist" value="<?php echo ($_POST['clntid']); ?>"/>
            </td>
            <td colspan='3'>
				<!-- <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" and headid="'.$_POST[clntid2].'" and 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="";
							}
							?>
							<?php echo $headname?> <?php echo $headaddress?>
							<!-- <option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option> -->
							<?php
						}
					}
					?>
				<!-- </select> -->
				<input type="hidden" size="66" name="clntid2" id="importerslist" value="<?php echo ($_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">Desription of goods:</td>
            <td width="24%">
                <input type="text" name="desgood" value="<?php echo $_POST[desgood] ?>" >
            </td>
            <td align="right" colspan="2">Quantity declared:</td>
            <td width="25%">
                <input type="text" name="quantitydeclared" value="<?php echo $_POST[quantitydeclared] ?>">
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2">Distinguishing Mark:</td>
            <td>
                <input type="text" name="distmarks" id="invoicelist" value="<?php echo $_POST[distmarks] ?>">
            </td>
            <td align="right" colspan="2">Consignment Link/Container No.</td>
            <td>
                <textarea name="conslinkno" rows="3" cols="25"><?php echo $_POST[conslinkno] ?></textarea>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2">Port & country of loading:</td>
            <td>
                <input type="text" name="portcountry" value="<?php echo $_POST[portcountry] ?>">
            </td>
            <td align="right" colspan="2">Name of the Vessel/Ship:</td>
            <td>
                <input type="text" name="nameship" value="<?php echo $_POST[nameship] ?>">
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2">Country of Destination:</td>
            <td>
                <input type="text" name="countrydes" value="<?php echo $_POST[countrydes] ?>">
            </td>
            <td align="right" colspan="2">Declared point of Entry:</td>
            <td>
                <input type="text" name="declentry" value="<?php echo $_POST[declentry] ?>">
            </td>
        </tr>

        <tr>
            <td colspan="6">
                <strong><font color="#339933">DETAILS OF TREATMENT:</font></strong></td>
        </tr>
        <tr>
            <td width="33%" colspan="2">Name of Fumigat:
                <br>
                <select name="namefumigant">
                    <?php
					$q="select * from master where typ='chemical' order by val ";
					$q=mysql_query($q) or die(mysql_error());
					while($r=mysql_fetch_array($q)){
						?>
						<option value='<?php echo $r[val]?>'><?php echo $r['val']?></option>
						<?php
					}
					?>
                </select>
            </td>
            <td width="33%" colspan="2">Date of Fumigation:
                <br>
                <input type="text" name="datefumigantion" class="datepicker" 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">Duration of Fumigation:
                <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">Minimum Air temperature:
                <br>
                <input type="text" name="airtemp" value="<?php echo $_POST[airtemp]?>">
            </td>
        </tr>

        <tr>
            <td colspan="4">Fumigation has been performed in
                <select name="fumigation_conduct">
                    <option <?php echo($_POST[fumigation_conduct]=="a container under gas tight sheet."?"selected":"")?>>a container under gas tight sheet.</option>
                    <option <?php echo($_POST[fumigation_conduct]=="a under gas tight sheet enclosure."?"selected":"")?>>a under gas tight sheet enclosure.</option>
                </select>
                :</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 /
				<input type="radio" name="contype" value="N/A" <?php echo($_POST[contype]=="N/A"?"checked":"")?>>N/A
            </td>
        </tr>
        
		
		<tr>
            <td colspan="4">Container pressure test conducted:</td>
            <td colspan="2">
				<input type="radio" name="cont_pressure" value="Yes" <?php echo($_POST[cont_pressure]=="Yes"?"checked":"")?>> Yes
                <input type="radio" name="cont_pressure" value="No" <?php echo($_POST[cont_pressure]=="No"?"checked":"")?>> No
                <input type="radio" name="cont_pressure" value="N/A" <?php echo($_POST[cont_pressure]=="N/A"?"checked":"")?>> N/A
			</td>
        </tr>
		<tr>
            <td colspan="4">Container Has 200 mm free air space at the top of container:</td>
            <td colspan="2">
				<input type="radio" name="cont_airspace" value="Yes" <?php echo($_POST[cont_airspace]=="Yes"?"checked":"")?>> Yes
                <input type="radio" name="cont_airspace" value="No" <?php echo($_POST[cont_airspace]=="No"?"checked":"")?>> No
                <input type="radio" name="cont_airspace" value="N/A" <?php echo($_POST[cont_airspace]=="N/A"?"checked":"")?>> N/A
			</td>
        </tr>
		
		<tr>
            <td colspan="4">In transit Fumigation-needs Ventillated at port of discharge:</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 /
                <input type="radio" name="discharge" value="N/A" <?php echo($_POST[discharge]=="N/A"?"checked":"")?>> N/A 
			</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" <?php echo($_POST[enclosure]=="Yes"?"checked":"")?>> Yes /
                <input type="radio" name="enclosure" value="No" <?php echo($_POST[enclosure]=="No"?"checked":"")?>> No /
                <input type="radio" name="enclosure" value="N/A" <?php echo($_POST[enclosure]=="N/A"?"checked":"")?>> N/A 
			</td>
        </tr>
        <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" <?php echo($_POST[commodity]=="Yes"?"checked":"")?>> Yes /
                <input type="radio" name="commodity" value="No" <?php echo($_POST[commodity]=="No"?"checked":"")?>> No /
                <input type="radio" name="commodity" value="N/A" <?php echo($_POST[commodity]=="N/A"?"checked":"")?>> N/A 
			</td>
        </tr>
        <tr>
            <td colspan="4">Has plastic wrapping been used in the consignment?:</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 /
                <input type="radio" name="consignment" value="N/A" <?php echo($_POST[consignment]=="N/A"?"checked":"")?>> N/A 
			</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" <?php echo($_POST[wrapping]=="Yes"?"checked":"")?>> Yes /
                <input type="radio" name="wrapping" value="No" <?php echo($_POST[wrapping]=="No"?"checked":"")?>> No /
                <input type="radio" name="wrapping" value="N/A" <?php echo($_POST[wrapping]=="N/A"?"checked":"")?>> N/A     
			</td>
        </tr>
        <tr>
            <td colspan="4">Or has the plasstic wrapping been slashed,open or perforated <br> in accordance with the wrapping and perfortion standard?</td>
            <td colspan="2">
                <input type="radio" name="perforated" value="Yes" <?php echo($_POST[perforated]=="Yes"?"checked":"")?>> Yes /
                <input type="radio" name="perforated" value="No" <?php echo($_POST[perforated]=="No"?"checked":"")?>> No /
                <input type="radio" name="perforated" value="N/A" <?php echo($_POST[perforated]=="N/A"?"checked":"")?>> N/A
			</td>
        </tr>
        <tr>
            <td colspan="4">Is the timber in this consignment less than 200mm thick</td>
            <td colspan="2">
                <input type="radio" name="height" value="Yes" <?php echo($_POST[height]=="Yes"?"checked":"")?>> Yes /
                <input type="radio" name="height" value="No" <?php echo($_POST[height]=="No"?"checked":"")?>> No /
                <input type="radio" name="height" value="N/A" <?php echo($_POST[height]=="N/A"?"checked":"")?>> N/A
			</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">
                    <?php
					$vv="&nbsp";
					?>
					<textarea name="deck" cols="100" rows="10"><?php echo ($_POST[deck]?$_POST[deck]:$vv)?></textarea>
                </td>
            </tr>
            <tr>
                
            </tr>

           <!--  <tr>
                <td colspan="6"> Number of Container </td>
            </tr>
            
            <tr>
                <td colspan="6">&nbsp; &nbsp; 20&rsquo;&nbsp; &nbsp; &nbsp; &nbsp;
                    <input type="text" name="container20feet" size="5" />
                    <br />
                    <br /> &nbsp; &nbsp; 40&rsquo; &nbsp; &nbsp; &nbsp; &nbsp;
                    <input type="text" name="container40feet" size="5" />
                    <br />
                    <br /> &nbsp; &nbsp; 40HC &nbsp; &nbsp;
                    <input type="text" name="container40HC" size="5" />
                    <br />
                    <br /> &nbsp; &nbsp; LCL &nbsp; &nbsp; &nbsp;
                    <input type="text" name="containerLCL" size="5" />
                    <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="3" align="right">For agent:</td>
                    <td colspan="3">
                        <input type="text" size="30" name="ajtname" id="agentslist" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="right"><strong>Amount</strong> :</td>
                    <td colspan="3">
                        <input type="text" name="amount">/- INR</td>
                </tr>
                <tr>
                    <td colspan="3" align="right"> Discount:<em>(in %age)</em></td>
                    <td colspan="3">
                        <input type="text" name="discount" size="4" value="0" onFocus="this.value=''"> %</td>
                </tr>

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

                <tr>
                    <td colspan="3" align="right">
                        <input type="checkbox" name="stax" value="yes" checked> GST:</td>
                    <td colspan="3">
                        <input type="text" name="srtax" value="18" size="4">%</td>
                </tr>
				<tr>
					<td colspan="3" align="right">Quantity:</td>
					<td colspan="3"><input type="text" name="qty" size="4" /></td>
				</tr>
				<tr>
					<td colspan="3" align="right">IGST:</td>
					<td colspan="3"><input type="checkbox" name="gst_combine" value="1" /></td>
				</tr>
                <tr>
                    <td colspan="3" align="right" valign="middle">Particulars</td>
                    <td colspan="3">
                        <textarea name="particular" rows="3" cols="50"></textarea>
                    </td>
                </tr>
                <?php
				*/
				}
				?>
				<tr>
					<td colspan="6">
						<br>
						<center>
							<input type="submit" value="&raquo; <?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'
  });
</script>


PK 99