本文整理汇总了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">