mirror of
https://github.com/Floriansylvain/Exo-technique-VIE-Barcelone-SaaS-HRTech.git
synced 2026-08-19 11:43:23 +02:00
feat: initial impl w/ styles, scripts, & server-side logic (steps 1, 2, 3)
This commit is contained in:
@@ -1 +1,24 @@
|
||||
<h1>Voitures Client B</h1>
|
||||
<?php
|
||||
require_once __DIR__ . '/../../../../src/utils.php';
|
||||
$cars = DataManager::getCars('clientb');
|
||||
?>
|
||||
<h1>Voitures Client B</h1>
|
||||
<?php if (empty($cars)): ?>
|
||||
<p>Aucune voiture trouvée.</p>
|
||||
<?php else: ?>
|
||||
<ul>
|
||||
<?php foreach ($cars as $car): ?>
|
||||
<?php
|
||||
$model = isset($car['modelName']) ? strtolower($car['modelName']) : '-';
|
||||
$brand = $car['brand'] ?? '-';
|
||||
$garage = DataManager::getGarageById($car['garageId'] ?? null);
|
||||
$garageTitle = $garage['title'] ?? '-';
|
||||
?>
|
||||
<li class="car-item" data-car-id="<?php echo htmlspecialchars($car['id'] ?? ''); ?>">
|
||||
<strong><?php echo htmlspecialchars($model); ?></strong>
|
||||
- <?php echo htmlspecialchars($brand); ?>
|
||||
- Garage: <?php echo htmlspecialchars($garageTitle); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user