PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2021-22/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2021-22/formb.php

<head>
<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 Desription of goods:" );
    form.desgood.focus();
    return false ;
  }
  // ** END **
   // ** START **
  if (form.quantitydeclared.value == "") {
    alert( "Please enter Quantity declared:" );
    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 Desription of goods:" );
    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 Name of the Vessel/Ship:" );
    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 Quantity declared:" );
    form.declentry.focus();
    return false ;
  }
  // ** END **
   // ** START **
  if (form.amount.value == "") {
    alert( "Please enter amount:" );
    form.amount.focus();
    return false ;
  }
  // ** END **
  
  return true ;
}
//-->
</script>
</head>
<?php
include"connexion.php";
//$sql="SELECT * FROM certificate WHERE certificateno='$_GET[id]' AND certypo='b'";
$sql="SELECT * FROM cert_aqis WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('error in fetching');
while($row=mysql_fetch_array($result))
{
$dtype="{$row['licetype']}";
$clnt="{$row['clnid']}";
$deep="{$row['nameaddress']}";
$deep2="{$row['declarednameaddress']}";
?>
  <table align="center" width="100%" border="3" cellpadding="0" cellspacing="0">
    <form action="updateb.php" method="get" onsubmit="return checkform(this);">
	<input type="hidden" name="clntid" value="<?php echo"$clnt";?>">
	<input type="hidden" name="id" value="<?php echo"$_GET[id]";?>">
	<input type="hidden" name="formno" value="<?php echo"$formno";?>">
	<input type="hidden" name="dtype" value="<?php echo"$dtype";?>">
		<input type="hidden" name="dat" value="<?php echo"$dat";?>">
        <input type="hidden" name="declarednameaddress" value="<?php echo"$deep2";?>">
        <input type="hidden" name="nameaddress" value="<?php echo"$deep";?>">
        
<?php
//$dat=date('d-m-Y');
$dat=$row[issuedate];
?>
      <tr>
        <td align="center" colspan="6"><center>
             <strong>
            <h2>PEST CONTROL & FUMIGATION COMPANY </h2>
            </strong> 22,Waraich Market,Partap Bazar,Chheharta,Amritsar.(Pb.)<br>
            Mobile:93162-37377,98155-02088</center></td>
      </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%"><?php echo"{$row['certificateno']}";?></td>
        <td align="right" colspan="2">Date of Issue:</td>
        <td width="24%"><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 conform 
        to the current phytosanitary requirement of the importing country:</td></tr>
      <td align="left" colspan="6"><HR><strong><font color="#339933">DETAILS OF GOODS:</font> </strong></td></tr>
      <tr>
        <td colspan="2">Desription of goods:</td>
        <td width="15%"><input type="text" name="desgood" value="<?php echo"{$row['desgood']}";?>"></td>
        <td align="right" colspan="2">Quantity declared:</td>
        <td width="15%"><input type="text" name="quantitydeclared" value="<?php echo"{$row['quantitydeclared']}";?>"></td>
      </tr>
      <tr>
        <td align="left" colspan="2">Distinguishing marks:</td>
        <td><input type="text" name="distmarks" value="<?php echo"{$row['distmarks']}";?>"></td>
        <td align="right" colspan="2">Consignment Link/Container No.</td>
        <td><input type="text" name="conslinkno" value="<?php echo"{$row['conslinkno']}";?>"></td>
      </tr>
      <tr>
        <td align="left" colspan="2">Port & country of loading:</td>
        <td><input type="text" name="portcountry" value="<?php echo"{$row['portcountry']}";?>"></td>
        <td align="right" colspan="2">Name of the Vessel/Ship:</td>
			<td><input type="text" name="nameship" value="<?php echo"{$row['nameship']}";?>"></td>
      </tr>
      <tr>
        <td align="left" colspan="2">Country of Destination:</td>
        <td><input type="text" name="countrydes" value="<?php echo"{$row['countrydes']}";?>"></td>
        <td align="right" colspan="2">Quantity declared:</td>
        <td><input type="text" name="declentry" value="<?php echo"{$row['declentry']}";}?>"></td>
      </tr>
<?php 
include"connexion.php";
echo"<input type=hidden name=clntid value=$clnt>";
echo"<input type=hidden name=dtype value=$dtype>";
$sql="SELECT * From head WHERE headid='$clnt'";
$result=mysql_query($sql) or die('error in getting client details');
while($row=mysql_fetch_array($result))
{
if($dtype=='import')
{
echo "<input type=hidden name=declarednameaddress value=$clnt>";
echo "<tr>
        <td align=left colspan=3>Name and address of consignor/exporter:</td>
        <td align=center colspan=3>";
$sqlb="SELECT * From clients WHERE subid='$deep'";
$resultb=mysql_query($sqlb) or die('error in getting Sub client details');
while($rowb=mysql_fetch_array($resultb))
{
$subid="{$rowb['subid']}";
$subname="{$rowb['subname']}";
$subaddress="{$rowb['subaddress']}";
$subphone="{$rowb['subphone']}";
echo"$subname<br>$subaddress<br>$subphone";	
}
echo"	 
        </td>
      </tr>
      <br>
      <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=$clnt>";
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>
      <br>
      <tr>
        <td colspan=3>Name & address of consignee:</td>
        <td align=center colspan=3>";
		
$sqlc="SELECT * From clients WHERE subid='$deep2'";
$resultc=mysql_query($sqlc) or die('error in getting Sub client details');
while($rowc=mysql_fetch_array($resultc))
{
$subid="{$rowc['subid']}";
$subname="{$rowc['subname']}";
$subaddress="{$rowc['subaddress']}";
$subphone="{$rowc['subphone']}";
echo"$subname<br>$subaddress<br>$subphone";	
}
echo"</td>
      </tr>
";
}
}
?>
<?php
$sql="SELECT * FROM cert_aqis WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('error in fetch');
while($row=mysql_fetch_array($result))
{
?>
        <tr><td colspan="6"><hr>
          <strong><font color="#339933">DETAILS OF TREATMENT:</font></strong></td>
      </tr>
      <tr>
        <td width="33%" colspan="2">Name of fumigantion:<br><select name="namefumigant">
		<option>Methyl BROMIDE</option>
		<option>ALUMINIUM PHOSPHIDE</option>
		</select>
		</td>
        <td width="33%" colspan="2">Date of fumigation:<br><input type="text" name="datefumigantion" value="<?php echo"{$row['datefumigantion']}";?>"></td>
        <td width="33%" colspan="2">Place of fumigation:<br><input type="text" name="placefumigantion" value="<?php echo"{$row['placefumigantion']}";?>"></td>
      </tr>
      <tr>
        <td width="33%" colspan="2">Dosage rate of fumigation:<br><select name="dosagefumigant">
		<option>3 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>100 Gms Per Cubic Meter</option>	
		</select>
		</td>
        <td width="33%" colspan="2">Duration of fumigation:<br><select name="durationfumigantion">
		<option>24 Hour</option>
		<option>48 Hour</option>
		<option>72 Hour</option>
		<option>7 days</option>
		</select></td>
        <td width="33%" colspan="2">Minimum Air temperature:<br><input type="text" name="airtemp" value="<?php echo"{$row['airtemp']}";?>"></td>
      </tr>
	  
	 <tr><td colspan="4">Fumigation has been performed in a container/under gas tight enclosure/sheet:</td> 
	  <td colspan="2"><input type="radio" name="contype" value="Yes">Yes /  
          <input type="radio" name="contype" value="No">No /
          <input type="radio" name="contype" value="N/A" checked>N/A
	  </td></tr>
      <tr>
        <td colspan="4"> Containser pressure test conducted:</td>
        <td align="center" colspan="2"> <input type="radio" name="presstest" value="Yes">
          Yes / 
          <input type="radio" name="presstest" value="No">
          No / 
          <input type="radio" name="presstest" value="N/A" checked>
          N/A </td>
      </tr>
      <tr>
        <td colspan="4">Containser has 200mm free air space at top ofcontainer:</td>
        <td align="center" colspan="2"> <input type="radio" name="airspace" value="Yes">
          Yes / 
          <input type="radio" name="airspace" value="No">
          No / 
          <input type="radio" name="airspace" value="N/A" checked>
          N/A </td>
      </tr>
      <tr>
        <td colspan="4">In transit Fumigation-needs Ventillated at port of discharge:</td>
        <td align="center" colspan="2"> <input type="radio" name="discharge" value="Yes">
          Yes / 
          <input type="radio" name="discharge" value="No">
          No / 
          <input type="radio" name="discharge" value="N/A" checked>
          N/A </td>
      </tr>
      <tr>
        <td colspan="4">Container/Enclosure has been Ventilated to below 0.5ppm 
          v/v menthyl Bromide:</td>
        <td align="center" 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>
      <tr>
        <td colspan="6"><hr>
          <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 align="center" 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">Has plastic wrapping been used in the consignment?:</td>
        <td align="center" colspan="2"> <input type="radio" name="consignment" value="Yes">
          Yes / 
          <input type="radio" name="consignment" value="No">
          No / 
          <input type="radio" name="consignment" value="N/A" checked>
          N/A </td>
      </tr>
      <tr>
        <td colspan="4">If Yes,has the consignment been fumigated prior to wrapping?:</td>
        <td align="center" 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">Or has the plasstic wrapping been slashed,open or perforated 
          <br>
          in accordance with the wrapping and perfortion standard?</td>
        <td align="center" colspan="2"> <input type="radio" name="perforated" value="Yes">
          Yes / 
          <input type="radio" name="perforated" value="No">
          No / 
          <input type="radio" name="perforated" 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 align="center" 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="6"><hr><input type="checkbox"  <?php  if(isset($row['decla']) && $row['decla']!=""){ echo 'checked="checked"'; }?>   name="addition">&nbsp;&nbsp;<strong><font color="#339933">ADDITION DECLERATION:</font></strong></td>
      </tr>
	  
      <tr>
        <td colspan="6"><textarea name="deck" cols="100"><?=$row['decla']?></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>
	     <td colspan="6" align="center"><br><center><input type="submit" value="&raquo; Confirm details &raquo;" class="amo-submit"></center></td></tr>
	</form>
	</table>
<?php


}
?>


PK 99