} ?> </tbody> </table> <div class="timeOptions"> <?php $date = new DateTime(); $after = new DateTime(); $after->setTime(STARTBOOKINGHOUR, STARTBOOKINGMINUTE); if ($date > $after) { $date->add(new DateInterval('P1D')); } ?> <h4>Livraison demain (<?php echo \MealBooker\utils\Utils::formatDate($date); ?> ) entre 9h et 11h </h4> <!--<select name="timeframe" id="tf" class="required"> <?php foreach ($timeFrameDao->getAllEnabled() as $timeFrame) { ?> <option value="<?php echo $timeFrame->getId(); ?> "><?php echo $timeFrame->getStart(); ?> </option> <?php
</thead> <tbody> <?php foreach ($courseDao->getAll() as $course) { ?> <tr> <td><?php echo $course->getId(); ?> </td> <td><?php echo $course->getName(); ?> </td> <td><?php echo Utils::formatDate($course->getCreated()); ?> </td> <td><?php echo $course->getStatus() == 1 ? 'Actif' : 'Inactif'; ?> </td> <td> <a href="<?php echo WEB_PATH; ?> ?page=admin&tab=courseedit&id=<?php echo $course->getId(); ?> "><i class="fa fa-edit"></i></a> </td>
<th>Lieu de livraison</th> <th>Composition</th> <th>Utilisateur</th> </tr> </thead> <tbody> <?php foreach ($orderDao->getAll() as $order) { ?> <tr> <td><?php echo sprintf("%04s", $order->getId()); ?> </td> <td><?php echo Utils::formatDate($order->getCreated(), "d/m/Y H:m"); ?> </td> <!--<td><?php echo $order->getTimeFrame() != null ? $order->getTimeFrame()->__toString() : "-"; ?> </td>--> <td><?php echo $order->getLocation() != null ? $order->getLocation()->getName() : "-"; ?> </td> <td> <ul> <?php foreach ($order->getMeals() as $meal) { echo "<li>" . $meal->getCourse()->getName();
<th>Date de commande</th> <th>Commande</th> <th>Lieu</th> </tr> </thead> <tbody> <?php foreach ($user->getOrders() as $mealOrder) { ?> <tr> <td><?php echo $mealOrder->getId(); ?> </td> <td><?php echo Utils::formatDate($mealOrder->getCreated()); ?> </td> <td> <ul> <?php foreach ($mealOrder->getMeals() as $meal) { echo "<li>" . $meal->getCourse()->getName(); if ($meal->getDrink() != null) { echo " - " . $meal->getDrink()->getName(); } if ($meal->getDessert() != null) { echo " - " . $meal->getDessert()->getName(); } echo " </li>"; }
</thead> <tbody> <?php foreach ($dessertDao->getAll() as $dessert) { ?> <tr> <td><?php echo $dessert->getId(); ?> </td> <td><?php echo $dessert->getName(); ?> </td> <td><?php echo Utils::formatDate($dessert->getCreated()); ?> </td> <td><?php echo $dessert->getStatus() == 1 ? 'Actif' : 'Inactif'; ?> </td> <td> <a href="<?php echo WEB_PATH; ?> ?page=admin&tab=dessertedit&id=<?php echo $dessert->getId(); ?> "><i class="fa fa-edit"></i></a> </td>
</thead> <tbody> <?php foreach ($drinkDao->getAll() as $drink) { ?> <tr> <td><?php echo $drink->getId(); ?> </td> <td><?php echo $drink->getName(); ?> </td> <td><?php echo Utils::formatDate($drink->getCreated()); ?> </td> <td><?php echo $drink->getStatus() == 1 ? 'Actif' : 'Inactif'; ?> </td> <td> <a href="<?php echo WEB_PATH; ?> ?page=admin&tab=drinkedit&id=<?php echo $drink->getId(); ?> "><i class="fa fa-edit"></i></a> </td>
foreach ($timeFrames as $tf) { $var = $order->getTimeFrame() == $tf ? 1 : 0; $courses[$meal->getCourse()->getId()][$tf->getStart()] = $var; } } } array_push($timeFramesOrder[$order->getTimeFrame()->getStart()], $order); } ?> <h3> <!--Commande du jour --><?php /*echo sizeof($todayMealOrder) . "/" . $mealPerDay */ ?> <small class="pull-right"><?php echo Utils::formatDate($refDate); ?> </small> </h3> <div class="clearfix"></div> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>#</th> <th>Utilisateur</th> <th>Composition</th> <th>Livraison</th> </tr> </thead> <tbody>
?> </td> <td><?php echo $user->getFormattedName(); ?> </td> <td><?php echo $user->getMail(); ?> </td> <td><?php echo $user->getPhoneNumber(); ?> </td> <td><?php echo Utils::formatDate($user->getCreated()); ?> </td> <td><?php echo $user->getCompany(); ?> </td> <td><?php echo $user->isOptIn() ? "Oui" : "Non"; ?> </td> <td><?php echo $user->getRole()->getName(); ?> </td> <td><?php