PK

ADDRLIN : /home/anibklip/pcfcindia.com/dump/
FLL :
Current File : /home/anibklip/pcfcindia.com/dump/statement.php

<?php
include("connexion.php");
include "head.php";
?>
</table>
<br><br>
<p align="left"><font color="#006699">&nbsp;&nbsp;Monthly Statement for Client id # <?php echo"$clnt"; ?></font></p>
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<tr>
  <td><strong>Date</strong></td>
  <td><strong>Inv. No.</strong></td>
    <td><strong>Cert. No.</strong></td>
<td><strong>Desc.</strong></td>
  <td><strong>Cont. no</strong></td>
  <td><strong>Country</strong></td>
  <td><strong>Status</strong></td>
  <td><strong>Amount</strong></td>
</tr>
<?php
$sql="SELECT desgood,conslinkno,countrydes FROM certificate WHERE clnid='$_GET[clnt]' AND ajtid='0'";
$result=mysql_query($sql) or die('error in fetch');
while($row=mysql_fetch_array($result))
{
$desc="{$row['desgood']}";
$container="{$row['conslinkno']}";
$county="{$row['countrydes']}";

?>
<?php
include("connexion2.php");
 $sql="SELECT * FROM invoices Where clnid='$_GET[clnt]' AND (ajtid='0' or ajtid='') and  branch='$_SESSION[city]'";
$result=mysql_query($sql) or die('error in fetch');
if (mysql_num_rows($result) == 0)
{
echo "<tr><td colspan=8 align=center><font color=red><strong><br>No Due Invoice records Found </strong>. Please Select the another Client</font><br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
	echo"<tr>
	  <td>{$row['dtd']}</td>       <td>{$row['invid']}</td>  <td>{$row['certid']}</td>      <td>$desc</td>     <td>$container</td>   <td>$county</td>   <td>{$row['invstatus']}</td>    <td>{$row['grandtotal']}</td></tr>";
}
?>
<tr><td colspan="9" align="center" height="80"><center><a href="billing.php"><strong><u>Search again</u></strong></a></center></td></tr>
</table>
<?php
}
include "foot.php";
?>


PK 99