PK

ADDRLIN : /home/anibklip/pcfcindia.com/24-25/
FLL :
Current File : /home/anibklip/pcfcindia.com/24-25/forme.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
//$sql="SELECT * FROM certificate WHERE certificateno='$_GET[id]' AND certypo='e'";
$sql="SELECT * FROM cert_aqis WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('error in fetch');
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="updatee.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"e";?>">
	<input type="hidden" name="dtype" value="<?php echo"$dtype";?>">
		<input type="hidden" name="dat" value="<?php echo"$dat";?>">
<?php
$dat=date('d-m-Y');
?>
      <tr>
        <td align="center" colspan="6"><center>
       <h2>PEST CONTROL & FUMIGATION COMPANY</h2>
      </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 confirm to the current Phytosanitary .Requirements 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">Target of fumigation:</td>
        <td width="15%">
		<select name="desgood" id="desgood" >
        	<option value="Commodity" <?php if($row['desgood']=="Commodity"){ echo 'selected="selected"'; } ?> >Commodity</option>
            <option value="Packing" <?php if($row['desgood']=="Packing"){ echo 'selected="selected"'; } ?> >Packing</option>
            <option value="Both Commodity and Packing" <?php if($row['desgood']=="Both Commodity and Packing"){ echo 'selected="selected"'; } ?>>Both Commodity and Packing</option>
        </select>
		
		 
 		</td>
        <td align="right" colspan="2">	Commodity:</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"> Consignment link:<br /><br />Container No:</td>
		<td><input type="text" name="consignment_link" value="<?php echo"{$row['consignment_link']}";?>"> <br /><br /><input type="text" name="nameship" value="<?php echo"{$row['nameship']}";?>"></td>
        
        <td align="right" colspan="2">Country of origin:</td>
        <td><input type="text" name="portcountry" value="<?php echo"{$row['portcountry']}";?>"></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">Port of loading:</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 certificate WHERE certificateno='$_GET[id]' AND certypo='e'";
$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">AQIS prescribed dose rate (g/m3):<br><select name="namefumigant">
		<option>METHYL BROMIDE</option>
		<option>ALUMINIUM PHOSPHIDE</option>
		</select>
		</td>
        <td width="33%" colspan="2">Date frrpigation completed:<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>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>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"{$row['airtemp']}";?>"></td>
      </tr>
	  
	  <tr><td colspan="4">Stack under sheet:</td> 
	  <td colspan="2">
      	<?php
			if($row['contype']=="Yes"){
				$selectedContype = 'checked="checked"';
			}else if($row['contype']=="No"){
				$selectedContype2 = 'checked="checked"';
			}
		?>
      	<input type="radio" name="contype"  <?=$selectedContype;?> value="Yes">Yes /  
          <input type="radio" name="contype" <?=$selectedContype2;?> value="No">No
	  </td></tr>
      <tr>
        <td colspan="4"> Container/s under sheet:</td>
        <td align="center" colspan="2">
        <?php
			if($row['presstest']=="Yes"){
				$selectedpresstest = 'checked="checked"';
			}else if($row['presstest']=="No"){
				$selectedpresstest2 = 'checked="checked"';
			}
		?>
         <input type="radio" name="presstest" <?=$selectedpresstest;?> value="Yes">
          Yes / 
          <input type="radio" name="presstest" <?=$selectedpresstest2;?> value="No">
          No  </td>
      </tr>
      <tr>
        <td colspan="4">Permanent Chamber:</td>
        <td align="center" colspan="2">
        <?php
			if($row['airspace']=="Yes"){
				$selectedairspace = 'checked="checked"';
			}else if($row['airspace']=="No"){
				$selectedairspace2 = 'checked="checked"';
			}
		?>
         <input type="radio" name="airspace" <?=$selectedairspace;?> value="Yes">
          Yes / 
          <input type="radio" name="airspace" <?=$selectedairspace2;?> value="No">
          No  </td>
      </tr>
      <tr>
        <td colspan="4">Pressure tested container/s :</td>
        <td align="center" colspan="2">
        <?php
			if($row['discharge']=="Yes"){
				$selecteddischarge = 'checked="checked"';
			}else if($row['discharge']=="No"){
				$selecteddischarge2 = 'checked="checked"';
			}
		?>
         <input type="radio" name="discharge" <?=$selecteddischarge;?> value="Yes">
          Yes / 
          <input type="radio" name="discharge" <?=$selecteddischarge2;?> value="No">
          No
            </td>
      </tr>
     <!-- <tr>
        <td colspan="4">Container/Enclosure has been Ventilated to below 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">Dose the target of fumigation conform to the AQIS plastic wrapping, impervious surface and timber thickness requirements at the time of fumigation?</td>
        <td align="center" colspan="2">
         <?php
			if($row['consignment']=="Yes"){
				$selectedconsignment = 'checked="checked"';
			}else if($row['consignment']=="No"){
				$selectedconsignment2 = 'checked="checked"';
			}
		?>
         <input type="radio" name="consignment" <?=$selectedconsignment;?> value="Yes">
          Yes / 
          <input type="radio" name="consignment" <?=$selectedconsignment2;?>  value="No">
          No 
           </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">Ventilation Final TLV reading(ppm):</td>
        <td align="center" colspan="2"> <input type="text"  name="perforated" value="<?=$row['perforated'];?>">  </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"><strong><font color="#339933">ADDITION DECLERATION:</font></strong></td>
      </tr>
      <tr>
        <td colspan="6">I declare that these details are true and correct and
		 the fumigation has been carried out in accordance with the NSPM -12 <br>
		  <textarea name="deck" cols="100"><?=$row['decla'];?></textarea>
		  </td>
      </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" value="<?=$row['container20feet'];?>" /> <br /><br />
         &nbsp; &nbsp; 40&rsquo; &nbsp; &nbsp; &nbsp; &nbsp;<input type="text" name="container40feet" value="<?=$row['container20feet'];?>" /> <br /><br />
         &nbsp; &nbsp;  40HC &nbsp; &nbsp; <input type="text" name="container40HC"  value="<?=$row['container40HC'];?>" /> <br /><br />
         &nbsp; &nbsp; LCL &nbsp; &nbsp; &nbsp; <input type="text" name="containerLCL" value="<?=$row['containerLCL'];?>"  /> <br /><br />
        
        
        </td>
      </tr>
      
	<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