Ejemplo n.º 1
0
        			<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>";
Ejemplo n.º 2
0
<?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;
    }
}