$cal_month";
for ( $d=0, $labels=NULL; $d<7; ++$d )
{
$labels .= "\n\t\t" . $weekdays[$d] . "";
}
$html .= "\n\t
. $labels . "\n\t";
/*
* Load events data
*/
$events = $this->_createEventObj();
/*
* Create the calendar markup
*/
$html .= "\n\t"; // Start a new unordered list
for ( $i=1, $c=1, $t=date('j'), $m=date('m'), $y=date('Y');
$c<=$this->_daysInMonth; ++$i )
{
/*
* Apply a "fill" class to the boxes occurring before
* the first of the month
*/
$class = $i<=$this->_startDay ? "fill" : NULL;
/*
* Add a "today" class if the current date matches
* the current date
*/
if ( $c+1==$t && $m==$this->_m && $y==$this->_y )
{
$class = "today";
}
/*
Do'stlaringiz bilan baham: |