/store/admin/view/template/report/customer_reward.tpl

https://github.com/elleeott/WPOC-boilerplate · Smarty Template · 88 lines · 82 code · 6 blank · 0 comment · 4 complexity · d17a92414c881a8344eda6899ef2d85c MD5 · raw file

  1. <?php echo $header; ?>
  2. <div id="content">
  3. <div class="breadcrumb">
  4. <?php foreach ($breadcrumbs as $breadcrumb) { ?>
  5. <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
  6. <?php } ?>
  7. </div>
  8. <div class="box">
  9. <div class="heading">
  10. <h1><img src="view/image/report.png" alt="" /> <?php echo $heading_title; ?></h1>
  11. </div>
  12. <div class="content">
  13. <table class="form">
  14. <tr>
  15. <td><?php echo $entry_date_start; ?>
  16. <input type="text" name="filter_date_start" value="<?php echo $filter_date_start; ?>" id="date-start" size="12" /></td>
  17. <td><?php echo $entry_date_end; ?>
  18. <input type="text" name="filter_date_end" value="<?php echo $filter_date_end; ?>" id="date-end" size="12" /></td>
  19. <td style="text-align: right;"><a onclick="filter();" class="button"><?php echo $button_filter; ?></a></td>
  20. </tr>
  21. </table>
  22. <table class="list">
  23. <thead>
  24. <tr>
  25. <td class="left"><?php echo $column_customer; ?></td>
  26. <td class="left"><?php echo $column_email; ?></td>
  27. <td class="left"><?php echo $column_customer_group; ?></td>
  28. <td class="left"><?php echo $column_status; ?></td>
  29. <td class="right"><?php echo $column_points; ?></td>
  30. <td class="right"><?php echo $column_orders; ?></td>
  31. <td class="right"><?php echo $column_total; ?></td>
  32. <td class="right"><?php echo $column_action; ?></td>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <?php if ($customers) { ?>
  37. <?php foreach ($customers as $customer) { ?>
  38. <tr>
  39. <td class="left"><?php echo $customer['customer']; ?></td>
  40. <td class="left"><?php echo $customer['email']; ?></td>
  41. <td class="left"><?php echo $customer['customer_group']; ?></td>
  42. <td class="left"><?php echo $customer['status']; ?></td>
  43. <td class="right"><?php echo $customer['points']; ?></td>
  44. <td class="right"><?php echo $customer['orders']; ?></td>
  45. <td class="right"><?php echo $customer['total']; ?></td>
  46. <td class="right"><?php foreach ($customer['action'] as $action) { ?>
  47. [ <a href="<?php echo $action['href']; ?>"><?php echo $action['text']; ?></a> ]
  48. <?php } ?></td>
  49. </tr>
  50. <?php } ?>
  51. <?php } else { ?>
  52. <tr>
  53. <td class="center" colspan="8"><?php echo $text_no_results; ?></td>
  54. </tr>
  55. <?php } ?>
  56. </tbody>
  57. </table>
  58. <div class="pagination"><?php echo $pagination; ?></div>
  59. </div>
  60. </div>
  61. </div>
  62. <script type="text/javascript"><!--
  63. function filter() {
  64. url = 'index.php?route=report/customer_reward&token=<?php echo $token; ?>';
  65. var filter_date_start = $('input[name=\'filter_date_start\']').attr('value');
  66. if (filter_date_start) {
  67. url += '&filter_date_start=' + encodeURIComponent(filter_date_start);
  68. }
  69. var filter_date_end = $('input[name=\'filter_date_end\']').attr('value');
  70. if (filter_date_end) {
  71. url += '&filter_date_end=' + encodeURIComponent(filter_date_end);
  72. }
  73. location = url;
  74. }
  75. //--></script>
  76. <script type="text/javascript"><!--
  77. $(document).ready(function() {
  78. $('#date-start').datepicker({dateFormat: 'yy-mm-dd'});
  79. $('#date-end').datepicker({dateFormat: 'yy-mm-dd'});
  80. });
  81. //--></script>
  82. <?php echo $footer; ?>