PK

ADDRLIN : /home/anibklip/aaravpest.in/gujarat25/forms/
FLL :
Current File : /home/anibklip/aaravpest.in/gujarat25/forms/form_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>

<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
	<!-- <form action="certificate-nspm-confirm.php" method="get" onsubmit="return checkform(this);"> -->
	<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="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]"; ?>">
		<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.:438/MB</td>
			<td valign="top" colspan="4">Date:22/01/14</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 date('Y-m-d'); ?>">
				<script>
					$(".datepicker").datepicker({
						dateFormat: 'yy-mm-dd'
					});
				</script>
			</td>
		</tr>

		<tr>
			<td align="left" colspan="6"><strong><font color="#339933">PARTY DETAILS:</font> </strong></td>
		</tr>
		<tr>
			<td valign="top" colspan="4">
				<b>Name & Address of Consignor/Exporter</b>:<br/>
				<!-- <select class="js-example-basic-single" name="state">
					<option value="AL">Alabama</option>
					<option value="WY">Wyoming</option>
				</select>
				<script type="text/javascript">
					$(document).ready(function() {
						$('.js-example-basic-single').select2();
					});
				</script> -->
				<select class="select2" style="width:350px;" required name="clntid">
					<option value="">Select</option>
					<?php
					$rs = mysql_query('select headid, headname, headaddress from parties where status="active" && 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['clntid']==$headid){
								$sel="selected";
							}else{
								$sel="";
							}
							?>
							<option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option>
							<?php
						}
					}
					?>
				</select>
				<!-- <input type="text" size="66" name="clntid" id="exporterslist" value="<?php echo ($_POST['clntid']); ?>"/> -->
            </td>
			<td valign="top" colspan="4">
				<b>Name & Address Of Consignee/Importer</b>:<br/>
				<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" && 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="";
							}
							?>
							<option <?php echo $sel?> value="<?php echo $headid?>"><?php echo $headname?> <?php echo $headaddress?></option>
							<?php
						}
					}
					?>
				</select>
			</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">
				<select name="namefumigant">
					<option <?php echo($_POST[namefumigant]=="METHYL BROMIDE"?"selected":"")?>>METHYL BROMIDE</option>
					<option <?php echo($_POST[namefumigant]=="ALUMINIUM PHOSPHIDE"?"selected":"")?>>ALUMINIUM PHOSPHIDE</option>
					<option <?php echo($_POST[namefumigant]=="."?"selected":"")?>>.</option>				
				</select>
			</td>
			<td colspan="2">Dosage rate of fumigation:<br></td>
			<td colspan="2">
				<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>
		</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 <?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]=="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 $_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">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]:"N/A")?>" /></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 colspan="8" align="center">
				<br>
				<center><input type="submit" value="&raquo; Confirm details &raquo;" class="amo-submit"></center>
			</td>
		</tr>
	</form>
</table>


PK 99