PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp17/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp17/updateb.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_ldh2011";
}
else
{

$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]' 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>";
$certno=getColumn("certificate", "certificateno", $_GET[id], "certno");
?>

<table align="center" width="100%" border="0">
<tr><td>
<form action="printcerts.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="0<?php echo"$certno";?>">
<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="distmarks" 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="submit" value="Print Certificate"></form>
</td>
</tr></table>
<?php
include("foot.php");
?>


PK 99