Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.117.189.228
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/www/login.easenup.in/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/btiyawmy/www/login.easenup.in/workdesk_opd.php
   <?php
session_start();
require_once('../DBManager.php');
require_once('../LoginManager.php');
require_once('../patientmanager.php');
include 'workdeskmenu.php';
include 'header.php';
include("dbconnection.php");
?>
   
   <div class='content-wrapper'>
    <!-- Content Header (Page header) -->
    <section class='content-header'>
  <script>
function myFunction() {
  var checkBox = document.getElementById("myCheck");
  var text = document.getElementById("text");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}
function myFunction2() {
  var checkBox = document.getElementById("myCheck2");
  var text = document.getElementById("text2");
  if (checkBox.checked == true){
    text.style.display = "block";
  } else {
     text.style.display = "none";
  }
}
</script>
<!DOCTYPE html>
<html lang="en">
  <head>
   <link rel="stylesheet" href="select2.min.css" />
      <style>

 
/* Automatic Serial Number Row */
.css-serial {
 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>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Dashboard">
    <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">

    <title>In House Patient</title>
 
  <body>
     <link rel="stylesheet" href="assets/style.css">                   
                      <center>	<h3 class='code'>  Billing and Accounts- OPD Consultation	</h3>
           	
          <a href="#" style="float:right;font-size:20px;margin-top:-23px;"><i class="fa fa-info-circle" aria-hidden="true" ></i></a></center>           
           
          
  </head>
<div id="container">
        
</div>
<div id="text" style="display:none" >
          <form action="/Admission_and_Discharge.php" method='GET'>
              <input type="date" onchange="dateload(this.value)">
                        
                        </form></div>
                        
                         <div class="checkbox"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input name="Addiction" id="myCheck2" onclick="myFunction2()" class="shopitem-list" type="checkbox"><span>Custom Date </span>
</div>


 
<div id="text2" style="display:none" >
          
                
                 <form action="" method="GET">
                            <div class="row">
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label>From Date</label>
                                        <input type="date" name="from_date" value="<?php if(isset($_GET['from_date'])){ echo $_GET['from_date']; } ?>" class="form-control">
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                        <label>To Date</label>
                                        <input type="date" name="to_date" value="<?php if(isset($_GET['to_date'])){ echo $_GET['to_date']; } ?>" class="form-control">
                                    </div>
                                </div>
                                <div class="col-md-4">
                                    <div class="form-group">
                                    <br>
                                      <button type="submit" class="btn btn-primary">Apply</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                        
                        </div>
                        
                        
                               
                                 <button style='height:40px;width:200px' onclick="location.href='workdesk_opd.php'" type="button"> <span style="color:white">    Reset</span></button>
                                 </section>
                                 
                       
        <div id="PrintContent">                            
<H4 align='right' id="val"></H4><br>
 <table id="table"  class="table table table-bordered table-hover" border='1' style='width:100%' >
     
                  <tr>
                      <th>SR No</th>
                   <th>Admitted Under</th>
                    <th>Fee</th>
          <th>Patient Details</th>
                <th>Details </th>
               </tr>
   
<?php
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
$today = date('Y-m-d');
$a=0;
	$sql1 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql1 = mysqli_query($con,$sql1);
		if($re = mysqli_fetch_array($qsql1))
		{
		     if(isset($_GET['from_date']) && isset($_GET['to_date']))
                                {
                                    $from_date = $_GET['from_date'];
                                    $to_date = $_GET['to_date'];
                                }
		    
		$sql2 ="SELECT * FROM discharge WHERE hospital_id='$re[entered_by]' AND  date(admissiondate) BETWEEN '$from_date' AND '$to_date' AND (typevisit='OPD' OR typevisit='Opd_Emergency'  OR typevisit='OPD_Routine' )";
		$qsql2 = mysqli_query($con,$sql2);
		while($rs = mysqli_fetch_array($qsql2))
		{
		    $a++;
	   $sql3 ="SELECT * FROM addaspatient WHERE prescriptionid='$rs[prescriptionid]'";
		$qsql3 = mysqli_query($con,$sql3);
		while($rsr = mysqli_fetch_array($qsql3))
		{
		     
		    $sqlpatient = "SELECT * FROM patient_invace WHERE prescriptionid='$rsr[prescriptionid]' AND 	discription='Consultant_fees' AND grand_total!='grand_total'";
	$qsqlpatient = mysqli_query($con,$sqlpatient);
	while($rsp = mysqli_fetch_array($qsqlpatient))
	{
	
	 		 	
		    	$sql9 ="SELECT * FROM site_users WHERE userno='$rsr[Admitted_Under]'";
		$qsql9 = mysqli_query($con,$sql9);
		while($re9 = mysqli_fetch_array($qsql9))
		{
		    	$sql4 ="SELECT * FROM patient WHERE patientid='$rsr[patientid]'";
		$qsql4 = mysqli_query($con,$sql4);
		while($rp = mysqli_fetch_array($qsql4))
		{
	
        echo " 
	                <tr>
               <td>$a</td>
             <td> <b>Name : </b> $re9[name]<br> </td><td>$rsp[grand_total] </td>
                 <td><b>UHID :</B>$rp[patientid]
                 <br>
            <b>Patient Name </b><br>$rp[patientname]</td>
            
           
                                      						<td><a href='drinvace.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>View</td>
                					  
          </tr>                   
";
		}	    
		}
		    
		}
		}

	    
}
}
?>   


      </div>
            </table>
      
      
        
        <script>
            
            var table = document.getElementById("table"), sumVal = 0;
            
            for(var i = 1; i < table.rows.length; i++)
            {
                sumVal = sumVal + parseInt(table.rows[i].cells[2].innerHTML);
            }
            
            document.getElementById("val").innerHTML = "Total Fee = " + sumVal;
            console.log(sumVal);
            
        </script>
  
      </div>
<?php
if(isset($_SESSION[doctorid]))
{
?>  
<hr>
	<table>
		<tr>
			<td>
			<div align="center"><strong><a href="prescription.php?patientid=<?php echo $_GET[patientid]; ?>&appid=<?php echo $rsappointment[appointmentid]; ?>">Add Prescription records</a></strong></div>
			</td>
		</tr>
		
		
		
		
	</table>
	<script>
  $(function () {
    $("#example1").DataTable({
      "responsive": true,
      "autoWidth": false,
    });
    $('#example2').DataTable({
      "paging": true,
      "lengthChange": false,
      "searching": false,
      "ordering": true,
      "info": true,
      "autoWidth": false,
      "responsive": true,
    });
  });
</script>

<?php
}
?>  <script>
 function drugload(drid)
{
	    if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                document.getElementById("divdr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loaddrji.php?drid="+drid,true);
        xmlhttp.send();
}
            
     
</script>

<script>
 function dateload(dateid)
{
	    if (window.XMLHttpRequest) {
            // code for IE7+, Firefox, Chrome, Opera, Safari
            xmlhttp = new XMLHttpRequest();
        } else {
            // code for IE6, IE5
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        xmlhttp.onreadystatechange = function() {
            if (this.readyState == 4 && this.status == 200) {
                document.getElementById("divdr").innerHTML = this.responseText;
            }
        };
        xmlhttp.open("GET","loaddate.php?dateid="+dateid,true);
        xmlhttp.send();
}
            
     
</script>
<script>
 $(document).ready(function () {
      $('select12').selectize({
          sortField: 'text'
      });
  });
  </script>

  	  

Anon7 - 2022
AnonSec Team