Tom, I'm not sure what you mean, this works as expected.
$mo will be set if $mo has been hardcoded by the person creating the webpage (don't ask me why they'd do that but it's there in case  - example: isn't that how you get to display the 6-month calendar? by changing the $mo variable?). If it's not there, it takes the value that's passed through the GET values that are passed when you use the arrows to go forward or back (using REQUEST as it's better). This is the exact same procedure that escal uses to distinguish what month to display. So if escal displays the right month, the month name at the top will also be right.
If neither of these values are available, then $mymo hasn't been set yet and then gets set to the current month.
I've tested this code before posting it, but if you can show me a test page where the month doesn't display properly (in line with the month escal displays), then I'll eat my words.
Last edited by ve9gra; 07-07-2004 at 02:25 PM.
|