Server IP : 162.240.98.243 / Your IP : 18.119.235.154 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/Pharmacy/ |
Upload File : |
<?php session_start(); require_once("../../patientmanager.php"); require_once("../../DBManager.php"); if(isset($_POST[Infusion])) { $cat=$con->query("INSERT INTO `category`(`subCat`, `Mcat_id`) VALUES ('$_POST[MCategory]','$_POST[id]')"); if($cat==1){ echo "<script>alert('Successfully....');</script>"; } else{ echo "<script>alert('Not Successfully....');</script>"; } } if(isset($_GET[delid])) { $catDel=$con->query("DELETE FROM category WHERE crid='$_GET[delid]'"); if($catDel==1){ echo "<script>alert('Delete Successfully.');</script><script>window.location='add_category.php'</script>;</script>"; } else{ echo "<script>alert('Delete Not Successfully....');</script>"; } } ?> <style> /* Automatic Serial Number Row */ .css-serial { counter-reset: serial-number; /* Set the serial number counter to 0 */ } .css-serial td:first-child:before { counter-increment: serial-number; /* Increment the serial number counter */ content: counter(serial-number); /* Display the counter */ } </style> <input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" /> <br><br> <table id="example2" class="order-table table table-bordered table-hover css-serial"> <thead> <tr> <th><strong>SR.NO</strong></th> <th><strong>Sub Category</strong></th> <th><strong>Action</strong></th> </tr> </thead> <?php include("../dbconnection.php"); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $sql ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql = mysqli_query($con,$sql); if($rs = mysqli_fetch_array($qsql)) { $sqlpatient1 = "SELECT * FROM category where Mcat_id='26'"; $qsqlpatient1 = mysqli_query($con,$sqlpatient1); while($rsn = mysqli_fetch_array($qsqlpatient1)) { echo"<tr><td> </td><td> <b>$rsn[subCat]</b> </td>"; echo" <td><a href='listofMcat_Infusion.php?delid=$rsn[crid]'><i class='fa fa-trash-o' aria-hidden='true' style='color:red; font-size:20px;'></i></a> </td> </tr> "; } } ?> </tbody> <tfoot> </tfoot> </table> <form name="Infusion" method="post"> <label>Category</label> <input type='text' placeholder='Category' name='MCategory'> <br> <br> <input type='hidden' value='26' name='id'> <center><input type="submit" value="Submit" name="Infusion"></center> </form>