PK

ADDRLIN : /home/anibklip/vpgldh.com/vpgbk15/webmanager/xprint/
FLL :
Current File : /home/anibklip/vpgldh.com/vpgbk15/webmanager/xprint/invoice_print.php

<?
	

	include".././includes/dbconnect2.php";
	$sql1="SELECT * FROM invoices WHERE invid='$_GET[id]'";
	$result1=mysql_query($sql1) or die('error in fetch');
	$row1=mysql_fetch_array($result1);
	
include".././includes/dbconnect.php";
	$sql="SELECT * FROM certificates WHERE certificateno='$row1[certid]'";
	$result=mysql_query($sql) or die('error in fetch');
	$row=mysql_fetch_array($result);
?>
<head>
<style type="text/css">
.printo {
		
		 border:solid
			
		}
body {
	margin-left: 70px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<br><br>
 <p>&nbsp;</p> <p>&nbsp;</p>
<body onLoad="window.print(); window.close();">

<table width="95%">
<tr>
	<td colspan="6" align="center"><p>&nbsp;</p> <p>&nbsp;</p>
	  <p>&nbsp;</p>
	  <h2>INVOICE</h2>
	  <p>&nbsp;</p>
	</tr>

<tr>
    <td  width="50%" colspan="4"><strong>Invoice No.:
<? 
echo "LDH";
$sqlu="SELECT * FROM signature";
$resultu=mysql_query($sqlu) or die('error in fetch');
$rowu=mysql_fetch_array($resultu);
?>

/<?php echo "$_GET[id]";?>/<? echo $rowu['year'];?></strong></font></td>

<td colspan="2" align="center" valign="top"><strong>Invoice Date: <?php echo "$row1[dtd]"; ?></strong></strong>
	</td>
</tr>
</table>
<?php
	if($row1['ajtid']=="")
	{
		$exp1 = explode(',',$row1['clnid']);
		$ln1 = count($exp1);
		for($i=1; $i<$ln1; $i++)
		{
			if($i==1)
			{
				echo "<strong>".$exp1[$i]."</strong><br />";
			}
			else
			{
			echo $exp1[$i]."<br />";
			}
		}
	}
	else
	{
		$exp1 = explode(',',$row1['ajtid']);
		$ln1 = count($exp1);
		for($i=1; $i<$ln1; $i++)
		{
			if($i==1)
			{
				echo "<strong>".$exp1[$i]."</strong><br />";
			}
			else
			{
			echo $exp1[$i]."<br />";
			}
		}
	}
?>

<br>
<table width="95%" border=1px cellpadding="0px" cellspacing="0px" bordercolor="black">
<tr>
	<th width="55%" align="left">
	&nbsp;Certificate No:/<?php echo "LDH"." /$row[certificateno]";?>/<? echo $rowu['year'];?></th>
	<th width="35%" align="left">&nbsp;Particulars </th>
	<th width="10%">Amount</th>
</tr>
<tr>
	<td width="55%" >
	<?php
		if($row['conslinkno']=="")
		{
		?>
			<strong>&nbsp;Charges for Fumigation Export Cargo<br /><br /><strong>&nbsp;as per Invoice No.:</strong>
		<?php echo $row['distmarks'];?>
		<?php
		}
		else
		{
		?>
		<strong>&nbsp;Charges of Fumigation Container No.</strong><br /><?php echo $row['conslinkno'];?><br /><br /><strong>&nbsp;as per Invoice No.:</strong>
		<?php echo $row['distmarks'];?>
		<?php
		}
	?>	</td>
	<td>
		<strong>&nbsp;Description of Goods:</strong><br /><?php echo $row['desgood'];?><br /><br />
		<strong>&nbsp;Destination Country:</strong><br /><?php echo $row['countrydes'];?>	</td>
	<td align="center" valign="middle">
		<?php echo($row1['amount']); ?>	</td>
</tr>

<?php
	if($row1['ajtid']!="")
	{
?>
	<tr bordercolor="#000000">
		<td colspan="3" align="center">
		  <div align="left">&nbsp;
		    <?php
			$exp1 = explode(',',$row1['clnid']);
			$ln1 = count($exp1);
			for($i=1; $i<$ln1; $i++)
			{
				if($i==1)
				{
					echo "<strong>".$exp1[$i]."</strong>";
				}
				else
				{
				echo ", ".$exp1[$i];
				}
			}
		?>
          </div></td>
  </tr>
<?php
	}
?>
<tr>
	<td width="90%"colspan="2" align="left" bordercolordark="#333333">&nbsp;Remarks:</td>
	<td align="center" valign="middle">&nbsp;		</td>
</tr>
<tr>
	<td width="90%"colspan="2" align="right">
  <!--<strong>Service Tax</strong>--></tr>
<tr>
	<td width="90%"colspan="2" align="right">
		<strong>Total &nbsp;&nbsp;</strong>	</td>
	<td align="center" valign="middle">
	<?php
		if($row1['grandtotal']==0)
		{
			echo"n/a";
		}
		else
		{
			echo $row1['grandtotal'];
		}
	?>	</td>
</tr>
</table>
<br />
<table width="95%" >
	<tr>
		<td>All Payments to be made A/c Payee cheque /D.D only</td>
	</tr>
	<tr>
		<td>PAN NO. ABSPG9922E</td>
	</tr>
	<tr>
		<td align="right">for VED PARKASH GOEL & COMPANY</td>
	</tr>
	<tr height="30px">
		<td></td>
	</tr>
	<tr>
		<td align="right">Authorised Signatory</td>
	</tr>
</table>

</body>


PK 99