map_overview.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <div class="container">
  2. <input type="hidden" id="submit" value="<?=$_SESSION["csrf_token"]?>" />
  3. <h2>Map Overview</h2>
  4. <div class="row">
  5. <div class="col-6">
  6. <div class="form-group">
  7. <label for="location">Location</label>
  8. <input type="text" class="form-control" id="location" placeholder="Type location" data-autocomplete="map" />
  9. <div class="help-text text-muted">
  10. <small>Type location and select to jump to location.</small>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="col-3">
  15. <div class="form-group">
  16. <label for="min-date">Min Test Date</label>
  17. <input type="date" class="form-control" id="min-date" placeholder="Type date" value="<?=date("Y")?>-01-01" />
  18. </div>
  19. </div>
  20. <div class="col-3">
  21. <div class="form-group">
  22. <label for="min-date">Max Test Date</label>
  23. <input type="date" class="form-control" id="min-date" placeholder="Type date" value="<?=date("Y")?>-12-31" />
  24. </div>
  25. </div>
  26. </div>
  27. <div class="mb-4" id="map" data-maps data-lat="51.3555177" data-lng="-1.1743197" data-zoom="7" style="height: 512px;"></div>
  28. <div class="row">
  29. <div class="col-md mb-3">
  30. <h3>Testers</h3>
  31. <div class="list-group mb-3">
  32. <a class="list-group-item list-group-item-action d-flex justify-content-between" data-all-addresses data-selected="false">
  33. <div>
  34. All Tester Addresses
  35. </div>
  36. <span class="badge badge-pill badge-lg align-self-center"></span>
  37. </a>
  38. </div>
  39. <h3>Customers</h3>
  40. <div class="list-group d-block limit-height-1">
  41. <?php
  42. foreach($customers as $customer) {
  43. ?>
  44. <a class="list-group-item list-group-item-action d-flex justify-content-between" data-customer-id="<?=$customer->id?>" data-selected="false">
  45. <div><?=htmlspecialchars($customer->name)?></div>
  46. <span class="badge badge-pill badge-lg"></span>
  47. </a>
  48. <?php
  49. }
  50. ?>
  51. </div>
  52. </div>
  53. <div class="col-md mb-3">
  54. <h3>Current/Future Projects</h3>
  55. <div class="list-group d-block limit-height-2">
  56. <?php
  57. foreach($projects as $project) {
  58. $customer = $project->getCustomer();
  59. $unix_deadline = strtotime($project->dts_deadline . " UTC");
  60. $deadline = date("d/m/Y", $unix_deadline);
  61. $icon = null;
  62. if($project->time_of_day != "A") {
  63. $icon = $project->getTimeOfDayIcon();
  64. }
  65. ?>
  66. <a class="list-group-item list-group-item-action d-flex justify-content-between" data-project-id="<?=$project->id?>" data-selected="false">
  67. <div class="w-100">
  68. <div class="d-flex justify-content-between">
  69. <small><strong><?=strtoupper(htmlspecialchars($customer->name))?></strong></small>
  70. <small><strong>DEADLINE: <?=$deadline?></strong></small>
  71. </div>
  72. <?=htmlspecialchars($project->name)?>
  73. <?php
  74. if($icon) {
  75. ?>
  76. <i class="fal fa-<?=$icon?>"></i>
  77. <?php
  78. }
  79. ?>
  80. </div>
  81. <span class="badge badge-pill badge-lg align-self-center"></span>
  82. </a>
  83. <?php
  84. }
  85. ?>
  86. </div>
  87. </div>
  88. </div>
  89. </div>