本文整理匯總了PHP中Inventory::checkinv方法的典型用法代碼示例。如果您正苦於以下問題:PHP Inventory::checkinv方法的具體用法?PHP Inventory::checkinv怎麽用?PHP Inventory::checkinv使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Inventory
的用法示例。
在下文中一共展示了Inventory::checkinv方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Inventory
<ul data-role="listview" data-inset="false" data-icon="false" data-divider-theme="b">
<li data-role="list-divider">Welcome <?php
echo $result->cust_fname;
?>
!</li>
</ul>
<ul data-role="listview" data-inset="false" data-icon="false" data-divider-theme="b">
<li data-role="list-divider">CHECK ITEM</li>
</ul>
<ul data-role="content" class="content-div">
<ul data-role="listview" data-inset="false" data-icon="false" data-divider-theme="b">
<?php
if (Input::exists()) {
if (Token::check(Input::get('token'))) {
$check = new Inventory();
$valid = $check->checkinv(Input::get('item_code'));
if ($valid) {
echo '<li>';
echo "<table data-role='table' class='ui-responsive table-stroke '>";
echo "<thead>";
echo "<tr>";
echo "<th>Item</th>";
echo "<th>Description</th>";
echo "</tr>";
echo "</thead>";
echo "<tbody>";
$disp = DB::getInstance()->query('Select * from tbl_goods a,tbl_goods_stock b where a.goods_id = ?', array(Input::get('item_code')));
echo "<tr>";
echo "<td>Item Code</td>";
echo "<td>" . $disp->result()->goods_id . "</td>";
echo "</tr>";
示例2: Inventory
<?php
require 'core/init.php';
$check = new Inventory();
if (Input::exists() && Input::get('checkitem')) {
$valid = $check->checkinv(Input::get('checkitem'));
if ($valid) {
echo 1;
} else {
echo 0;
}
}