Re: calendar
| From: | Lorenzo Alberton | Date: | Tue, 11 Jan 2005 20:15:36 +0000 |
| Subject: | Re: calendar | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16878@lists.php.net to get a copy of this message | ||
Hi,
yawstick wrote:
I've been experimenting with the calendar package and have a few questions. Mainly trying to hack the sample 12.php to have color coded weekdays for a work schedule where I work.if ($Day->isEmpty()) {
echo "<td> </td>\n";} else {
echo "<td class='busy'>".$Day->thisDay()."</td>\n";} then define a CSS class called "busy"
How do you change the first day of the week in this sample$sDates = array(); //some selected dates $firstDay = 0; //sunday $Year->build($sDates, $firstDay);
I've looked at 20.php with the payload but need something similar for the whole year but only want to change background colors of the days. Is there an easier way of going about this?@see above $sDates <= array of selected dates then check if $Day->isEmpty(); HTH -- Lorenzo Alberton http://pear.php.net/user/quipo