本文整理汇总了PHP中Inventory::list_inventory方法的典型用法代码示例。如果您正苦于以下问题:PHP Inventory::list_inventory方法的具体用法?PHP Inventory::list_inventory怎么用?PHP Inventory::list_inventory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Inventory
的用法示例。
在下文中一共展示了Inventory::list_inventory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Inventory
$recipe_id = $thisrecipe['recipe_id'];
$recipe_name = $thisrecipe['recipe_name'];
$recipe_image = $thisrecipe['recipe_image'];
$recipe_status = $thisrecipe['recipe_status'];
echo '
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive quicktickbutton" src="' . $recipe_image . '" alt="" id="id' . $recipe_id . '|cat6|chapter_complete" alt="' . $recipe_name . '" style="height:250px;">
</a>
</div>
';
}
}
if ($action == "get_inventory") {
$inventory = new Inventory();
$allinventory = $inventory->list_inventory($_GET['inventory_type']);
foreach ($allinventory as $thisinventory) {
$inventory_id = $thisinventory['inventory_id'];
$inventory_name = $thisinventory['inventory_name'];
$inventory_type = $thisinventory['inventory_type'];
$inventory_image = $thisinventory['inventory_image'];
echo '
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
<a class="thumbnail" href="#">
<img class="img-responsive activeitem_book" src="' . $inventory_image . '" alt="" id="inventory_id' . $inventory_id . '" alt="' . $inventory_name . '">
</a>
</div>
';
}
}
if ($action == "get_stats") {