An easy point of sale system with automatic inventory tracking. https://netsyms.biz/apps/nickelbox/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home.php 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /*
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. */
  7. if (!defined('NICKELBOX')) {
  8. die("Direct access denied.");
  9. }
  10. $dbitems = $binstack->select('items', 'itemid', ['AND' => ['price[>]' => 0], 'LIMIT' => 20]);
  11. $items = [];
  12. foreach ($dbitems as $i) {
  13. $items[] = new Item($i);
  14. }
  15. ?>
  16. <div class="container mt-4">
  17. <div class="row">
  18. <div class="col-md-4 col-xl-3 d-none d-md-block">
  19. <div class="card">
  20. <div class="card-body">
  21. <h5 class="card-title">Categories</h5>
  22. <ul class="list-group list-group-flush">
  23. <?php
  24. foreach ($categories as $c) {
  25. ?>
  26. <li class="list-group-item">
  27. <a href="./?page=browse&cat=<?php echo $c['id']; ?>">
  28. <?php echo $c['name']; ?>
  29. </a>
  30. </li>
  31. <?php
  32. }
  33. ?>
  34. </ul>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="col-md-8 col-xl-9 d-flex flex-wrap">
  39. <div class="card-columns">
  40. <?php
  41. foreach ($items as $i) {
  42. echo RenderItem::card($i);
  43. }
  44. ?>
  45. </div>
  46. </div>
  47. </div>
  48. </div>