admin_orders.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php include 'admin_header.php'; ?>
  2. <div class="content-wrapper">
  3. <section class="content-header">
  4. <h1>
  5. <?=lang::_('Orders')?>
  6. <small><?=lang::_('Manage orders')?></small>
  7. </h1>
  8. <ol class="breadcrumb">
  9. <li><a href="/admin"><i class="fa fa-users"></i> <?=lang::_('Admin')?></a></li>
  10. <li class="active"><?=lang::_('Orders')?></li>
  11. </ol>
  12. </section>
  13. <section class="content">
  14. <div class="box box-info">
  15. <div class="box-header with-border">
  16. <h3 class="box-title"><?=lang::_('Orders list')?></h3>
  17. </div>
  18. <div class="box-body" style="overflow-x: auto;">
  19. <div class="row" style="min-width: 100%"><div class="col-lg-12">
  20. <table class="table table-bordered table-hover dataTable table-striped data-list">
  21. <thead>
  22. <tr>
  23. <th><?=lang::_('Date')?></th>
  24. <th><?=lang::_('Order ID')?></th>
  25. <th><?=lang::_('Hotel')?></th>
  26. <th><?=lang::_('Sales')?></th>
  27. <th><?=lang::_('First name')?></th>
  28. <th><?=lang::_('Last name')?></th>
  29. <th><?=lang::_('Email')?></th>
  30. <th><?=lang::_('Phone')?></th>
  31. <th><?=lang::_('Country')?></th>
  32. <th><?=lang::_('City')?></th>
  33. <th><?=lang::_('ZIP')?></th>
  34. <th><?=lang::_('Street')?></th>
  35. <th><?=lang::_('House number')?></th>
  36. <th><?=lang::_('Transaction ID')?></th>
  37. <th><?=lang::_('Status')?></th>
  38. <th><?=lang::_('Error code')?></th>
  39. <th><?=lang::_('Error message')?></th>
  40. <th><?=lang::_('IP')?></th>
  41. <th><?=lang::_('Browser')?></th>
  42. <th>&nbsp;</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <?php foreach ($orders as $order) : ?>
  47. <tr>
  48. <td><?=$order->order_date?></td>
  49. <td><?=$order->order_uuid?></td>
  50. <td><?php if ($order->order_hotel !== 'undefined' && $order->order_hotel !== '0') echo $order->order_hotel; ?></td>
  51. <td><?=$order->order_sales?></td>
  52. <td><?=$order->order_customer_fname?></td>
  53. <td><?=$order->order_customer_lname?></td>
  54. <td><?=$order->order_customer_email?></td>
  55. <td><?=$order->order_customer_phone?></td>
  56. <td><?=$order->order_customer_country?></td>
  57. <td><?=$order->order_customer_city?></td>
  58. <td><?=$order->order_customer_zip?></td>
  59. <td><?=$order->order_customer_street?></td>
  60. <td><?=$order->order_customer_house?></td>
  61. <td><?=$order->order_transaction_id?></td>
  62. <td id="status_<?=$order->order_id?>">
  63. <?php if (empty($order->order_auth_code)) : ?>
  64. <button type="button" onclick="reloadOrderStatus('<?=$order->order_id?>','<?=$order->order_uuid?>');" class="btn btn-flat btn-danger btn-sm"><i class="fa fa-refresh"></i> Check</button>
  65. <?php else : ?>
  66. <?=$order->order_auth_code?>
  67. <?php endif; ?>
  68. </td>
  69. <td id="errorcode_<?=$order->order_id?>"><?=$order->order_error_code?></td>
  70. <td id="errormsg_<?=$order->order_id?>"><?=$order->order_error_message?></td>
  71. <td><?=$order->order_customer_ip?></td>
  72. <td><?=$order->order_customer_browser?></td>
  73. <td>
  74. <?php if ($order->order_auth_code=='FINISHED') : ?>
  75. <button title="Printable QR codes" type="button" onclick="window.open('/admin/qrcodes/<?=$order->order_uuid?>');" class="btn btn-flat btn-success" style=""><i class="fa fa-qrcode"></i></button>
  76. <?php endif; ?>
  77. </td>
  78. </tr>
  79. <?php endforeach; ?>
  80. </tbody>
  81. </table>
  82. </div></div>
  83. </div>
  84. </div>
  85. </section>
  86. </div>
  87. <?php include 'admin_footer.php'; ?>