});

                            $('#add-evening-hours-plus').popover({
                                template: '<div class="popover" role="tooltip">' +
                                        '<div class="arrow"></div>' +
                                        '<h3 class="popover-title"></h3>' +
                                        '<div class="popover-content"></div>' +
                                        '</div>',
                                html: true
                            });
                        </script>
                        <tr><td height='10px'></td></tr>
                        <tr class="tours_wrapper_table_low">
                            <?php 
booking_hours_table_view("", $morning_tours_array, "morning", "weekday", true, 1, 'Weekday');
booking_hours_table_view("", $evening_tours_array, "evening", "weekday", true, 2, 'Weekday');
?>
                        </tr>
                    </table>


                </div>
            </div>
            <div class="modal-footer timetable-modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <!--<button id="new_service_save_btn" type="button" class="btn-next" onclick="">Save</button>-->
            </div>
        </div>
    </div>

    <script>
예제 #2
0
 static function getHours($type, $create_type, $action)
 {
     $result = array();
     $cursor = "";
     $class = $create_type . "Hours";
     if ($action == 'set_timetable') {
         $morning_tours_array = $class::get("morning", $action);
         $evening_tours_array = $class::get("evening", $action);
         if ($create_type == 'Date') {
             $date = $_POST['date'];
             booking_hours_table_view($date, $morning_tours_array, "morning", $action, true, 1, $create_type);
             booking_hours_table_view($date, $evening_tours_array, "evening", $action, true, 2, $create_type);
         } else {
             booking_hours_table_view("", $morning_tours_array, "morning", $action, true, 1, $create_type);
             booking_hours_table_view("", $evening_tours_array, "evening", $action, true, 2, $create_type);
         }
     }
     if ($action == "get_timetable") {
         return $class::get($type, $action);
     }
     if ($action == "add") {
         $result = $class::get($type, $action);
         echo json_encode($result);
     }
 }