Server IP : 162.240.98.243 / Your IP : 3.136.18.218 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 : |
<?php session_start(); require_once("../dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); ?> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../patientmanager.php'); include("header.php"); include("dashboarddocument.php"); if(isset($_POST[submit])) { PatientManager::tripd("$_GET[prescriptionid]","$_GET[patientid]","$_GET[hospital_id]","$_POST[status]","$_POST[COdischarge]","$_POST[Advice_Discharge]","$_POST[created_by]","$_POST[entered_by]"); } ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <H3 Align="right"><?php $sql ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo "" ; } ?> </H3> <p align="right"> <form name="submit" method="post"> <input type="hidden" name="status" value="Discharge"> <input type="hidden" name="COdischarge" value="Transfer to IPD"> <?php $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql = mysqli_query($con,$sql); if($re = mysqli_fetch_array($qsql)) { echo" <input type='hidden' name='created_by' value='$re[name]'> "; } ?> <?php $sql6 ="SELECT * FROM discharge WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' "; $qsql6 = mysqli_query($con,$sql6); if($rs1 = mysqli_fetch_array($qsql6)) { $usertype=$rs1['status']; if($usertype == 'Admission'){ echo " <input type='submit' name='submit' value='Yes, Transfer to IPD' />"; }else{ echo ""; } } ?> </p> </form>