Server IP : 162.240.98.243 / Your IP : 52.15.129.90 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'); require_once("../patientmanager.php"); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); if(isset($_POST['Dialysisstart'])) { PatientManager::Dialysis("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Dialysis]","$_POST[type]","$_POST[Blood_Bag_Number]","$_POST[Products_Blood_Group]","$_POST[blood_bank_name]","$_POST[date_of_expiry]","$_POST[Blood_Checked_Doctor]","$_POST[Nurse_name]","$_POST[Dialysis_start]","$_POST[Dialysis_stop]","$_POST[Wt]","$_POST[BP]","$_POST[BP2]","$_POST[Temp]","$_POST[RBS]","$_POST[Spo2]","$_POST[HR]","$_POST[Pulse]","$_POST[Wtu]","$_POST[BPu]","$_POST[BP2u]","$_POST[Tempu]","$_POST[RBSu]","$_POST[Spo2u]","$_POST[HRu]","$_POST[Pulseu]","$_POST[entered_by]"); } ?> <?php include("dbconnection.php"); if(isset($_GET[delid])) { $sql ="DELETE FROM Dialysis WHERE id='$_GET[delid]'"; $qsql=mysqli_query($con,$sql); if(mysqli_affected_rows($con) == 1) { $sql1 ="DELETE FROM patient_invace WHERE pagetype='$_GET[delid]'"; $qsql1=mysqli_query($con,$sql1); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; } } } ?> <?php if(isset($_POST['updateDialysis'])) { $sql6="UPDATE Dialysis SET Dialysis='$_POST[Dialysis]',Dialysis_stop='$_POST[Dialysis_stop]', Wtu='$_POST[Wtu]',BPu='$_POST[BPu]',BP2u='$_POST[BP2u]',Tempu='$_POST[Tempu]',RBSu='$_POST[RBSu]',Spo2u='$_POST[Spo2u]',HRu='$_POST[HRu]',Pulseu='$_POST[Pulseu]' WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Dialysis='on'"; PatientManager::vilalslog("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Wtu]","$_POST[bmi]","$_POST[BPu]","$_POST[BP2u]","$_POST[Tempu]","$_POST[RBSu]","$_POST[Spo2u]","$_POST[HRu]","$_POST[Pulseu]","Dialysis Stop","$entered_by"); if($qsql6 = mysqli_query($con,$sql6)) { echo "<script>alert('Update successfully');</script><script>window.location='nursingrecodstest.php?prescriptionid=$_GET[prescriptionid]&patientid=$_GET[patientid]'</script>;</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <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>Dialysis </title> <style> .switch { position: relative; display: inline-block; width: 90px; height: 34px; } .switch input {display:none;} .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ca2222; -webkit-transition: .4s; transition: .4s; border-radius: 34px; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: #2ab934; } input:focus + .slider { box-shadow: 0 0 1px #2196F3; } input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(55px); } /*------ ADDED CSS ---------*/ .slider:after { content:'Stop'; color: white; display: block; position: absolute; transform: translate(-50%,-50%); top: 50%; left: 50%; font-size: 10px; font-family: Verdana, sans-serif; } input:checked + .slider:after { content:'Start'; } .center { border: 1px solid grey; text-align:; } </style> <script> function myFunction12() { var checkBox = document.getElementById("myCheck12"); var text = document.getElementById("text12"); if (checkBox.checked == true){ text.style.display = "block"; } else { text.style.display = "none"; } }</script> <body> <h3><i class="fa fa-angle-right"></i> Dialysis </h3> <?php $DisplayForm=True; $sql5 ="SELECT * FROM Dialysis WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Dialysis='on'"; $qsql5 = mysqli_query($con,$sql5); if($rt5 = mysqli_fetch_array($qsql5)) { $DisplayForm=False; echo " <form name='updateDialysis' method='post'> <br><br> <label>Weight </label> <label><input type='text' placeholder='Weight' name='Wtu'></label> <label>Blood Pressure</label> <input type='number' placeholder='Systolic(mmHg)' name='BPu'><input type='number' placeholder='Diastolic(mmHg)' name='BP2u'> <label>Temp (oC) </label <label><input type='text' placeholder='Temp (oC)' name='Tempu'></label> <label>RBS </label> <label><input type='text' placeholder='RBS' name='RBSu'></label> <label>Spo2 (%) </label> <label><input type='text' placeholder='Spo2 (%)' name='Spo2u'></label> <label>Pulse </label> <label><input type='text' placeholder='Pulse' name='Pulseu'></label>"; ?> <input type='hidden' name='Dialysis_stop' id='' value='<?php echo date("F d, Y / h:i:s A") ?>'> <?php echo "<script> var today = new Date(); var time = today.getHours() + ':' + today.getMinutes() + ':' + today.getSeconds(); document.getElementById('myCheckd').value = time; </script> <button type='submit' name='updateDialysis'>Stop</button> </form>"; } if($DisplayForm) { ?> <form name="Dialysisstart" method="post"> <label class="switch"> <input id="myCheck12" name="Dialysis" onclick="myFunction12()" type="checkbox" > <span class="slider"></span> </label> <p id="text12" style="display:none"> <label>Type </label> <select name="type"> <option value="Hemodialysis">Hemodialysis</option> <option value="Peritoneal">Peritoneal</option> </select> <label> Blood Bag Number: </label> <td width='50%'><input type='text' placeholder='Blood Bag Number' name='Blood_Bag_Number'> <label> Product's Blood Group: </label> <input type='text' placeholder='Product Blood Group' name='Products_Blood_Group'></td> </tr> <label> Name of the Blood Bank: </label> <input type='text' placeholder='Name of the Blood Bank' name='blood_bank_name'> <label> Date of expiry: </label> <input type='date' placeholder='Date of expiry' name='date_of_expiry'> <label> Blood Checked by the Doctor: </label> <input type='text' placeholder='Blood Checked by the Doctor' name='Blood_Checked_Doctor'> <label> Assisted By:</label> <input type='text' placeholder='Nurse' name='Nurse_name'> <br> <?php $Curent_at=date("F d, Y / h:i:s A"); ?> <input type="hidden" name="Dialysis_start" id="" value='<?php echo $Curent_at ?>'> <!--<input type="hidden" name="Dialysis_start" id="currentTime1">--> <script> var today = new Date(); var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds(); document.getElementById("currentTime1").value = time; </script> <br><br> <label>Weight </label> <label><input type='text' placeholder='Weight' name='Wt'></label> <label>BP(Systolic) </label> <label><input type='text' placeholder='Systolic' name='BP'></label> <label>Diastolic(mmHg upper)</label> <label><input type='text' placeholder='Diastolic(mmHg upper)' name='BP2' ></label> <label>Temp (oC) </label <label><input type='text' placeholder='Temp (oC)' name='Temp'></label> <label>RBS </label> <label><input type='text' placeholder='RBS' name='RBS'></label> <label>Spo2 (%) </label> <label><input type='text' placeholder='Spo2 (%)' name='Spo2'></label> <label>Pulse </label> <label><input type='text' placeholder='Pulse' name='Pulse'></label> <input type="submit" name="Dialysisstart" value="Submit"> </form> <?php } ?> <style> form{ margin: 20px 0; } form input, button{ padding: 5px; } table{ width: 100%; margin-bottom: 20px; border-collapse: collapse; } table, th, td{ border: 1px solid #cdcdcd; } table th, table td{ padding: 10px; text-align: left; } <style> table{ border: solid 1px gray; width: 100%; } </style> </head> <table border="1"> <tr> <th><div align="center">Start Time </div></th> <th><div align="center">Stop Time </div></th> <th><div align="center">Created By</div></th> <th><div align="center">Details </div></th> </tr> <?php include("dbconnection.php"); $sql4 ="SELECT * FROM Dialysis WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql4 = mysqli_query($con,$sql4); while($rp = mysqli_fetch_array($qsql4)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rp[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); while($re = mysqli_fetch_array($qsql1)) { echo " <tbody> <tr> <td> $rp[Dialysis_start]</td> <td> $rp[Dialysis_stop]</td> <td> $re[name]</td> <td style='width:25%'> <a href='viewDialysisnurse.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&id=$rp[id]' style='width:15%'><i class='fa fa-eye' aria-hidden='true' style='font-size:20px;color:red;width:10%;padding:10px 10px'></i></a> | <a href='edit_showDialysis.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&id=$rp[id]' style='width:15%'><i class='fa fa-pencil-square-o' aria-hidden='true' style='font-size:20px;width:10%;padding:10px 10px'></i></a> | <a href='nursingrecodstest.php?prescriptionid=$rp[prescriptionid]&patientid=$rp[patientid]&delid=$rp[id]' style='width:15%'><i class='fa fa-trash-o' aria-hidden='true' style='font-size:20px;color:red;width:10%;padding:10px 10px'></i></a></td> </tr> "; } } ?> </table>