Server IP : 162.240.98.243 / Your IP : 18.219.63.95 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('../DBManager.php'); require_once('../LoginManager.php'); include("../dbconnection.php"); $sql2 ="SELECT * FROM Suspected_Reaction WHERE id='$_GET[id]'"; $qsql2 = mysqli_query($con,$sql2); if($re1 = mysqli_fetch_array($qsql2)) { include 'dashboarddocument.php'; } ?> <?php include 'fileheader.php'; ?> <h3 align='center'>Suspected Reaction</h3> <?php echo"<h4>Sr.no : $_GET[id]</h4>"; ?> <style> table, th, td { border: 1px solid black; } </style> <table id='example2' class='table table-bordered table-hover' border='1'> <?php $sqlSuspected_Reaction = "SELECT * FROM `Suspected_Reaction` WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'"; $qsqlSuspected_Reaction = mysqli_query($con,$sqlSuspected_Reaction); while($rsp = mysqli_fetch_array($qsqlSuspected_Reaction)){ $sqlpatient = "SELECT * FROM `Classification_Incidence` WHERE Suspected_Reaction_Id='$rsp[id]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rsp1 = mysqli_fetch_array($qsqlpatient)) { if($rsp['Classification_Incidence']== 'Adverse_Event'){ $Suspected_Reaction='Adverse Event'; } if($rsp['Minor']== 'on'){ $status='Minor'; $Reaction=$rsp['Minor_Reaction']; } if($rsp['Major']== 'on'){ $status='Major'; $Reaction =$rsp['Major_Reaction']; } echo" <table class='table table-bordered table-hover' border='1'> <tr><td width='50%'>Classification Incidence</td><td width='50%'>$Suspected_Reaction</td></tr> <tr><td width='50%'>Seriousness of Reaction</td><td width='50%'>$status</td></tr> <tr><td width='50%'>Reaction</td><td width='50%'>$Reaction</td></tr> <tr><td width='50%'>Container No</td><td width='50%'>$rsp[Containerno]</td></tr> <tr><td width='50%'>Specify</td><td width='50%'>$rsp[Specify]</td></tr> <tr><td width='50%'>Other Answer</td><td width='50%'>$rsp[otherAnswer]</td></tr> <tr><td width='50%'>Other Answer Date</td><td width='50%'>$rsp[otherAnswer_date]</td></tr> <tr><td width='50%'>Name Medicine</td><td width='50%'>$rsp[Name_Medicine]</td></tr> <tr><td width='50%'>Treatment Given</td><td width='50%'>$rsp[Treatment_Given]</td></tr> <tr><td width='50%'>Outcome</td><td width='50%'>$rsp[Outcome]</td></tr> <tr><td width='50%'>Corrective Action</td><td width='50%'>$rsp[Corrective_action]</td></tr> <tr><td width='50%'>Recovery Time</td><td width='50%'>$rsp[Recovery_time]</td></tr> <br> "; } } ?> </table> <?php $sql ="SELECT * FROM Needlesharpsinjury WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]' AND id='$_GET[id]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sql1 ="SELECT * FROM site_users WHERE userno='$rs[entered_by]'"; $qsql1 = mysqli_query($con,$sql1); if($rs1 = mysqli_fetch_array($qsql1)) { echo"<h5><b> Created & Updated </b><h5> <table id='example2' class='table table-bordered table-hover'> <tr><td width=50%><b>By :</b>$rs1[name] </b><td width='50%'><b>At :</b> $rs[created_at] </tr>"; } } ?> </table> </div>