-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinventory_unchecked.php
44 lines (42 loc) · 1.46 KB
/
inventory_unchecked.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php include("inventory_check_start.php");
include("util.php");
?>
<h1>চেক বাকি</h1>
<form action="inventory_check.php" method="post">
<table id="pack1"class="table table-condensed table-striped table-bordered table-hover">
<tr>
<th>আইডি</th>
<th>বিবরণ</th>
<th>পরিমাণ</th>
</tr>
<?php
//$inventory_check = dbEach("select * from inventory_check");
$inventory = dbEach("select * from inventory");
foreach ($inventory as $index => $entry) {
$pid = $entry["pid"];
$checked = dbEach("select * from inventory_check where pid = '$pid' limit 1");
if($checked != [])
{
unset($inventory[$index]);
}
elseif ($entry["total_qty"]<1)
{
unset($inventory[$index]);
}
}
foreach ($inventory as $entry) {
$description = getDescription($pid);
echo "<tr>
<td>$entry[pid]</td>
<td>$description</td>
<td>$entry[total_qty]</td>
</tr>";
}
?>
</table>
<span id="last-space"></span>
<textarea name="inputStream"></textarea>
<input class="btn btn-info pull-right" type="submit" value="যোগ করুন">
</form>
<!-- <span class="btn btn-info pull-right" onclick="javascript:ajaxPrintPreview();">প্রিন্ট প্রিভিউ</span> -->
<?php include("inventory_check_end.php"); ?>