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