本文整理匯總了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") {