Server IP : 162.240.98.243 / Your IP : 3.149.253.210 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/FO/Patient/ |
Upload File : |
<?php session_start(); require_once("../../dbconnection.php"); require_once('../../../DBManager.php'); require_once('../../../LoginManager.php'); if(!isset($_SESSION['uname'])) { echo "<script>alert('Session Expired..');</script><script>window.location='../index.php';</script>"; } $title='Slip'; $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$harilal'"; $qsql = mysqli_query($con,$sql); $rs = mysqli_fetch_array($qsql); $sql ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); $rs1 = mysqli_fetch_array($qsql); $usertype=$rs1['adminid']; $hco ="SELECT * FROM hco WHERE adminid='$rs[entered_by]'"; $Qhco = mysqli_query($con,$hco); $Rowhco = mysqli_fetch_array($Qhco); $usertype=$Rowhco['adminid']; $sql ="SELECT * FROM admin WHERE id='$Rowhco[adminid]'"; $qsql = mysqli_query($con,$sql); $ra = mysqli_fetch_array($qsql); $patient ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qpatient = mysqli_query($con,$patient); $rpatient = mysqli_fetch_array($qpatient); $sql1 ="SELECT * FROM patient WHERE patientid='$rpatient[patientid]'"; $qsql1 = mysqli_query($con,$sql1); $rspi1 = mysqli_fetch_array($qsql1); $sqlpatient1 = "SELECT * FROM site_users WHERE userno='$rsp[entered_by]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); $rsn = mysqli_fetch_array($qsqlpatient1); $pricedue=$rsp['pricetotal']; ?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta charset="utf-8" /> <title><?php echo $title; ?></title> <meta name="description" content="Static & Dynamic Tables" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <!-- bootstrap & fontawesome --> <link rel="stylesheet" href="../assets/css/bootstrap.min.css" /> <link rel="stylesheet" href="../assets/font-awesome/4.5.0/css/font-awesome.min.css" /> <!-- page specific plugin styles --> <!-- text fonts --> <link rel="stylesheet" href="../assets/css/fonts.googleapis.com.css" /> <!-- ace styles --> <link rel="stylesheet" href="../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-part2.min.css" class="ace-main-stylesheet" /> <![endif]--> <link rel="stylesheet" href="../assets/css/ace-skins.min.css" /> <link rel="stylesheet" href="../assets/css/ace-rtl.min.css" /> <!--[if lte IE 9]> <link rel="stylesheet" href="../assets/css/ace-ie.min.css" /> <![endif]--> <!-- inline styles related to this page --> <!-- ace settings handler --> <script src="../assets/js/ace-extra.min.js"></script> <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries --> <!--[if lte IE 8]> <script src="../assets/js/html5shiv.min.js"></script> <script src="../assets/js/respond.min.js"></script> <![endif]--> </head> <body class="no-skin"> <?php include('../includes/header.php'); ?> <div class="main-container ace-save-state" id="main-container"> <script type="text/javascript"> try{ace.settings.loadState('main-container')}catch(e){} </script> <div id="sidebar" class="sidebar responsive ace-save-state"> <script type="text/javascript"> try{ace.settings.loadState('sidebar')}catch(e){} </script> <div class="sidebar-shortcuts" id="sidebar-shortcuts"> <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large"> <button class="btn btn-success"> <i class="ace-icon fa fa-signal"></i> </button> <button class="btn btn-info"> <i class="ace-icon fa fa-pencil"></i> </button> <button class="btn btn-warning"> <i class="ace-icon fa fa-users"></i> </button> <button class="btn btn-danger"> <i class="ace-icon fa fa-cogs"></i> </button> </div> <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini"> <span class="btn btn-success"></span> <span class="btn btn-info"></span> <span class="btn btn-warning"></span> <span class="btn btn-danger"></span> </div> </div><!-- /.sidebar-shortcuts --> <?php include('sidebar.php'); ?> <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse"> <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i> </div> </div> <div class="main-content"> <div class="main-content-inner"> <div class="breadcrumbs ace-save-state" id="breadcrumbs"> <ul class="breadcrumb"> <li> <i class="ace-icon fa fa-home home-icon"></i> <a href="#">Home</a> </li> <li> <a href="#"><?php echo $title; ?></a> </li> </ul><!-- /.breadcrumb --> <div class="nav-search" id="nav-search"> <form class="form-search"> <span class="input-icon"> <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" /> <i class="ace-icon fa fa-search nav-search-icon"></i> </span> </form> </div><!-- /.nav-search --> </div> <div class="page-content"> <!-- /.ace-settings-container --> <div class="row"> <div class="col-xs-12"> <div class="row"> <div class="col-xs-12"> <div class="clearfix"> <input type="button" value="Print" onclick="printDiv()" class="btn btn-sm btn-success" style='float:right;'> </div> <div><div> <div id="GFG"> <div class="container"> <div class="row"> <div class="col-sm-12"> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso]) { ?> <p STYLE='font-size:18px'> AN ISO 9001:2015 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso14]) { ?> <p STYLE='font-size:18px'> AN ISO 14001:2015 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[iso27]) { ?> <p STYLE='font-size:18px'> AN ISO 27001 Certified co.</p> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[NABH]) { ?> <img id='topright' align='top' src='../../uploads/nabh.png' width='70' height='70'> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[NABL]) { ?> <img id='toprightb' align='right' src='../../uploads/nabl.png' width='70' height='70'> <?php } } } } ?> <?php $sql12 ="SELECT * FROM addaspatient WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql12 = mysqli_query($con,$sql12); if($rs12 = mysqli_fetch_array($qsql12)) { $sql ="SELECT * FROM site_users WHERE userno='$rs12[hospitalid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sql ="SELECT * FROM emp WHERE adminid='$rs[entered_by]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[JCI]) { ?> <img id='toprightj' align='right' src='../../uploads/JCI.png' width='70' height='70'> <?php } } } } ?> <table class="table" style='width:100%;'> <tr> <td> <img style="float:left;width:auto;" src="../../uploads/<?php echo $Rowhco['Logo'] ?>" class="img-responsive img-fluid"/> </td> <td> <span style="font-size:18px; float:right;"> <h4><b><?php echo $ra['hsname'] ?></b></h4> <?php echo $Rowhco['Street'] ?> | <?php echo $Rowhco['Locality'] ?></br> <?php echo $ra['EmailID'] ?> | <?php echo $ra['numbers'] ?></p> </span></td> </tr> </table> </div> </div> </div> <hr> <?php $sqlpatient2 = "SELECT * FROM site_users WHERE userno='$rpatient[Admitted_Under]'"; $qsqlpatient2 = mysqli_query($con,$sqlpatient2); if($rsn2 = mysqli_fetch_array($qsqlpatient2)) { echo" <div class='checkbox'><span style='float: left;'><b>Admission On :</b> $rpatient[created_at]<br> <b>Consultant :</b>$rsn2[name]($rpatient[casetype]) </span> <span style='float: right;'><B>File No.</B> :$rpatient[prescriptionid] <br>"; $sqlpatient = "SELECT * FROM save_activity WHERE prescriptionid='$_GET[prescriptionid]' AND discription='Opd Slip<br>Nutrition Recommendation<br>Doc.no-'"; $qsqlpatient = mysqli_query($con,$sqlpatient); if($rsp = mysqli_fetch_array($qsqlpatient)) { if($rsp[discription]== 'Opd Slip<br>Nutrition Recommendation<br>Doc.no-'){ echo"<b>Doc.no </b>: $rsp[srno]"; } else{ echo ""; } } echo "</span></div><br> <br><br> <div class='checkbox'><span style='float: left;'><b>UHID :</b> $rspi1[patientid]</span><span style='float: right;'><b>Name</b> :$rspi1[patientname]</span></div> <br> <div class='checkbox'><span style='float: left;'><b>Age:</b> $rspi1[dob]</span><span style='float: right;'><b>SEX :</b>$rspi1[gendor]</span></div> <div class='card-body'> "; } ?> <br> <div class="panel panel-primary"> <div class="panel-body"> <h4 class="text-on-pannel text-primary"><strong class="text-uppercase"> <?php echo $title; ?> </strong></h4> <br> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> </div> <!--///////////////////////////////////--> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <div class='card-header d-flex p-0'> <tr> <td width='50%'> Type of Admission:: </td> <td width='50%'>$rs[Type_of_Admission]</td> </tr> <tr> <td width='50%'> Reason for Admission : </td> <td width='50%'>$rs[Reason_for_Admission]</td> </tr> "; } ?> </table> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[MLC]) { ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h2 align='center'>MLC Checklist</h2> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <tr> <td width='50%'> MLC No: </td> <td width='50%'>$rs[MLC_No]</td> </tr> <tr> <td width='50%'> MLC Slip : </td> <td width='50%'> <a href='http://easenup.healthcare/hco/uploads/$rs[myfile]'><i class='fa fa-file-pdf-o' aria-hidden='true' style='font-size:34px'></i> </a></td> </tr> </table> "; } ?> <?php } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rt = mysqli_fetch_array($qsql)) { if(on==$rt[Trauma]) { ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo " <h2 align='center'>Trauma Care Checklist</h2> <h5>Immediately after primary & secondary surveys</h5> <table id='example2' class='table table-bordered table-hover'> <tr> <td width='50%'> Is Further Airway Intervention Needed? : </td> <td width='50%'>$rs[further] </td> </tr> <tr> <td width='50%'>Is There A Tension Pneumo-Haemothorax ? : </td> <td width='50%'>$rs[Pneumo_Haemothorax] </td> </tr> <tr> <td width='50%'>IS The Pulse and Fluids Started ? : </td> <td width='50%'>$rs[Fluids_Started] </td> </tr> <tr> <td width='50%'>Large-bore IV placed and fluids started : </td> <td width='50%'>$rs[iv_fluids_started] </td> </tr> <tr> <td width='50%'>Full Survey For (and control of)External bleeding, Including: </td> <td width='50%'>$rs[Full_Survey] | $rs[Perineum] | $rs[Back] </td> </tr> <tr> <td width='50%'>Assessed For Pelvic Fracture by : </td> <td width='50%'>$rs[Pelvic_Fracture] </td> </tr> <tr> <td width='50%'>Assessed For Internal Bleeding By: </td> <td width='50%'>$rs[Internal_Bleeding] </td> </tr> <tr> <td width='50%'>Is Spinal Immobilization Needed? : </td> <td width='50%'>$rs[Spinal_Immobilization] </td> </tr> <tr> <td width='50%'>Neurovascular Status of all 4 limbs Checked? : </td> <td width='50%'>$rs[Neurovascular_Status] </td> </tr> <tr> <td width='50%'>IS the patient Hypothermic? :</td> <td width='50%'>$rs[Hypothermic] </td> </tr> <tr> <td width='50%'>Does the Patient Need(if no contraindication) :</td> <td width='50%'>$rs[contraindication]| $rs[Nasogastric_Tube]| $rs[Chest_Drain]| $rs[None_Indicated]| </td> </tr> <tr> <td width='50%'>Has the Patient been Given :</td> <td width='50%'>$rs[leaves_patient]| $rs[Analgesics]| $rs[Antibiotics], $rs[None_Indicated]| </td> </tr> <tr> <td width='50%'>Have All tests and imaging been Reviewed :</td> <td width='50%'>$rs[tests_imaging] </td> </tr> <tr> <td width='50%'>Which serial Examinations Are Needed:</td> <td width='50%'>$rs[Examinations] </td> </tr> <tr> <td width='50%'>Plan of care discussed with :</td> <td width='50%'>$rs[care_discussed]| $rs[Receiving_Unit]| $rs[Primary_team]| $rs[Other_Specialists] </td> </tr> <tr> <td width='50%'>Relevant Trauma Chart or Form Comleted? :</td> <td width='50%'>$rs[Trauma_Chart] </td> </tr> <tr> <td width='50%'>Trauma Slip :</td> <td width='50%'>$rs[Trauma_Slip] </td> </tr> </table> </fieldset> </div> "; echo "</td></tr>"; } ?> <?php } } ?> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sqlpatient1= "SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); if($rr1=mysqli_fetch_array($qsqlpatient1)) { $sql ="SELECT * FROM Vulnerability WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <tr> <td width='50%'>Level of Consciousness :</td> "; $a=$rs[Eye_Opening_Response]; $b=$rs[Best_Verbal_Response]; $c=$a+$b; $d=$rs[Best_Motor_Response]; $e=$c+$d; if ($rs[Level_Consciousness]=='Un-conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>GCS:</b> <span>$e/15 </span></td>"; } elseif ($rs[Level_Consciousness]=='Semi Conscious') { echo"<td width='50%'><b>$rs[Level_Consciousness]</b> <br><b>GCS :</b> <span>$e/15 </span></td>"; } else { echo"<td width='50%'>$rs[Level_Consciousness] </td>"; } echo" <tr> <td width='50%'>Vulnerability Assessment :</td> <td width='50%'>$rr1[triage] </td> </tr> <tr> <td width='50%'>Pain Assessment :</td> <td width='50%'>$rs[Pain_Assessment] </td> </tr> <tr> <td width='50%'>Pain Location :</td> <td width='50%'>$rs[Pain_Location] "; if($rs[Pain_Location1]!=='') { echo", $rs[Pain_Location1]"; } if($rs[Pain_Location2]!=='') { echo", $rs[Pain_Location2]"; } if($rs[Pain_Location3]!=='') { echo", $rs[Pain_Location3]"; } if($rs[Pain_Location4]!=='') { echo", $rs[Pain_Location4]"; } if($rs[Pain_Location5]!=='') { echo", $rs[Pain_Location5]"; } echo"</td> </tr> "; } } ?> <tr> </table> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(on==$rt[covid]) { ?> <h4 align='center'><B>Chief Complain </B></h4> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fever']; if($usertype == 'on'){ echo " <tr><td width='50%'> Fever: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['smell']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Smell: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Diarrhoea']; if($usertype == 'on'){ echo " <tr><td width='50%'> Diarrhoea: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Deformity']; if($usertype == 'on'){ echo " <tr><td width='50%'> Facial Deformity: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Cough']; if($usertype == 'on'){ echo " <tr><td width='50%'> Cough: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Taste']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Taste: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weakness']; if($usertype == 'on'){ echo " <tr><td width='50%'> Weakness: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Breathlessness']; if($usertype == 'on'){ echo " <tr><td width='50%'> Breathlessness: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Appetite']; if($usertype == 'on'){ echo " <tr><td width='50%'> Loss of Appetite: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Limbs']; if($usertype == 'on'){ echo " <tr><td width='50%'> Power Loss in Limbs: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Throat']; if($usertype == 'on'){ echo " <tr><td width='50%'> Sore Throat : </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Vomitting']; if($usertype == 'on'){ echo " <tr><td width='50%'> Vomitting : </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM request_for_admission WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Slurred_Voice']; if($usertype == 'on'){ echo " <tr><td width='50%'> Slurred Voice: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['RED_EYE']; if($usertype == 'on'){ echo " <tr><td width='33%'> RED EYE : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[RED_EYE_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Eye']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Eye : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Eye_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Conjunctiva']; if($usertype == 'on'){ echo " <tr><td width='33%'> Conjunctiva : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Conjunctiva_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Itchiness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Itchiness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Itchiness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Dislocated']; if($usertype == 'on'){ echo " <tr><td width='33%'> Dislocated : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Dislocated_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blur_Vision']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blur Vision : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blur_Vision_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Partial_Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Partial Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Partial_Blindness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blindness_note]</td></tr>"; } else{ echo ""; } } ?> </table> <?php } } ?> <h4 align="center"><B>Vitals</B></h4> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>SPo2(%)</th> <th>RBS(mg/dl)</th> <th>Temp(C*)</th> <th>Pulse(Min)</th> <th>BP(mmHg)</th> </tr> </thead> <tr><?php $sql ="SELECT * FROM Medical_vitals WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPo2]</td> <td> $rs[RBS]</td> <td> $rs[Temp]</td> <td> $rs[Pulse]</td> <td> $rs[BP2]/$rs[BP]</td> "; } ?> </tr> </thead> </tbody> </table> <?php $sql ="SELECT * FROM patient WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> "; $a=$rs[Weight]; $b=$rs[Height]*$rs[Height]; $c=$a/$b*10000; echo" <tr> <td Width='50%'>BMI Result</td><td Width='50%'> "; echo round($c, 2); echo"</td></tr> "; } ?> <br> <br> </table> <!--/*-------------significant-------------------*/--> </br></br> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <h3 align='center'>Chief Complain "; } ?> </h3> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); $rs = mysqli_fetch_array($qsql); $usertype=$rs['Fever']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fever: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fever_note]</td></tr>"; } else{ echo ""; } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['smell']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Smell: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[smell_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Diarrhoea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Diarrhoea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Diarrhoea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Deformity']; if($usertype == 'on'){ echo " <tr><td width='33%'> Facial Deformity: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Deformity_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Cough']; if($usertype == 'on'){ echo " <tr><td width='33%'> Cough: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Cough_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Taste']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Taste: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Taste_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weakness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weakness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weakness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Breathlessness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Breathlessness: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Breathlessness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Shivering: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Limbs']; if($usertype == 'on'){ echo " <tr><td width='33%'> Power Loss in Limbs: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Limbs_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Throat']; if($usertype == 'on'){ echo " <tr><td width='33%'> Sore Throat : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Throat_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Vomitting']; if($usertype == 'on'){ echo " <tr><td width='33%'> Vomitting : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Vomitting_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Slurred_Voice']; if($usertype == 'on'){ echo " <tr><td width='33%'> Slurred Voice: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Slurred_Voice_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Nausea']; if($usertype == 'on'){ echo " <tr><td width='33%'> Nausea: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Nausea_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Loss_Appetite']; if($usertype == 'on'){ echo " <tr><td width='33%'> Loss of Appetite: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Loss_Appetite_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Delusion']; if($usertype == 'on'){ echo " <tr><td width='33%'> Delusion: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Delusion_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Fits_Anger']; if($usertype == 'on'){ echo " <tr><td width='33%'> Fits of Anger: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Fits_Anger_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Depression']; if($usertype == 'on'){ echo " <tr><td width='33%'> Depression: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Depression_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Memory_Loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> Memory Loss: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Memory_Loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Bleeding_Disorder']; if($usertype == 'on'){ echo " <tr><td width='33%'> Bleeding Disorder: </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Bleeding_Disorder_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Migraine']; if($usertype == 'on'){ echo " <tr><td width='33%'> Migraine : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Migraine_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Frequent_Urination']; if($usertype == 'on'){ echo " <tr><td width='33%'> Frequent Urination : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Frequent_Urination_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Join']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Join : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Join_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Weight_Gain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Weight Gain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Weight_Gain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['weight_loss']; if($usertype == 'on'){ echo " <tr><td width='33%'> weight loss : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[weight_loss_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Body_pain']; if($usertype == 'on'){ echo " <tr><td width='33%'> Body pain : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Body_pain_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Physical_Injury']; if($usertype == 'on'){ echo " <tr><td width='33%'> Physical Injury : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Physical_Injury_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr><td width='33%'> Other Symptoms : </td> <td width='33%'>$rs[Other_Symptoms]</td></tr>"; } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['RED_EYE']; if($usertype == 'on'){ echo " <tr><td width='33%'> RED EYE : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[RED_EYE_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Swollen_Eye']; if($usertype == 'on'){ echo " <tr><td width='33%'> Swollen Eye : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Swollen_Eye_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Conjuctiva']; if($usertype == 'on'){ echo " <tr><td width='33%'> Conjuctiva : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Conjuctiva_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Itchiness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Itchiness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Itchiness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Dislocated']; if($usertype == 'on'){ echo " <tr><td width='33%'> Dislocated : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Dislocated_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blur_Vision']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blur Vision : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blur_Vision_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Partial_Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Partial Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Partial_Blindness_note]</td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_Assessment WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Blindness']; if($usertype == 'on'){ echo " <tr><td width='33%'> Blindness : </td> <td width='33%'><i class='fa fa-check' aria-hidden='true'></i></td><td width='33%'>$rs[Blindness_note]</td></tr>"; } else{ echo ""; } } ?> </table> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { ?> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if((Eye_Care!==$rs[casetype]) || ('Eye_Care'==$rs[casetype])) { ?> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <tr><td width='50%'>Significant findings : </td> <td width='50%'>$rs[significate]</td></tr> <tr><td>Nutritional diagnosis</td><td>$rs[Nutritional_Diagnosis]</td></tr> <tr><tr><td>Provisional diagnosis</td><td>$rs[Admission_diagnosis]</td></tr>"; $sqlpatient1 = "SELECT * FROM list_tretment WHERE trid=$rs[tratment]"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo " <tr> <td>Proposed Surgery:</td> <td>$rsn[tratment]</td></tr>"; } } ?> <?php } } ?> </table> <?php } ?> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(Eye_Care==$rs[casetype]) { ?> </form> <?php } } ?> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(Pregnancy==$rs[casetype]) { ?> <h3 align='center'>Obstetric History</h3> <table id="example2" class="table table-bordered table-hover"> <tr> <td width='33%'>Gravida : <?php $sql="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]'"; $result=mysqli_query($con,$sql); $row=mysqli_fetch_array($result); echo "$row[0]"; mysqli_close($con); ?> </td> <td width='33%'>Para : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Delivery'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Abortion : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Abortion'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); outcome ?> </td> </tr> <tr> <td width='33%'>Cesarean : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND mode='LSCS'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Child alive : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND outcome='Alive'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td width='33%'>Death : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND outcome='Death'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> </tr> <tr> </td> <td width='33%'>Miscarriage : <?php $sql1="select count('patientid') from Obstetric_History WHERE patientid='$_GET[patientid]' AND hs_of='Miscarriage'"; $result=mysqli_query($con,$sql1); $row1=mysqli_fetch_array($result); echo "$row1[0]"; mysqli_close($con); ?> </td> <td></td> <td></td> </tr> </table> <p align="right"> <button class="button" data-modal="modalmedi"> Add </button> </p> <table id="example2" class="table table-bordered table-hover"> <tr><th>Date</th><th>Towords</th><th>Action</th></tr> <?php $sql ="SELECT * FROM Obstetric_History WHERE patientid='$_GET[patientid]' ORDER BY id ASC"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { if($rs[hs_of]=='Delivery') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Mode : </b>$rs[mode] <br><b>Outcome: </b>$rs[outcome] <br><b> Baby Gender: </b>$rs[Gender] <br><b>Baby Weight(in kg): </b>$rs[wt] <br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </td> </tr> "; } elseif($rs[hs_of]=='Abortion') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Mode : </b>$rs[mode] <br><b>Outcome: </b>$rs[outcome] <br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </td> </tr>"; } elseif($rs[hs_of]=='Miscarriage') { echo "<tr><td>$rs[hs_years]</td> <td><b>History Of : </b>$rs[hs_of] <br><b>Incident: </b>$rs[incident]<br><b>Complication: </b>$rs[complication] <br></td> <td><div class='btn-group'> <button type='button' class='btn btn-default dropdown-toggle' data-toggle='dropdown' aria-haspopup='true' aria-expanded='false'> Action <span class='caret'></span> </button> <ul class='dropdown-menu'> <li><a href='testopdslip1.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]&delid=$rs[id]'> <i class='glyphicon glyphicon-edit'></i> Remove</a></li></ul> </td> </tr> "; } } ?> </table> <?php } } ?> <!--/*--------------------end significant---------------------*/--> <?php $sql ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(Eye_Care==$rs[casetype]) { ?> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <tr><th>Admission diagnosis</th> <th>Note</th> <th>Eye</th> </tr> <tr> <?php $sql ="SELECT * FROM opdslip WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <td> $rs[Admission_diagnosis] <b>$rs[other_Admission_diagnosis]</td> <td> $rs[note] </td> <td> $rs[eyetype] </td> "; } ?> </tr> </table> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Visual Acuity Test</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php $sql ="SELECT * FROM visual WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td>Un-Aided</td> <td> $rs[Un_right]</td> <td> $rs[Un_left]</td> </tr> <td>Aided / Present Glass</td> <td> $rs[Aided_right]</td> <td> $rs[Aided_left]</td> </tr> "; } ?> </table> <br> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Glass Advices Distance</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='Distance' "; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Glass Advices Near</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php $sql ="SELECT * FROM Glass_Advices WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]' AND Examination_type='near' "; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[SPH]</td> <td> $rs[SPH_right]</td> <td> $rs[SPH_left]</td> </tr> <tr> <td> $rs[CYL]</td> <td> $rs[CYL_right]</td> <td> $rs[CYL_left]</td> </tr> <tr> <td> $rs[AXIS]</td> <td> $rs[AXIS_right]</td> <td> $rs[AXIS_left]</td> </tr> <tr> <td> $rs[VISION]</td> <td> $rs[VISION_right]</td> <td> $rs[VISION_left]</td> </tr> "; } ?> </tbody> </table> <br> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Examination</th> <th>Right Eye</th> <th>Left Eye</th> </tr> </thead> <?php $sql ="SELECT * FROM onexamnation WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[Examination]</td> <td> $rs[Result]</td> <td> $rs[left_result]</td> </tr> "; } ?> </tbody> <tfoot> </tfoot> </table> <?php } } ?> <h4 align="center"><b>Investigation</b></h4> <table id="example2" id ="demo" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Date Time</th> <th>Investigation</th> <th>Result</th> <th>Evidence (Upload)</th> </tr> </thead><tbody> <?php $sql ="SELECT * FROM investigation WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td> $rs[created_at]</td> <td> "; $sqlpatient1 = "SELECT * FROM labdepartment WHERE labdepartmentid='$rs[Category]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo"$rsn[lab_department_name]"; } $sqlpatient1 = "SELECT * FROM radiobodypart WHERE radiobodypartid='$rs[Sub_Category]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" -$rsn[bodypart]"; } $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[Investigation]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo"-<b>$rsn[Investigation]</b>"; } $sqlpatient1 = "SELECT * FROM list_Investigation WHERE ivid='$rs[ivid]'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo" $rsn[Investigation]"; } echo"</b></td> <td> $rs[Result]</td> <td> $rs[Evidence]</td> </tr> "; } ?> </tbody> </table> <h4><b>Rx</b></h4> <table id="example2" class="table table-bordered table-hover" style='width:100%;' border='1'> <thead> <tr> <th>Drug & Dose </th> <th> Route</th> <th>Note</th> <th>Frequency </th> <th>Duration</th> </tr> </thead> <?php $sql ="SELECT * FROM medicinede WHERE patientid='$_GET[patientid]' AND prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr>"; echo "<td> "; if (is_numeric($rs[DRUGS])) { $sql1 ="SELECT * FROM medicine_stok WHERE medicine_id='$rs[DRUGS]'"; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) echo"$rs1[DRUGS_name]-$rs[Dose] <br><span STYLE='font-size:12px'>$rs1[Contain]</span>"; } else { echo"$rs[DRUGS]-$rs[Dose] "; } echo" <br><td>$rs[Route]</td> "; echo"<td>$rs[potential]</td>"; echo" <td>"; switch ($rs[Frequency]) { case '01': echo "OD (Once Daily)"; break; case '2': echo "BID/b.i.d. (twice a day)"; break; case '3': echo "TID/t.id. (three times a day)"; break; case '04': echo "QID/q.i.d. (four times a day)"; break; case '1': echo "QHS (every bedtime)"; break; case '6': echo "Q4h (every 4 hours)"; break; case '4': echo "Q4-6h (every 4 to 6 hours)"; break; case '0.143': echo "QWK (every week)"; break; default: echo ""; } echo"</td>"; echo" <td>$rs[duration] "; echo "Days"; echo" </td> </tr> "; } ?> </thead> </tbody> <tfoot> </tfoot> </table> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr><td> Plan Of Care</td><td>$rs[Plan_Of_Care]</td></tr>"; //echo "<tr><td>Follow Up Care</td><td>$rs[Follow_Up_Care]</td></tr> "; if($rs[procedure_date]!=''){ echo" <tr><td>Operative procedure date</td><td>$rs[procedure_date]</td></tr>"; } } ?> <?php $sql ="SELECT * FROM transferreferal WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo" <tr><td>Follow Up date</td><td>$rs[followup_date]</td></tr> "; } ?> </table> <table id='example2' class='table table-bordered table-hover' style='width:100%;' border='1'> <?php $sql1 ="SELECT * FROM addaspatient WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql1 = mysqli_query($con,$sql1); while($rs1 = mysqli_fetch_array($qsql1)) { $sql ="SELECT * FROM potential WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $sqldoctor= "SELECT * FROM site_users WHERE userno='$rs1[Admitted_Under]'"; $qsqldoctor = mysqli_query($con,$sqldoctor); while($rsdoctor1 = mysqli_fetch_array($qsqldoctor)) { $sqldoctor1= "SELECT * FROM dr WHERE drid='$rs1[Admitted_Under]'"; $qsqldoctor1 = mysqli_query($con,$sqldoctor1); while($rsdoctor11 = mysqli_fetch_array($qsqldoctor1)) { echo"<tr> <th></th> <th></th></tr> <tr> <td><b>$rsdoctor1[name]</b> <br>($rsdoctor11[Qualification]) <br> <div class='logo'> <img data-logo='' src='../../uploads/$rsdoctor11[sign]' style='width:250px;height:100px;' /></td> <td>$rs[created_at] <br><br><br><br><br><br><br></td></tr> "; } } } } ?> </table> </form> </div></div> </div> </div> </div> <!-- PAGE CONTENT ENDS --> </div><!-- /.col --> </div><!-- /.row --> </div><!-- /.page-content --> </div> </div><!-- /.main-content --> <?php include('../includes/footer.php'); ?> <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i> </a> </div><!-- /.main-container --> <!-- basic scripts --> <!--[if !IE]> --> <script src="../assets/js/jquery-2.1.4.min.js"></script> <!-- <![endif]--> <!--[if IE]> <script src="../assets/js/jquery-1.11.3.min.js"></script> <![endif]--> <script type="text/javascript"> if('ontouchstart' in document.documentElement) document.write("<script src='../assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>"); </script> <script src="../assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts --> <script src="../assets/js/jquery.dataTables.min.js"></script> <script src="../assets/js/jquery.dataTables.bootstrap.min.js"></script> <script src="../assets/js/dataTables.buttons.min.js"></script> <script src="../assets/js/buttons.flash.min.js"></script> <script src="../assets/js/buttons.html5.min.js"></script> <script src="../assets/js/buttons.print.min.js"></script> <script src="../assets/js/buttons.colVis.min.js"></script> <script src="../assets/js/dataTables.select.min.js"></script> <!-- ace scripts --> <script src="../assets/js/ace-elements.min.js"></script> <script src="../assets/js/ace.min.js"></script> <!-- inline scripts related to this page --> <script> function printDiv(GFG) { var divToPrint=document.getElementById('GFG'); var newWin=window.open('','Print-Window'); newWin.document.open(); newWin.document.write('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>'); newWin.document.close(); setTimeout(function(){newWin.close();},10); // var divContents = document.getElementById("GFG").innerHTML; // var a = window.open('', '', 'height=500, width=500'); // a.document.write('<html><body >'); // //a.document.write('<body ><div class="container"><div class="row"><div class="col-sm-12"><table class="table" style="width:100%;"><tr><td><?php echo $ra['hsname'] ?></div><div><span style="font-size:18px"><?php echo $Rowhco['Street'] ?> | <?php echo $Rowhco['Locality'] ?></br><?php echo $ra['EmailID'] ?> | <?php echo $ra['numbers'] ?></p></span></td><td><img style="float:right;width: 15%;" src="../../uploads/<?php echo $Rowhco['Logo'] ?>" class="img-responsive img-fluid"/></td></tr></table></div></div></div><hr>'); // a.document.write(divContents); // a.document.write('</body></html>'); // a.document.close(); // a.print(); } </script> <style> .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; } </style> <style> .text-on-pannel { background: #fff none repeat scroll 0 0; height: auto; margin-left: 20px; padding: 3px 5px; position: absolute; margin-top: -47px; border: 1px solid #337ab7; border-radius: 8px; } .panel { /* for text on pannel */ margin-top: 27px !important; } .panel-body { padding-top: 30px !important; } .panel-primary { border-color: #116bb9; } .donate-now { list-style-type:none; margin:25px 0 0 0; padding:0; } .donate-now li { float:left; margin:0 5px 0 0; } .donate-now label { padding:5px; border:1px solid #CCC; cursor:pointer; } .donate-now label:hover { background:#DDD; } </style> </body> </html>