HoursController::getHours("", "Weekday", "set_timetable"); } if ($action == 'get_date_hours') { HoursController::getHours("", "Date", "set_timetable"); } if ($action == 'get_default_hours_for_adding') { $type = $_POST['type']; HoursController::getHours($type, "Default", "add"); } if ($action == 'get_weekday_hours_for_adding') { $type = $_POST['type']; HoursController::getHours($type, "Weekday", "add"); } if ($action == 'get_date_hours_for_adding') { $type = $_POST['type']; HoursController::getHours($type, "Date", "add"); } if ($action == 'booking_add_hours') { HoursController::setHours("", "Default", "add"); } if ($action == 'booking_add_weekday_hours') { HoursController::setHours("", "Weekday", "add"); } if ($action == 'booking_add_date_hours') { HoursController::setHours("", "Date", "add"); } if ($action == 'booking_get_rides_info') { reservationController::getRidesInfo(); } if ($action == 'add_instagram_photo') { MainController::add_instagram_photo();
<?php require_once "../core/core.inc"; require_once "../core/view.php"; //$days_array = Dispatcher::get_days_info(); $morning_tours_array = HoursController::getHours("morning", "Default", "get_timetable"); $evening_tours_array = HoursController::getHours("evening", "Default", "get_timetable"); $vouchers_info_array = Dispatcher::booking_get_booking_info("slevomat", ""); $booking_info_array = Dispatcher::booking_get_booking_info("tourists", ""); $directions_info = MainController::getDirInfo(); $json_morning_tours_array = json_encode($morning_tours_array); $json_evening_tours_array = json_encode($evening_tours_array); ?> <div class="modal fade" id="timetable-modal" data-clicked-create-type="Default" data-modal-weekday="" data-modal-date="" data-backdrop="false" tabindex="-1" role="dialog" aria-labelledby="timetable-modal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content timetable-modal-content"> <div class="modal-header timetable-modal-header"> <button type="button" class="global-close" data-dismiss="modal" aria-hidden="true">×</button> <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>--> <div class="modal-title" id=set-timetable-label>Set timetable</div> </div> <div class="modal-body timetable-modal-body"> <div class="tours_wrapper"> <table class="tours_wrapper_table">
<?php require_once "../../core/core.inc"; require_once "../../core/view.php"; $lang = get_language(); $days_array = Dispatcher::get_days_info(); $morning_tours_array = HoursController::getHours("morning", "Weekday", "get_timetable"); $evening_tours_array = HoursController::getHours("evening", "Weekday", "get_timetable"); $vouchers_info_array = Dispatcher::booking_get_booking_info("slevomat", ""); $booking_info_array = Dispatcher::booking_get_booking_info("tourists", ""); $directions_info = MainController::getDirInfo(); $json_morning_tours_array = json_encode($morning_tours_array); $json_evening_tours_array = json_encode($evening_tours_array); ?> <div class="modal-dialog"> <div class="modal-content timetable-modal-content"> <div class="modal-header timetable-modal-header"> <button type="button" class="global-close" data-dismiss="modal" aria-hidden="true">×</button> <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>--> <div class="modal-title" id="set-timetable-label">Set timetable</div> </div> <div class="modal-body timetable-modal-body"> <div id="days-wrapper"> <div class="days-title-label">Days</div> <table class="days-table" border = 0> <tr> <!-- <td onclick="switchDaysClick(0, 'default', this, 0);" id="weekday-all" class="days_td days-td-active"> <div class="weekday-btn-wrapper">