Exemple #1
0
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script src="../../jquery-2.1.4.min.js"></script>
	<script src="../js/jquery-ui.min.js"></script>
	<script src="../js/jquery.tooltipster.min.js"></script>
	<script src="../../bootstrap-3.3.6/js/bootstrap.js"></script>
	<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
	<link rel="stylesheet" href="../js/jquery-ui.css"></link>
	<link rel="stylesheet" href="../js/jquery-ui.theme.min.css"></link> 
	<link rel="stylesheet" href="../myCSS/tooltipster.css"></link> 
	<link rel="stylesheet" href="../myCSS/tooltipster-noir.css"></link>	

	<script>
		$(document).ready(function(){

			<?php 
foreach ($ro->inventory_list_inventoryCode() as $inventoryCode) {
    ?>

				$(document).on("click","#deleteNow<?php 
    echo $inventoryCode;
    ?>
",function(){ 
					$.post("medicine-new-delete.php",{inventoryCode:<?php 
    echo $inventoryCode;
    ?>
},function(data){
						$("#myTable").load("medicine-new.php #myTable");	
					});
				});

<?php

include "../../myDatabase4.php";
$ro = new database4();
$ro->inventory_list("medicine");
$inventoryCode = $ro->inventory_list_inventoryCode();
$generic = $ro->inventory_list_genericName();
$brand = $ro->inventory_list_description();
$qty = $ro->inventory_list_qty();
$stockCardNo = $ro->inventory_list_stockCardNo();
$unitcost = $ro->inventory_list_unitcost();
$ipdPrice = $ro->inventory_list_ipdPrice();
$opdPrice = $ro->inventory_list_opdPrice();
$dateAdded = $ro->inventory_list_dateAdded();
$countInventoryCode = count($inventoryCode);
$genericNo = count($generic);
$brandNo = count($brand);
$qtyNo = count($qty);
$countStockCard = count($stockCardNo);
$unitcostNo = count($unitcost);
$ipdPriceNo = count($ipdPrice);
$opdPriceNo = count($opdPrice);
$dateAddedNo = count($dateAdded);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Inventory</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="/bootstrap-3.3.6/css/bootstrap.min.css">