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.

onlinesales.php 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. require_once __DIR__ . "/../required.php";
  8. redirectIfNotLoggedIn();
  9. $unshipped = $database->select('transactions', ['[>]customers' => 'customerid'], ['txid (id)', 'txdate', 'shipped', 'trackingnumber', 'customers.customerid', 'customers.name', 'customers.email', 'customers.phone', 'customers.address', 'customers.notes'], ['AND' => ['type' => 3, 'shipped' => null]]);
  10. ?>
  11. <table id="ordertable" class="table table-bordered table-hover table-sm">
  12. <thead>
  13. <tr>
  14. <th data-priority="0"></th>
  15. <th data-priority="1"><?php lang('actions'); ?></th>
  16. <th data-priority="1"><i class="fas fa-fw fa-user d-none d-md-inline"></i> <?php lang('name'); ?></th>
  17. <th data-priority="2"><i class="fas fa-fw fa-phone d-none d-md-inline"></i> <?php lang('phone'); ?></th>
  18. <th data-priority="3"><i class="fas fa-fw fa-at d-none d-md-inline"></i> <?php lang('email'); ?></th>
  19. <th data-priority="4"><i class="fas fa-fw fa-map-marker d-none d-md-inline"></i> <?php lang('address'); ?></th>
  20. <th data-priority="5"><i class="fas fa-fw fa-sticky-note d-none d-md-inline"></i> <?php lang('notes'); ?></th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <?php
  25. foreach ($unshipped as $o) {
  26. ?>
  27. <tr>
  28. <td></td>
  29. <td>
  30. <a class="btn btn-primary btn-sm" href="app.php?page=editcustomer&id=<?php echo $c['id']; ?>"><i class="fas fa-edit"></i> <?php lang("edit"); ?></a>
  31. </td>
  32. <td><?php echo $o['name']; ?></td>
  33. <td><?php echo $o['phone']; ?></td>
  34. <td><?php echo $o['email']; ?></td>
  35. <td><?php echo $o['address']; ?></td>
  36. <td><?php echo $o['notes']; ?></td>
  37. </tr>
  38. <?php
  39. }
  40. ?>
  41. </tbody>
  42. <tfoot>
  43. <tr>
  44. <th data-priority="0"></th>
  45. <th data-priority="1"><?php lang('actions'); ?></th>
  46. <th data-priority="1"><i class="fas fa-fw fa-user d-none d-md-inline"></i> <?php lang('name'); ?></th>
  47. <th data-priority="2"><i class="fas fa-fw fa-phone d-none d-md-inline"></i> <?php lang('phone'); ?></th>
  48. <th data-priority="3"><i class="fas fa-fw fa-at d-none d-md-inline"></i> <?php lang('email'); ?></th>
  49. <th data-priority="4"><i class="fas fa-fw fa-map-marker d-none d-md-inline"></i> <?php lang('address'); ?></th>
  50. <th data-priority="5"><i class="fas fa-fw fa-sticky-note d-none d-md-inline"></i> <?php lang('notes'); ?></th>
  51. </tr>
  52. </tfoot>
  53. </table>