PK

ADDRLIN : /home/anibklip/ulpc.in/bkp2025-26/
FLL :
Current File : //home/anibklip/ulpc.in/bkp2025-26/updatee.php

<?php 
	session_start();
	require_once 'common/common.php';
	require_once 'common/secure.php';
include("connexion.php");
include("head.php");
if($_SESSION[city]=='ludhiana')
{
	//$codemode="pcfcindi_pcfcindi_ldh2011";
	$codemode="pcfcindi_ldh2011";
}
else
{
	//$codemode="pcfcindi_pcfcindi_asr2011";
	$codemode="pcfcindi_asr2011";
}
/* $sql="INSERT INTO `$codemode`.`cancellations`
SELECT * FROM `$codemode`.`certificate` WHERE certificateno='$_GET[id]'";
$result=mysql_query($sql) or die('Allready Updated');*/ 



// Certificate
$din=$_REQUEST[issuedate];//date('d-m-Y');
$sqlb="UPDATE certificate SET issuedate='$din',desgood='$_GET[desgood]',quantitydeclared='$_GET[quantitydeclared]',distmarks='$_GET[distmarks]',conslinkno='$_GET[conslinkno]',portcountry='$_GET[portcountry]', nameship='$_GET[nameship]',countrydes='$_GET[countrydes]',declentry='$_GET[declentry]',namefumigant='$_GET[namefumigant]',datefumigantion='$_GET[datefumigantion]',placefumigantion='$_GET[placefumigantion]',dosagefumigant='$_GET[dosagefumigant]',durationfumigantion='$_GET[durationfumigantion]',airtemp='$_GET[airtemp]',contype='$_GET[contype]',presstest='$_GET[presstest]',airspace='$_GET[airspace]',discharge='$_GET[discharge]',enclosure='$_GET[enclosure]',commodity='$_GET[commodity]',consignment='$_GET[consignment]',wrapping='$_GET[wrapping]',perforated='$_GET[perforated]',height='$_GET[height]',decla='$_GET[deck]',consignment_link='$_GET[consignment_link]',container20feet='$_GET[container20feet]',container40feet='$_GET[container40feet]',container40HC='$_GET[container40HC]',containerLCL='$_GET[containerLCL]' WHERE certificateno='$_GET[id]'";
$resultb=mysql_query($sqlb) or die('error in certificate ');
echo "<center>Updated sucessfully<br><br><a href=search.php>click here To Search again</a></center>";
?>
<table align="center" width="100%" border="0">
<tr><td>
<?php
	if(isset($_GET['formno']) && $_GET['formno']=="e" ) {
	
		echo '<form action="printcertsse.php" method="get" target="_blank">';	
	
	}else{
	
		echo '<form action="printcertss.php" method="get" target="_blank">';	
	
	}
 
?>
 
<input type="hidden" name="formno" value="<?php echo"$_GET[formno]";?>">
<input type="hidden" name="dtype" value="<?php echo"$_GET[dtype]";?>">
<input type="hidden" name="clntid" value="<?php echo"$_GET[clntid]";?>">
<input type="hidden" name="certificateno" value="<?php echo"$_GET[id]";?>">
<input type="hidden" name="issuedate" value="<?php echo"$_GET[issuedate]";?>">
<input type="hidden" name="desgood" value="<?php echo"$_GET[desgood]";?>">
<input type="hidden" name="quantitydeclared" value="<?php echo"$_GET[quantitydeclared]";?>">
<input type="hidden" name="invoice" value="<?php echo"$_GET[distmarks]";?>">
<input type="hidden" name="conslinkno" value="<?php echo"$_GET[conslinkno]";?>">
<input type="hidden" name="portcountry" value="<?php echo"$_GET[portcountry]";?>">
<input type="hidden" name="countrydes" value="<?php echo"$_GET[countrydes]";?>">
<input type="hidden" name="declentry" value="<?php echo"$_GET[declentry]";?>">
<input type="hidden" name="nameaddress" value="<?php echo"$_GET[nameaddress]";?>">
<input type="hidden" name="declarednameaddress" value="<?php echo"$_GET[declarednameaddress]";?>">
<input type="hidden" name="namefumigant" value="<?php echo"$_GET[namefumigant]";?>">
<input type="hidden" name="datefumigantion" value="<?php echo"$_GET[datefumigantion]";?>">
<input type="hidden" name="placefumigantion" value="<?php echo"$_GET[placefumigantion]";?>">
<input type="hidden" name="dosagefumigant" value="<?php echo"$_GET[dosagefumigant]";?>">
<input type="hidden" name="durationfumigantion" value="<?php echo"$_GET[durationfumigantion]";?>">
<input type="hidden" name="airtemp" value="<?php echo"$_GET[airtemp]";?>">
<input type="hidden" name="contype" value="<?php echo"$_GET[contype]";?>">
<input type="hidden" name="airspace" value="<?php echo"$_GET[airspace]";?>">
<input type="hidden" name="presstest" value="<?php echo"$_GET[presstest]";?>">
<input type="hidden" name="discharge" value="<?php echo"$_GET[discharge]";?>">
<input type="hidden" name="enclosure" value="<?php echo"$_GET[enclosure]";?>">
<input type="hidden" name="commodity" value="<?php echo"$_GET[commodity]";?>">
<input type="hidden" name="consignment" value="<?php echo"$_GET[consignment]";?>">
<input type="hidden" name="wrapping" value="<?php echo"$_GET[wrapping]";?>">
<input type="hidden" name="perforated" value="<?php echo "$_GET[perforated]"; ?>">
<input type="hidden" name="height" value="<?php echo"$_GET[height]";?>">
<input type="hidden" name="cmntz" value="<?php echo"$_GET[cmntz]";?>">
<input type="hidden" name="deck" value="<?php echo"$_GET[deck]";?>">
<input type="hidden" name="addition" value="<?php echo"$_GET[addition]";?>">
<input type="hidden" name="nameship" value="<?php echo"$_GET[nameship]";?>">

<input type="hidden" name="consignment_link" value="<?php if(isset($_GET['consignment_link']) && $_GET['consignment_link']!=""){ echo $_GET['consignment_link']; }else{ echo "N/A"; } ?>">
<input type="hidden" name="container20feet" value="<?php echo"$_GET[container20feet]";?>" >
<input type="hidden" name="container40feet" value="<?php echo"$_GET[container40feet]";?>" >
<input type="hidden" name="container40HC" value="<?php echo"$_GET[container40HC]";?>" >
<input type="hidden" name="containerLCL" value="<?php echo"$_GET[containerLCL]";?>" >

<input type="submit" value="Print Certificate"></form>
</td>
</tr></table>
<?php
include("foot.php");
?>


PK 99