
PK 
<head>
</head>
<?php
//$sql="SELECT * FROM certificate WHERE certificateno='$_GET[id]' AND certypo='a'";
$sql="SELECT * FROM cert_alp WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('error in fetch');
if($rowcc=mysql_fetch_array($result, MYSQL_ASSOC)){
$dtype="{$rowcc['licetype']}";
$clnt="{$rowcc['clnid']}";
$deep="{$rowcc['nameaddress']}";
$deep2="{$rowcc['declarednameaddress']}";
foreach($rowcc as $k=>$v){
$_POST[$k]=$v;
}
}
//echo "<pre>";print_r($rowcc);echo "</pre>";
?>
<form action="update/update_alp.php" method="post">
<!-- <form action="form/confirmform_alp.php" method="post" onsubmit="return checkform(this);"> -->
<input type="hidden" name="formno" value="<?php echo $_POST[formno] ;?>">
<input type="hidden" name="dtype" value="<?php echo $_POST[dtype] ;?>">
<input type="hidden" name="licetype" value="<?php echo $_POST[licetype] ;?>">
<input type="hidden" name="certypo" value="<?php echo $_POST[certypo] ;?>">
<input type="hidden" name="sub_c" value="<?php echo $_POST[sub_c];?>">
<input type="hidden" name="cert_id" value="<?php echo $_POST[certificateno]; ?>">
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<tr>
<td valign="top" colspan="8">
<center><h3> FUMIGATION CERTIFICATE - ALP</h3></center>
</td>
</tr>
<!-- <tr>
<td valign="top" colspan="4">Dte PPQS Regd.No.:136/ALP</td>
<td valign="top" colspan="4"></td>
</tr> -->
<tr>
<td valign="top" colspan="4">Treatment Certificate No.:
<em>Auto assigned</em>
</td>
<td colspan="4">
Date:<input type="text" name="issuedate" class="datepicker" value="<?php echo $rowcc[issuedate]; ?>">
</td>
</tr>
<tr>
<td valign="top" colspan="4">Country</td>
<td colspan="4"><input type="text" name="country" value="<?php echo $_POST['country']; ?>" /></td>
</tr>
<tr>
<td colspan="8" align="center">
<hr>
<font color="#339933"><strong>DETAILS OF TREATMENT:</strong></font>
</td>
</tr>
<tr>
<td colspan="2">Name of fumigation:<br></td>
<td colspan="2">
<!-- <input type="text" name="namefumigant" value="<?php echo $_POST['namefumigant']; ?>" /> -->
<select name="namefumigant">
<option value="">Select</option>
<option <?php echo($_POST[namefumigant]=="METHYL BROMIDE"?"selected":"")?>>METHYL BROMIDE</option>
<option <?php echo($_POST[namefumigant]=="ALUMINIUM PHOSPHIDE"?"selected":"")?>>ALUMINIUM PHOSPHIDE</option>
</select>
<!-- <select name="namefumigant" required>
<option value="">Select</option>
<?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)){
if($r[val]==$_POST[namefumigant]){
$sel="selected";
}else{
$sel="";
}
?>
<option <?php echo $sel?> value='<?php echo $r[val]?>'><?php echo $r['val']?></option>
<?php
}*/
?>
</select> -->
</td>
<td colspan="2">Dosage rate of fumigation:<br></td>
<td colspan="2">
<select name="dosagefumigant">
<option value="">Select</option>
<?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
}*/
?>
<option <?php echo($_POST[dosagefumigant]=="6 Gms Per Cubic Meter"?"selected":"")?>>6 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="12 Gms Per Cubic Meter"?"selected":"")?>>12 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="16 Gms Per Cubic Meter"?"selected":"")?>>16 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="24 Gms Per Cubic Meter"?"selected":"")?>>24 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="32 Gms Per Cubic Meter"?"selected":"")?>>32 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="40 Gms Per Cubic Meter"?"selected":"")?>>40 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="48 Gms Per Cubic Meter"?"selected":"")?>>48 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="56 Gms Per Cubic Meter"?"selected":"")?>>56 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="64 Gms Per Cubic Meter"?"selected":"")?>>64 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="80 Gms Per Cubic Meter"?"selected":"")?>>80 Gms Per Cubic Meter</option>
<option <?php echo($_POST[dosagefumigant]=="9 Gms Per Ton"?"selected":"")?>>9 Gms Per Ton</option>
<option <?php echo($_POST[dosagefumigant]=="12 Gms Per Ton"?"selected":"")?>>12 Gms Per Ton</option>
</select>
</td>
</tr>
<tr>
<td colspan="4" nowrap>
Date of Fumigation:
<select name="fumi_completed">
<option value="" <?php echo ($_POST['fumi_completed']==0?"selected":""); ?>>Blank</option>
<option value="1" <?php echo ($_POST['fumi_completed']?"selected":""); ?>>Completed</option>
</select>
<!-- <input type="text" name="fumi_completed" value="<?php echo $_POST['fumi_completed']; ?>" /> -->
<input type="text" name="datefumigantion" class="datepicker" value="<?php echo $_POST['datefumigantion']; ?>" />
</td>
<td colspan="2">Place of Fumigation:</td>
<td colspan="2">
<input type="text" name="placefumigantion" value="<?php echo $_POST['placefumigantion']; ?>" />
</td>
</tr>
<tr>
<td colspan="2">Duration of Exposure:<br></td>
<td colspan="2">
<select name="durationfumigantion">
<option value="">Select</option>
<?php
/*$q="select * from master where typ='duration' 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
}*/
?>
<option <?php echo($_POST[durationfumigantion]=="12 Hour"?"selected":"")?>>12 Hour</option>
<option <?php echo($_POST[durationfumigantion]=="24 Hour"?"selected":"")?>>24 Hour</option>
<option <?php echo($_POST[durationfumigantion]=="48 Hour"?"selected":"")?>>48 Hour</option>
<option <?php echo($_POST[durationfumigantion]=="72 Hour"?"selected":"")?>>72 Hour</option>
<option <?php echo($_POST[durationfumigantion]=="120 Hour"?"selected":"")?>>120 Hour</option>
</select>
</td>
</tr>
<tr>
<td valign="top" colspan="2">Humidity During Fumigation:</td>
<td colspan="2"><input type="text" name="airtemp" value="<?php echo $_POST['airtemp']; ?>" /></td>
<td valign="top" colspan="2">Fumigation Performed under Gastight Sheets:</td>
<td colspan="2"><input type="text" name="gsheet" value="<?php echo $_POST['presstest']; ?>" /></td>
</tr>
<tr>
<td valign="top" colspan="6">Average ambient temperature during fumigation (Deg. C.):</td>
<td colspan="2"><input type="text" name="gas_tight_value" value="<?php echo $_POST['gas_tight_value']; ?>" ></td>
<!-- <td valign="top" colspan="6">If Containers are not fumigated Under Gas-Tight sheers,Pressure decay Value (From 200-100 Pascal's Insecond:</td>
<td colspan="2"><input type="text" name="gas_tight_value" value="<?php echo $_POST['gas_tight_value']; ?>" ></td> -->
</tr>
<tr>
<td colspan="8" align="center"><strong>Descripition of Goods</strong></td>
</tr>
<tr>
<td valign="top" colspan="4">Container Number(or Numerical Link)./ Seal Number:</td>
<td colspan="4"><input type="text" name="conslinkno" value="<?php echo $_POST['conslinkno']; ?>"></td>
</tr>
<tr>
<td valign="top" colspan="4">Port of Discharge:</td>
<td colspan="4"><input type="text" name="port" value="<?php echo $_POST['portcountry']; ?>"></td>
</tr>
<tr>
<td valign="top" colspan="4">Vessal Name:</td>
<td colspan="4"><input type="text" name="vessal" value="<?php echo $_POST['nameship']; ?>"></td>
</tr>
<!-- <tr>
<td valign="top" colspan="4">Name & Address Of Exporter:</td>
<td colspan="4"><?php echo"$_GET[clntid]";?></td>
</tr> -->
<tr>
<td valign="top" colspan="4">Type and Description of Cargo:</td>
<td colspan="4"><input type="text" name="desc" value="<?php echo $_POST['contype']; ?>"></td>
</tr>
<tr>
<td valign="top" colspan="4">Quantity(MTS)/No Of Packages/No Of Pieces:</td>
<td colspan="4"><input type="text" name="quantitydeclared" value="<?php echo $_POST['quantitydeclared']; ?>"></td>
</tr>
<tr>
<td valign="top" colspan="4">Description Of Packing Material:</td>
<td colspan="4"><input type="text" name="packing" value="<?php echo $_POST['desgood']; ?>"></td>
</tr>
<tr>
<td valign="top" colspan="4">Shipping marks or Brand:</td>
<td colspan="4"><input type="text" name="brand" value="<?php echo $_POST['brand']; ?>" /></td>
</tr>
<!-- <tr>
<td valign="top" colspan="4">Invoice No.& Date:</td>
<td colspan="4"><input type="text" name="invoice"></td>
</tr> -->
<tr>
<td valign="top" colspan="4">Additional Declaration:</td>
<td colspan="4"><textarea name="decla" rows="2" cols="60"><?php echo $_POST['decla']; ?></textarea></td>
</tr>
<tr>
<td valign="top" colspan="4">Distinguishing Mark:</td>
<td colspan="4"><input type="text" name="distmarks" value="<?php echo ($_POST[distmarks]?$_POST[distmarks]:"")?>" /></td>
</tr>
<tr>
<td valign="top" colspan="4">
<input type="checkbox" <?php echo ($_POST[shiper_containerno_shw]?"checked":"")?> value="1" name="shiper_containerno_shw" />
As per shipper Cargo is Loaded in Container No:
</td>
<td colspan="4"><input type="text" name="shiper_containerno" value="<?php echo $_POST[shiper_containerno]?>" /></td>
</tr>
<tr>
<td valign="top" colspan="4">
<input type="checkbox" <?php echo ($_POST[consignment_details_shw]?"checked":"")?> value="1" name="consignment_details_shw" />
Consignment details as declared by the Exporter:
</td>
<td colspan="4"><input type="text" name="consignment_details" value="<?php echo $_POST[consignment_details]?>" /></td>
</tr>
<tr>
<td valign="top" colspan="8" align="center">P.S.No Liability to the Certifying or Its proprietors or repersentative with Respect to this Certificate.</td>
</tr>
<!-- <tr>
<td valign="top" colspan="4"><strong>Encloser Area of Fumigation</strong>:</td>
<td colspan="4"><input type="text" name="container20feet" value="<?php echo $_POST[container20feet]?>" /> Cubic meters</td>
</tr> -->
<tr>
<td colspan="8" align="center">
<br>
<center><input type="submit" value="» Confirm details »" class="amo-submit"></center>
</td>
</tr>
</table>
</form>
<script>
$(".datepicker").datepicker({
dateFormat: 'yy-mm-dd'
});
</script>


PK 99