本文整理匯總了PHP中database4::inventory_list_inventoryCode方法的典型用法代碼示例。如果您正苦於以下問題:PHP database4::inventory_list_inventoryCode方法的具體用法?PHP database4::inventory_list_inventoryCode怎麽用?PHP database4::inventory_list_inventoryCode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類database4
的用法示例。
在下文中一共展示了database4::inventory_list_inventoryCode方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<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");
});
});
示例2: count
<?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">