timetable

Week timetable: PHP in_array or jQuery plugin

随声附和 提交于 2019-12-06 10:00:25
问题 No actual code is required in the answers, only good advices for best practices. What I need is to display a week timetable (1h timeslots) in a Bootstrap website for booking purposes. The timeslot will have one of the following status: Available: green background and 'available' text, Already booked: red background and 'occupied' text, Not available for booking: gray background and 'not available' text. When a user clicks on an available timeslot a modal/popup will appear for booking. Only

I am designing a bus timetable using SQL. Each bus route has multiple stops, do I need a different table for each route?

﹥>﹥吖頭↗ 提交于 2019-12-06 05:54:25
问题 I am trying to come up with the most efficient database as possible. My bus routes all have about 10 stops. The bus starts at number one until it reaches the 10th stop, then it comes back again. This cycle happens 3 times a day. I am really stuck as to how I can efficiently generate the times for the buses and where I should store the stops. If I put all the stops in one field and the times in another, the database won't be very dynamic. If I store all the stops one by one in a column and

Making a timetable schedule

让人想犯罪 __ 提交于 2019-12-05 04:29:30
问题 So.. someone recently asked me to make a timetable for them and I agreed. When I sat down to do it I realized it was harder than I thought. It's just a timetable to give shifts to 4 people for either day or night. I thought of something like this: for Monday to Saturday { for(i=0;i<people.length;i++){ if (person[i].available()){ person.worksDay() person is now not available. } } for(i=0;i<people.length;i++){ if (person[i].available()){ person[i].worksNight() person[i] is now not available. }

Week timetable: PHP in_array or jQuery plugin

馋奶兔 提交于 2019-12-04 15:46:29
No actual code is required in the answers, only good advices for best practices. What I need is to display a week timetable (1h timeslots) in a Bootstrap website for booking purposes. The timeslot will have one of the following status: Available: green background and 'available' text, Already booked: red background and 'occupied' text, Not available for booking: gray background and 'not available' text. When a user clicks on an available timeslot a modal/popup will appear for booking. Only one week is displayed (= current week). Eventually the user can click on an arrow and view next week

How to sum the activity time that occurred within 15-minute intervals using overlapping start and stop times(SQL)(t-SQL)

被刻印的时光 ゝ 提交于 2019-12-02 04:20:26
问题 I'd like to write a query that will calculate the total amount of activity that occurred within each 15 minute interval of the day using only timestamps that correspond to activity start and stop times. Here is a sample data set: DATE StartDateTime StopDateTime 2/2/2015 2/2/2015 7:00 2/2/2015 7:25 2/2/2015 2/2/2015 7:20 2/2/2015 7:29 2/2/2015 2/2/2015 7:35 2/2/2015 7:42 2/2/2015 2/2/2015 8:05 2/2/2015 8:14 2/2/2015 2/2/2015 8:16 2/2/2015 8:20 2/2/2015 2/2/2015 8:29 2/2/2015 8:40 2/2/2015 2/2

FullCalendar show only weekDays

筅森魡賤 提交于 2019-11-30 09:45:30
问题 Hello guys I'm trying to show a week timetable, I must show only the name of the date, without date. Such as time table in agenda view. User must be able to select a range in day of the week. For example John Doe Monday from 15:00 to 18:00, Martin Friday from 9:00 to 15:00, and so... I just try to create my personal view as "settimana" like this: $('#calendar').fullCalendar({ header: { left:'', center:'', right:'', }, editable: true, views: { settimana:{ type:'agendaWeek', duration: { days: 7

FullCalendar show only weekDays

匆匆过客 提交于 2019-11-29 16:43:17
Hello guys I'm trying to show a week timetable, I must show only the name of the date, without date. Such as time table in agenda view. User must be able to select a range in day of the week. For example John Doe Monday from 15:00 to 18:00, Martin Friday from 9:00 to 15:00, and so... I just try to create my personal view as "settimana" like this: $('#calendar').fullCalendar({ header: { left:'', center:'', right:'', }, editable: true, views: { settimana:{ type:'agendaWeek', duration: { days: 7 }, title: 'Apertura', } }, defaultView: 'settimana', }); How can I do it? What I must set in option