PK

ADDRLIN : /home/anibklip/vpgldh.com/vpgbk17/webmanager/xprint/
FLL :
Current File : //home/anibklip/vpgldh.com/vpgbk17/webmanager/xprint/report_print.php.bak

<?
	include".././includes/dbconnect.php";
?>
<head>
<style type="text/css">
.printo {
		font-style: normal;
		color: #000000;
		letter-spacing: 0;
		display: block;
		padding-top: 1px;
		font-size: 80%;
        border:thin;
 }
 .hr{
  border: solid; border-width: thin;
 border-color:#000000;
 }
</style>
</style>
</head>
<br><br>
<body> <!-  onLoad="window.print(); window.close();" ->

<h2 align="center">Invoice Report</h2>
<table align="center" width="95%" border=2px cellpadding="0px" cellspacing="0px" bordercolor="black">

	<tr>
		<th>
			Invoice No.
		</th>
		<th>
			Party Name
		</th>
		<th>
			Ammount
		</th>
		<th>
			Date
		</th>
	</tr>
<?php
$sql="SELECT * FROM invoices WHERE dtd>='$_GET[st_date]' && dtd<='$_GET[en_date]'";
$result=mysql_query($sql) or die('error in fetch');
while($row=mysql_fetch_array($result)){
//	print($row['invid']);
?>
	<tr>
		<td>
			<?php print($row['invid']); ?>
		</td>
		<td>
			<?php
				if($row['ajtid']=="")
				{
					$exp1 = explode(',',$row['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(',',$row['ajtid']);
					$ln1 = count($exp1);
					for($i=1; $i<$ln1; $i++)
					{
						if($i==1)
						{
							echo "<strong>".$exp1[$i]."</strong><br />";
						}
						else
						{
						echo $exp1[$i]."<br />";
						}
					}
				}
			?>
		</td>
		<td>
			<?php print($row['grandtotal']); ?>
		</td>
		<td>
			<?php print($row['dtd']); ?>
		</td>
	</tr>
<?php
}
?>
</table>
</body>


PK 99