Server IP : 162.240.98.243 / Your IP : 3.15.137.59 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 $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { echo" <h3 align='right'><a href='edit_showpage_Medical_surgical_History.php?prescriptionid=$rs[prescriptionid]&patientid=$rs[patientid]'>Edit </a></h3>"; } ?> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Medical Assessment</strong></th> <th><strong>Status</strong></th> <th><strong>Edit</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM medi_condition_final WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $rs[medicalcon] <B>$rs[Specify]</B></td> <td> $rs[Status]</td> <td><a href='edit_medicalcon.php?patientid=$rs[patientid]&medicalcoid=$rs[medicalcoid]'>Edit</a></td> </tr> "; } ?> <table id="example2" class="table table-bordered table-hover"> <thead> <tr> <div class='card-header d-flex p-0'> <ul class='nav nav-pills ml-auto p-2'> <th><strong>Allergies</strong></th> <th><strong>Category</strong></th> <th><strong>Edit</strong></th> </tr> </thead> <?php $sql ="SELECT * FROM allergy WHERE patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($ra = mysqli_fetch_array($qsql)) { echo " <tbody> <tr> <td> $ra[Allergen]</td> <td> $ra[Category]</td> <td><a href='edit_alg.php?patientid=$ra[patientid]&allergy_id=$ra[allergy_id]'>Edit</a></td> </tr> "; } ?> </tr> </thead> </tbody> <tfoot> </tfoot> </table> <table id="example2" class="table table-bordered table-hover"> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]'"; $qsql = mysqli_query($con,$sql); if($ra = mysqli_fetch_array($qsql)) { if($ra[Information_Obtained_from] == 'Family-Other'){ echo " <tr> <td>Information Obtained from</td> <td> <b>$ra[specify]/$ra[relation]</b></td> </tr> "; } else { echo " <tr> <td>Information Obtained from</td> <td> $ra[Information_Obtained_from]</td> </tr> "; } } ?> </tr> </thead> </tbody> <tfoot> </tfoot> </table> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { if(on==$rs[Addiction]) { ?> <h3 align='center'>Addiction </h3> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Tobacco']; if($usertype == 'on'){ echo " <tr><td width='50%'> Tobacco: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Alcohol']; if($usertype == 'on'){ echo " <tr><td width='50%'> Alcohol: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php $sql ="SELECT * FROM Medical_surgical WHERE prescriptionid='$_GET[prescriptionid]' AND patientid='$_GET[patientid]'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { $usertype=$rs['Smoking']; if($usertype == 'on'){ echo " <tr><td width='50%'> Smoking: </td> <td width='50%'><i class='fa fa-check' aria-hidden='true'></i></td></tr>"; } else{ echo ""; } } ?> <?php } } ?> </table>