Log in

View Full Version : Looking for codes for "Today's Schedule" Calander



sunfirejaime
04-23-2011, 10:38 PM
Hi,

This is my first thread so please bare with me.

I am trying to put an "Today's Schedule" on my main page for a yoga studio site. What I would like to see is a calender of today's classes according to real time.

Eg. I open up my site on Wednesday, and on my main page it reads something like "Classes for Wednesday" and then a simple list of times and styles beneath the header. Then, on Thursday, I can check again and it will have changed to reflect Thursdays classes......

I'm not sure what to title this, therefore I have no idea how to search for it. Can someone point me in the right direction?

I want to have a preset of dates that will adjust automatically for the viewer to see quickly what is happening on "Today's Schedule"

Thanks:

djr33
04-23-2011, 11:02 PM
You will need a database (or something like a database) to store your times. This assumes that you have different schedules often. It would be simpler if you have a 7-day repeating schedule, rather than requiring a new list for each day of the year. Either is possible though.

Then you will need to use a programming language that determines the current day and displays the data for that day.

It would be possible to use Javascript for this, though I believe it would be awkward. It would require loading more data than necessary and displaying only some of it. It would also be increasingly more awkward with more data-- if you do have a repeating schedule every 7 days, it would be a lot easier than if it might be different every day of the year (or more).

My suggestion, though it might be difficult, would be to use a serverside language like PHP that can access a database and then organize the data and display the relevant data for the current day.

I'm not sure what your background is or how much detail you want displayed, or how you want to control it. In fact, it will be more difficult to create an easy-to-use administration page (to add/change events) than it will be to display them. If whoever organizes the website can modify the code directly that will be easier. (Easier for making the script, not easier for the person making the changes. In the end it might make sense to make an admin page but that might be best left until later since it isn't immediately needed.)


I imagine you can search for "automatic daily schedule" or "dynamic daily schedule" with other keywords like "html", "javascript", "php" or "website", or just "script". It may take a lot of time to look through the results, but what you're looking for should show up on that.

You might be able to use a (more complicated) system like a CMS or forum if that's appropriate for your site. In fact, you might even be able to use only that feature if you were creative.