| 12345678910111213141516171819202122232425262728293031323334353637 |
- <div class="container pt-3 my-4">
- <h2>Select Customer</h2>
- <div class="list-group">
- <?php
- $uri = $_SERVER["REQUEST_URI"];
- $uri_parts = explode("?", $uri);
- $path = array_shift($uri_parts);
- if(Core::$user->isAdmin() && Core::$allow_all_customers) {
- $query = $_GET;
- unset($query["path"]);
- $query["customer_id"] = "ALL";
- ?>
- <a class="list-group-item list-group-item-action" href="<?=htmlspecialchars($path)?>?<?=http_build_query($query)?>">
- <?=__("All")?>
- </a>
- <?php
- }
- foreach($customers as $customer) {
- $query = $_GET;
- unset($query["path"]);
- $query["customer_id"] = $customer->id;
- ?>
- <a class="list-group-item list-group-item-action" href="<?=htmlspecialchars($path)?>?<?=http_build_query($query)?>">
- <?=htmlspecialchars($customer->name)?>
- </a>
- <?php
- }
- ?>
- </div>
- </div>
|