Server IP : 162.240.98.243 / Your IP : 18.221.230.76 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("../patientmanager.php"); require_once("../DBManager.php"); if(isset($_POST[Nebulizationva])) { PatientManager::Nebulization("$_GET[prescriptionid]","$_GET[patientid]","$_POST[Nebulization]","$_POST[Nebulization_start]","$_POST[Nebulization_stop]","$_POST[entered_by]"); } ?> <?php if(isset($_POST['updateNebulization'])) { $sql6="UPDATE Nebulization SET Nebulization='$_POST[Nebulization]',Nebulization_stop='$_POST[Nebulization_stop]' WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Nebulization='on'"; 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>Nebulization </title> <h3><i class="fa fa-angle-right"></i> Nebulization </h3> <body> <?php $DisplayForm=True; $sql5 ="SELECT * FROM Nebulization WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Nebulization='on'"; $qsql5 = mysqli_query($con,$sql5); if($rt5 = mysqli_fetch_array($qsql5)) { $DisplayForm=False; echo " <form name='updateNebulization' method='post'> <input type='hidden' name='Nebulization_stop' id='myCheckNebulization'> <script> var today = new Date(); var time = today.getHours() + ':' + today.getMinutes() + ':' + today.getSeconds(); document.getElementById('myCheckNebulization').value = time; </script> <button type='submit' name='updateNebulization'>Stop</button> </form>"; } if($DisplayForm) { ?> <form name="Nebulizationva" method="post"> <input type='hidden' value='on' name='Nebulization'> <input type='hidden' name='Nebulization_start' id='myCheckNebulizationstart'> <script> var today = new Date(); var time = today.getHours() + ':' + today.getMinutes() + ':' + today.getSeconds(); document.getElementById('myCheckNebulizationstart').value = time; </script> <button type='submit' name='Nebulizationva'>Start</button> </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> <div id="container"> <table border="1"> <tbody> <tr> <th><div align="center">Date & Time</div></th> <th><div align="center">Start At </div></th> <th><div align="center">Stop At </div></th> <th><div align="center">Created By</div></th> <th><div align="center">Action</div></th> </tr> </tbody> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $sql1 ="SELECT * FROM site_users WHERE userno='12571'"; $qsql1 = mysqli_query($con,$sql1); while($re = mysqli_fetch_array($qsql1)) { $sql4 ="SELECT * FROM Nebulization WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql4 = mysqli_query($con,$sql4); while($rpn = mysqli_fetch_array($qsql4)) { echo " <tbody> <tr> <td> $rpn[created_at]</td> <td> $rpn[Nebulization_start]</td> <td> $rpn[Nebulization_stop]</td> <td> $re[name]</td> <td> Details</td> </tr> "; } } ?> </tbody> <tfoot> </tfoot> </table> </div>