reservation_intervalchange.php 699 B

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