| 12345678910111213141516 |
- <?php
- require_once 'reservation.class.php';
- $reservation = new Reservation();
- $time1Value = $_POST['from'];
- $time2Value = $_POST['to'];
- $profile = $_POST['profile'];
- $profiles = [
- "1" => ["id" => 1, "idclass" => "SwimmingPoolLine", "name" => "SwimmingPool", "lines" => "6", "type" => 'H', "frameName" => "SwimmingPoolTitle"],
- "2" => ["id" => 2, "idclass" => "PoolLine", "name" => "Pool", "lines" => "4", "type" => 'V', "frameName" => "PoolTitle"],
- "3" => ["id" => 3, "idclass" => "PoloLine", "name" => "Polo", "lines" => "3", "type" => 'V', "frameName" => "PoloTitle"]
- ];
- print $reservation->selectedProfileWithTimes($profiles[$profile], [$time1Value, $time2Value]);
|