PK

ADDRLIN : /home/anibklip/pcfcindia.com/24-25/superadmin/
FLL :
Current File : /home/anibklip/pcfcindia.com/24-25/superadmin/results.php

<?php
include("connexion.php");
include"head.php";
?>
<table border="10"  bgcolor="#ffffff" bordercolor="#FF0000" width="100%">
<?php

switch($status)
{

case"certificateno":
   echo "<tr><td>Certificate No.</td>	<td>Date of Issue</td>	<td>Department of good</td>	<td>Quantity declared:</td>  <td>Name of fumigant:</td> <td>Date of fumigant:</td> <td>Place of fumigant:</td> <td>Dosage rate of fumigant:</td></tr> ";
if($id=='')
{
  $sql="SELECT * From certificate";
  $result=mysql_query($sql) or die('error in date');
  if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Certificates for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr><td>{$row['certificateno']}</td>  <td>{$row['issuedate']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td>";
}

}
else
{
  $sql="SELECT * From certificate WHERE certificateno='$_GET[id]'";
  $result=mysql_query($sql) or die('error in date');
  if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Certificates for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr><td><b>{$row['id']}</b></td> <td>{$row['certificateno']}</td>  <td>{$row['issuedate']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td>";
}
}
		break;
		
case"certificateno_sub":
   echo "<tr><td>Sub Certificate No.</td>	<td>Date of Issue</td>	<td>Department of good</td>	<td>Quantity declared:</td>  <td>Name of fumigant:</td> <td>Date of fumigant:</td> <td>Place of fumigant:</td> <td>Dosage rate of fumigant:</td></tr> ";
if($id=='')
{
  $sql="SELECT * From certificate_sub";
  $result=mysql_query($sql) or die('error in date');
  if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Certificates for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr><td>{$row['sub_certificateno']}</td>  <td>{$row['issuedate']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td>";
}

}
else
{
  $sql="SELECT * From certificate_sub WHERE sub_certificateno='$_GET[id]'";
  $result=mysql_query($sql) or die('error in date');
  if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Certificates for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr> <td>{$row['sub_certificateno']}</td>  <td>{$row['issuedate']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td>";
}
}
		break;
		
		
	case"invoiceno":
	echo "<tr><td>Invoice No.</td>     <td>Client Id</td> 	<td>Certificate No.</td>  	<td>Date of Issue</td>	<td>Pay Mode</td>  <td>Amount</td> <td>Status</td>  ";
if($id=='')
{
include("connexion2.php");
$sql="SELECT * From invoices WHERE branch='$_SESSION[city]'";
$result=mysql_query($sql) or die('error in invoiceno');
if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Invoices for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr><td><b>{$row['invid']}</b></td> <td>{$row['clnid']}</td>  <td>{$row['certid']}</td> <td>{$row['dtd']}</td> <td>{$row['pmode']}</td>  <td>{$row['amount']}</td> <td>{$row['invstatus']}</td> ";
}
}
else
{
include("connexion2.php");
$sql="SELECT * From invoices WHERE invid='$_GET[id]' and branch='$_SESSION[city]'";
$result=mysql_query($sql) or die('error in invoiceno');
if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=9 align=center colour=black><br>No Result found in Invoices for the mentioned number, try again with some other number.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<br><tr><td><b>{$row['invid']}</b></td> <td>{$row['clnid']}</td>  <td>{$row['certid']}</td> <td>{$row['dtd']}</td> <td>{$row['pmode']}</td>  <td>{$row['amount']}</td> <td>{$row['invstatus']}</td> ";
}
}
		break;
		
default:
 echo "<tr><td>Invoice No.</td>   <td>Certificate No.</td>	<td>Date of Issue</td>	<td>Department of good</td>	<td>Quantity declared:</td>  <td>Name of fumigant:</td> <td>Date of fumigant:</td> <td>Place of fumigant:</td> <td>Dosage rate of fumigant:</td> ";
$sql="SELECT * From certificate";
$result=mysql_query($sql) or die('error');
if
(mysql_num_rows($result) == 0) {
    echo "<tr><td colspan=8 align=center colour=black><br>***No Entry found in your Office, please Do some Entry first.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr><td><b>{$row['id']}</b></td> <td>{$row['certificateno']}</td>  <td>{$row['issuedate']}</td> <td>{$row['desgood']}</td> <td>{$row['quantitydeclared']}</td>  <td>{$row['namefumigant']}</td> <td>{$row['datefumigantion']}</td> <td>{$row['placefumigantion']}</td> <td>{$row['dosagefumigant']}</td>";
}
}
?>
<tr><td colspan="9" align="center" height="80"><center><a href="search.php"><strong><u>Search again</u></strong></a></center></td></tr>
</table>
<?php
include"foot.php";
?>


PK 99