PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp2019/update/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp2019/update/nspm.php

<head>
	<script language="JavaScript" type="text/javascript">
		<!--
		function checkform ( form ){
		 // ** START **
		 if (form.certificateno.value == "") {
			alert( "Please enter Certificate no. here." );
			form.certificateno.focus();
			return false ;
		 }
		 // ** END **

		 // ** START **
		 if (form.datefumigantion.value == "") {
			alert( "Please enter date and place of fumigation." );
			form.datefumigantion.focus();
			return false ;
		 }
		 // ** END **
		 // ** START **
		 if (form.temp.value == "") {
			alert( "Please enter Temp here." );
			form.temp.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.volume.value == "") {
			alert( "Please enter Volume." );
			form.volume.focus();
			return false ;
		 }
		 // ** END **
		 // ** START **
		 if (form.value.value == "") {
			alert( "Please enter Value:" );
			form.value.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.gsheet.value == "") {
			alert( "Please enter gsheet:" );
			form.gsheet.focus();
			return false ;
		 }
		 // ** END **
		 
		  // ** START **
		 if (form.seelno.value == "") {
			alert( "Please enter seel no:" );
			form.seelno.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.port.value == "") {
			alert( "Please enter Destination Port:" );
			form.port.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.vessal.value == "") {
			alert( "Please enter vessal:" );
			form.vessal.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.desc.value == "") {
			alert( "Please enter Desc:" );
			form.desc.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.quantity.value == "") {
			alert( "Please enter quantity:" );
			form.quantity.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.packing.value == "") {
			alert( "Please enter packing value:" );
			form.packing.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.brand.value == "") {
			alert( "Please enter brand:" );
			form.brand.focus();
			return false ;
		 }
		 // ** END **
		  // ** START **
		 if (form.invoice.value == "") {
			alert( "Please enter invoice no. and date :" );
			form.invoice.focus();
			return false ;
		 }
		 // ** END **
		 // ** START **
		 if (form.amount.value == "") {
			alert( "Please enter amount here:" );
			form.amount.focus();
			return false ;
		 }
		 // ** END **
		 
			return true ;
		}
		//-->
	</script>
</head>


