case 11: if ($model->setPaymentStatus($_POST['paymentId'])) { echo '1'; } else { echo '0'; } break; case 12: if ($model->setPaymentType($_POST)) { echo '1'; } else { echo '0'; } break; case 13: if ($model->unActivePayment($_POST['paymentId'])) { echo '1'; } else { echo '0'; } break; case 14: // Get the available rooms according to a date-range and returns an html <options> elements $roomId = $_POST['roomId']; $currentCheckIn = Tools::formatToMYSQL($_POST['currentCheckIn']); $currentCheckOut = Tools::formatToMYSQL($_POST['currentCheckOut']); $checkIn = Tools::formatToMYSQL($_POST['checkIn']); $checkOut = Tools::formatToMYSQL($_POST['checkOut']); $current = array($currentCheckIn, $currentCheckOut); $needed = array($checkIn, $checkOut); $currentMin = new DateTime(min($current));