PK

ADDRLIN : /home/anibklip/aaravpest.in/print/
FLL :
Current File : /home/anibklip/aaravpest.in/print/xxinvoice_print.php

<?
	

	include".././includes/dbconnect.php";
	$sql1="SELECT * FROM invoices WHERE invid='$_GET[id]'";
	$result1=mysql_query($sql1) or die('error in fetch');
	$row1=mysql_fetch_array($result1);

	$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
			
		}
</style>
</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 />";
			}
		}
	}
?>


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

<?php
	if($row1['ajtid']!="")
	{
?>
	<tr>
		<td colspan="3" align="center">
		  <div align="left">
		    <?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="70%"colspan="2" align="right">	</td>
	<td align="center" valign="middle">&nbsp;		</td>
</tr>
<tr>
	<td width="70%"colspan="2" align="right">
  <!--<strong>Service Tax</strong>--></tr>
<tr>
	<td width="70%"colspan="2" align="right">
		<strong>Total</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