Server IP : 162.240.98.243 / Your IP : 3.139.83.151 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/www/login.easenup.in/Pharmacy/ |
Upload File : |
<?php session_start(); include("../dbconnection.php"); include("menu.php"); include("header.php"); if(isset($_GET['del'])){ $Medi_Condition=$con->query("DELETE FROM `allergy` WHERE allergy_id='$_GET[del]'"); if($Medi_Condition==1){ echo "<script>alert('Allergy Record Delete Successfully...');</script><script>window.location='hos_alg.php';</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>Allergies</title> </head> <body> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <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 class="js-serial" border="1"> <tbody> <th>Allergies and intolerance</th> <th>Category</th> <th>Severity</th> <th>View</th> <?php require_once('../../LoginManager.php'); require_once('../../DBManager.php'); $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM allergy WHERE patientid='$harilal'"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo " <tr> <td>$rs[Allergen]</td> <td>$rs[Reactiontype]</td> <td>$rs[Category]</td> <td> <a href='view_hos_alg.php?allergy_id=$rs[allergy_id]'> <i class='fa fa-eye' style='color:green;font-size:20px;'></i> </a> <a href='edit_hos_alg.php?allergy_id=$rs[allergy_id]'> <i class='fa fa-pencil' style='color:orange;font-size:20px;'></i> </a> <a href='hos_alg.php?del=$rs[allergy_id]'> <i class='fa fa-trash' style='color:red;font-size:20px;'></i> </a> </ul> </div></td> </tr>"; echo "</td></tr>"; } ?> </tbody> <tfoot> </tfoot> </table> <?php include("../dbconnection.php"); $narayan=LoginManager::currentUser(); $harilal=LoginManager::getUserTypeByuname("$narayan"); $sqlpatient1 = "SELECT * FROM site_users WHERE userno='$harilal'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); $rsn = mysqli_fetch_array($qsqlpatient1); echo " <p align='right'><a href='hos_Allergies.php?userno=$rsn[userno]'> <button style='height:40px;width:200px'> Add New Allergies</button><span class='caret'></span></p> </a> <br> <br> <br> "; echo "</td></tr>"; ?> <button onclick="location.href='hosImmunization.php'" type="button"> <span style="color:white"> Next page</span></button> <script> function addRowCount(tableAttr) { $(tableAttr).each(function(){ $('th:first-child, thead td:first-child', this).each(function(){ var tag = $(this).prop('tagName'); $(this).before('<'+tag+'>SR.No</'+tag+'>'); }); $('td:first-child', this).each(function(i){ $(this).before('<td>'+(i+1)+'</td>'); }); }); } // Call the function with table attr on which you want automatic serial number addRowCount('.js-serial'); </script> </body> </html>