<?php
$sql="SELECT * FROM cert_nspm WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('error in fetch');
if($row=mysql_fetch_array($result)){
	$dtype="{$row['licetype']}";
	$clnt="{$row['clnid']}";
	$deep="{$row['nameaddress']}";
	$deep2="{$row['declarednameaddress']}";
}
?>
<form action="update/update_nspm.php" method="post" 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="dtype" value="<?php echo"$dtype";?>">
	<input type="hidden" name="declarednameaddress" value="<?php echo"$deep2";?>">

	<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
		<tr>
			<td valign="top" colspan="8">
				<center>
					<h3> FUMIGATION CERTIFICATE - NSPM</h3>
				</center>
			</td>
		</tr>
		<tr>
			<td colspan="8" align="center">
				<p>This is to certify that the goods 
					deseibed below were treated in accordance with the fumigation treatment 
					requirements of importing country USA and declared &nbsp; that the consignment 
					has been verified free of impervious surfaces/layers such as plastic 
					wrapping or laminated plastic films,lacqured or painted surface,aluminium 
					foil,tarred or waxed paper etc.that may adversely effect the penetration 
					of the fumigant,prior to fumigation.
				</p>
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Dte PPQS Regd.No.:104/MB</td>
			<td valign="top" colspan="4"><!-- Date:15/05/2017 --></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 $row[issuedate]; ?>" />
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Country</td>
			<td colspan="4"><input type="text" name="country" value="<?php echo $row['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">
				<select name="namefumigant">
					<option <?php echo($row[namefumigant]=="METHYL BROMIDE"?"selected":"")?>>METHYL BROMIDE</option>
					<option <?php echo($row[namefumigant]=="ALUMINIUM PHOSPHIDE"?"selected":"")?>>ALUMINIUM PHOSPHIDE</option>
					<option <?php echo($row[namefumigant]=="."?"selected":"")?>>.</option>				
				</select>
			</td>
			<td colspan="2">Dosage rate of fumigation:<br></td>
			<td colspan="2">
				<select name="dosagefumigant">
					<option <?php echo($row[dosagefumigant]=="6 Gms Per Cubic Meter"?"selected":"")?>>6 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="16 Gms Per Cubic Meter"?"selected":"")?>>16 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="24 Gms Per Cubic Meter"?"selected":"")?>>24 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="32 Gms Per Cubic Meter"?"selected":"")?>>32 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="40 Gms Per Cubic Meter"?"selected":"")?>>40 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="48 Gms Per Cubic Meter"?"selected":"")?>>48 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="56 Gms Per Cubic Meter"?"selected":"")?>>56 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="64 Gms Per Cubic Meter"?"selected":"")?>>64 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="80 Gms Per Cubic Meter"?"selected":"")?>>80 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="96 Gms Per Cubic Meter"?"selected":"")?>>96 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="100 Gms Per Cubic Meter"?"selected":"")?>>100 Gms Per Cubic Meter</option>
					<option <?php echo($row[dosagefumigant]=="9 Gms Per Ton"?"selected":"")?>>9 Gms Per Ton</option>
					<option <?php echo($row[dosagefumigant]=="12 Gms Per Ton"?"selected":"")?>>12 Gms Per Ton</option>

					<option <?php echo($row[dosagefumigant]=="."?"selected":"")?>>.</option>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="4" nowrap>
				Date of Fumigation:
				<select name="fumi_completed">
					<option value="" <?php echo ($row['fumi_completed']==0?"selected":""); ?>>Blank</option>
					<option value="1" <?php echo ($row['fumi_completed']?"selected":""); ?>>Completed</option>
				</select>
				<!-- <input type="text" name="fumi_completed" value="<?php echo row['fumi_completed']; ?>" /> -->
			 
				<input type="text" name="datefumigantion" class="datepicker" value="<?php echo $row['datefumigantion']; ?>" />
			</td>
			<td colspan="2">Place of Fumigation:</td>
			<td colspan="2">
				<input type="text" name="placefumigantion" value="<?php echo $row['placefumigantion']; ?>" />
			</td>
		</tr>
		<tr>
			<td colspan="2">Duration of Exposure:<br></td>
			<td colspan="2">
				<select name="durationfumigantion">
					<option <?php echo($row[durationfumigantion]=="24 Hour"?"selected":"")?>>24 Hour</option>
					<option <?php echo($row[durationfumigantion]=="48 Hour"?"selected":"")?>>48 Hour</option>
					<option <?php echo($row[durationfumigantion]=="72 Hour"?"selected":"")?>>72 Hour</option>
					<option <?php echo($row[durationfumigantion]=="7 days"?"selected":"")?>>7 days</option>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top" colspan="2">Temparure During Fumigation:</td>
			<td colspan="2"><input type="text" name="airtemp" value="<?php echo $row['airtemp']; ?>" /></td>
			<td valign="top" colspan="2">Fumigation Performed under Gastight Sheets:</td>
			<td colspan="2"><input type="text" name="gsheet" value="<?php echo $row['presstest']; ?>" /></td>
		</tr>
		<tr>
			<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 $row['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 $row['conslinkno']; ?>"></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Port of Discharge:</td>
			<td colspan="4"><input type="text" name="port" value="<?php echo $row['portcountry']; ?>"></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Vessal Name:</td>
			<td colspan="4"><input type="text" name="vessal" value="<?php echo $row['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 $row['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 $row['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 $row['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 $row['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 $row['decla']; ?></textarea></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">Distinguishing Mark:</td>
			<td colspan="4"><input type="text" name="distmarks" value="<?php echo ($row[distmarks]?$row[distmarks]:"N/A")?>" /></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">
				<input type="checkbox" <?php echo ($row[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 $row[shiper_containerno]?>" /></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">
				<input type="checkbox" <?php echo ($row[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 $row[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 colspan="8" align="center">
				<center><input type="submit" value="&raquo; Update Details &raquo;" class="amo-submit"></center>
			</td>
		</tr>
	</table>
</form>

<script>
	$(".datepicker").datepicker({
		dateFormat: 'yy-mm-dd'
	});
</script>


PK 99