當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Inventory::list_inventory方法代碼示例

本文整理匯總了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") {
開發者ID:widro,項目名稱:Widroverse,代碼行數:31,代碼來源:loader.php


注:本文中的Inventory::list_inventory方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。