plugin_path . 'includes/models/methods-api.php';
$method = new Methods();
include $controller->plugin_path . 'includes/translations/translations.php';
$txt = new Translation;
$room_type_id = sanitize_text_field($_POST['param1']);
$current_year = sanitize_text_field($_POST['param2']);
$room_type_price = $method->has_get_room_type_price($room_type_id);
$room_type_name = $method->has_get_name_by_room_type_id($room_type_id);
?>
| txt("Room type") ?> |
|
| txt("Base price") ?> |
has_currency($room_type_price); ?> |
| txt("Year") ?> |
|
|
|
|
| txt("Month/Date") ?> |
|
|
prefix . 'hotel_has_pricing';
$query = "SELECT * FROM $table WHERE `room_type_id` = $room_type_id AND `day` = $i AND `month` = $m AND `year` = $current_year";
$wpdb->get_results($query);
//$wpdb->get_results("SELECT * FROM $table WHERE `day` = $i AND `month` = $m AND `year` = $current_year");
if ($wpdb->num_rows == 0){
$room_price = $room_type_price;
}
else{
$custom_pricing = $wpdb->get_row($query);
$room_price = $custom_pricing->price;
}
$full_date = $i . " " . $month . ", " . $current_year;
$day_name = date('D',
strtotime($full_date));
?>
|