userstory_list.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php include 'admin_header.php'; ?>
  2. <div class="content-wrapper">
  3. <section class="content-header">
  4. <h1>
  5. User Stories
  6. <small>Visitors activity log</small>
  7. </h1>
  8. </section>
  9. <section class="content">
  10. <div class="box box-info">
  11. <div class="box-header with-border">
  12. <h3 class="box-title">User Stories</h3>
  13. </div>
  14. <div class="box-body" style="overflow-x: auto;">
  15. <table id="userstory-table" class="table table-bordered table-hover table-striped">
  16. <thead>
  17. <tr>
  18. <th>UUID</th>
  19. <th>Hotel</th>
  20. <th>Events</th>
  21. <th>First event</th>
  22. <th>Last event</th>
  23. <th>IP</th>
  24. <th>&nbsp;</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <?php foreach ($stories as $story) : ?>
  29. <tr>
  30. <td>
  31. <code><?=htmlspecialchars($story->uuid)?></code>
  32. <?php if (!empty($story->new_uuids)) : ?>
  33. <br>
  34. <small style="color: #f39c12;"><i class="fa fa-exchange"></i> UUID changed:</small>
  35. <?php foreach ($story->new_uuids as $new_uuid) : ?>
  36. <br><code style="color: #f39c12; font-size: 11px;"><?=htmlspecialchars($new_uuid)?></code>
  37. <?php endforeach; ?>
  38. <?php endif; ?>
  39. </td>
  40. <td><?=htmlspecialchars($story->hotel ?: '-')?></td>
  41. <td><span class="badge bg-blue"><?=$story->event_count?></span></td>
  42. <td><?=$story->first_event?></td>
  43. <td><?=$story->last_event?></td>
  44. <td><?=htmlspecialchars($story->ip_address ?: '-')?></td>
  45. <td>
  46. <a href="/userstory/timeline/?uuid=<?=urlencode($story->uuid)?>" class="btn btn-sm btn-primary">
  47. <i class="fa fa-clock-o"></i> Timeline
  48. </a>
  49. </td>
  50. </tr>
  51. <?php endforeach; ?>
  52. </tbody>
  53. </table>
  54. </div>
  55. </div>
  56. </section>
  57. </div>
  58. <?php include 'admin_footer.php'; ?>