map.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App;
  3. /**
  4. * @var Customer[] $customers
  5. */
  6. ?>
  7. <div class="row mb-3">
  8. <div class="col">
  9. <h3><?=htmlspecialchars(__("Map"))?></h3>
  10. </div>
  11. </div>
  12. <div class="row">
  13. <div class="col-lg-6">
  14. <div class="mb-3" id="map" style="height: 480px; background: #eee;">
  15. </div>
  16. </div>
  17. <div class="col-lg-6">
  18. <h4><?=htmlspecialchars(__("Customers"))?></h4>
  19. <table id="customers-table" class="table table-bordered">
  20. <colgroup>
  21. <col style="width: 1%"/>
  22. <col style="width: 100%"/>
  23. </colgroup>
  24. <thead>
  25. <tr>
  26. <th>
  27. <!--suppress HtmlFormInputWithoutLabel -->
  28. <input class="form-check-input" type="checkbox" id="all-items-checkbox" />
  29. </th>
  30. <th>
  31. <?=htmlspecialchars(__("Name"))?>
  32. </th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <?php
  37. foreach($customers as $customer) {
  38. ?>
  39. <tr>
  40. <td>
  41. <!--suppress HtmlFormInputWithoutLabel -->
  42. <input class="form-check-input" type="checkbox" name="customer_ids[]" value="<?=$customer->id?>" />
  43. </td>
  44. <td>
  45. <a href="<?=htmlspecialchars($customer->getUrl())?>">
  46. <?=htmlspecialchars($customer->name)?>
  47. </a>
  48. </td>
  49. </tr>
  50. <?php
  51. }
  52. ?>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>