static function deleteClientReservation()
 {
     $id = $_POST['id'];
     $reserve_type = $_POST['reserve_type'];
     $cursor = Dispatcher::$mysqli->query("select * from reservation_has_hours where reservation_id={$id}");
     $row = $cursor->fetch_assoc();
     $hours_id = $row['hours_id'];
     $instructorCursor = Dispatcher::$mysqli->query("select instructor.calendar_id " . "from instructor join instructor_has_hours " . "on instructor.`Person_id`=instructor_has_hours.instructor_id " . "where instructor_has_hours.hours_id={$hours_id}");
     $instructorRow = $instructorCursor->fetch_assoc();
     $calendarEventsController = new InstructorCalendarEvents();
     if ($row['reserve_type'] == 'tourists') {
         $calendarEventsController->deleteClientFromEvent($id, $instructorRow, $row, $reserve_type);
     } else {
         if ($row['reserve_type'] == 'slevomat') {
             $calendarEventsController->deleteClientFromEvent($id, $instructorRow, $row, $reserve_type);
         }
     }
     //        echo '<pre>';
     //        print_r($row);
 }