|
Working on the calendar part now.
It is actually going very well. I wrote a routine for each month, Jan, Feb, etc., but the 1st three months had no games scheduled.
Then April came up with some games. Modified the other months routine and created the April routine and it worked almost flawlessly. I say almost. It generated a nice calendar showing all games for the team I selected (hard coded), except for 1 game. I can't figure that one out yet. So, anyhow, I moved on and modified the routine to do all the teams.
It worked perfect. So, now I go back and copy this new routine over the 1st three months routine, in case someone schedules a game during that time. Duplicate this routine, modifying for each month (number of days) and then it is done.
I have it creating an HTML page for each month for each time.. i.e. LA6_CAL4.html is team 6's April schedule. April will have links back to March and forward to May and also a pull down to select any team.
With a 24 team league, that would be 288 calendars, so, more and likely I create a folder called Calendar under the league site folder and put them in there.
The template cal.htm can be modified (change colors, etc.). I came up with a way to do it, I have the cal.htm file numbered x1x for the top left square, then x2x, etc. I also have a1a, a2a, etc. for each square. My program replaces the x2x with the date for that square and replaces the a2a with the game (Boston or at Boston). So this way, you can modify the cal.htm file to change the background color, or fonts or even put in your logos and as long as you leave the x1x and a1a numbers intact, it will work.
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it!  New show every Monday!! New Blues HOF![/COLOR][/FONT]
|