Server IP : 162.240.98.243 / Your IP : 52.14.151.45 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'); require_once('../patientmanager.php'); include 'workdeskmenu.php'; include 'header.php'; include("dbconnection.php"); ?> <div class='content-wrapper'> <!-- Content Header (Page header) --> <section class='content-header'> <?php session_start(); include("dbconnection.php"); require_once('../DBManager.php'); require_once("../LoginManager.php"); require_once('../patientmanager.php'); ?> <!DOCTYPE html> <html> <head> <title>Medicine Low Stock</title> <style> .modal { display: none; position: fixed; z-index: 8; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0.4); } .modal-content { margin: 50px auto; border: 1px solid #999; width: 60%; } h2,p { margin: 0 0 20px; font-weight: 400; } .form1 { padding: 25px; margin: 25px; box-shadow: 0 2px 5px #f5f5f5; background: #eee; } input, textarea, select { width: 100%; padding: 6px; margin-bottom: 20px; border: 1px solid #1c87c9; outline: none; } .contact-form button { width: 100%; padding: 10px; border: none; background: #1c87c9; font-size: 16px; font-weight: 400; color: #fff; } button:hover { background: #2371a0; } .close { color: #aaa; float: right; font-size: 58px; font-weight: bold; } .close:hover, .close:focus { color: black; text-decoration: none; cursor: pointer; } button.button { display: inline-block; border-bottom: #02274a 1px solid; font-size: 19px; cursor: pointer; } button.button:hover { border-bottom: #a99567 1px solid; color: #a99567; } </style> <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> </head> <body> <h2 Align="center">Medicine in Out Stock </h2> <input type="search" class="light-table-filter" data-table="order-table" placeholder="Search" /> <table id="myTable" class="order-table table table-bordered table-hover css-serial"> <thead> <tr> <th>SR No</th> <th>Medicine Details</th> <th>Quantity</th> <th>Action</th> </tr> </thead> <?php include("dbconnection.php"); require_once('../DBManager.php'); require_once('../LoginManager.php'); $narayan=LoginManager::currentUser(); $usertype=LoginManager::getUserTypeByuname("$narayan"); $a='0'; $sql1 ="SELECT * FROM site_users WHERE userno='$usertype'"; $qsql1 = mysqli_query($con,$sql1); if($re = mysqli_fetch_array($qsql1)) { $a1++; $sql ="SELECT mi.inventory_id,mi.entered_by,mi.Expiry_Date,mi.Batch_number,mi.totalQuatity,mi.vendor,ms.DRUGS_name, lv.name,ms.admin_id,ms.medicine_id FROM medicine_stok AS ms INNER JOIN medicine_inventory AS mi ON ms.medicine_id = mi.medicine_id INNER JOIN list_vendor AS lv ON lv.vid = mi.vendor INNER JOIN medicine_slot AS mt ON ms.medicine_id = mt.medicine_id WHERE `ms`.`admin_id`='$re[entered_by]' AND mi.totalQuatity BETWEEN 0 AND 0 GROUP BY inventory_id"; $qsql = mysqli_query($con,$sql); while($rs = mysqli_fetch_array($qsql)) { echo "<tr> <td></td> <td><b>Medicine :- $rs[DRUGS_name]</b><br><b>Batch No :- $rs[Batch_number]</b><br><b>Vendor:- $rs[name]</b></td> <td><b style='color:red;'>$rs[totalQuatity]</b></td> "; ?> <td><a href='medicine_Stock_out.php?inventory=<?php echo $rs[inventory_id] ?>' style='color:red;font-size:20px;' onclick="return confirm('Are you sure?')"><i class='fa fa-trash-o'></i></a></td> <?php echo "<tr>"; } } if(isset($_GET[inventory])) { $mi ="DELETE FROM `medicine_inventory` WHERE `inventory_id`='$_GET[inventory]'"; //echo $mi; $qmi=mysqli_query($con,$mi); if(mysqli_affected_rows($con) == 1) { echo "<script>alert('Deleted successfully..');</script>"; echo "<script>window.location.replace('medicine_Stock_out.php'); </script>"; } } ?> </tbody> <tfoot> </tfoot> </table> </body> </html> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>