$minical->setStyles('minititle', 'minical'); $minical->showArrows = false; $minical->showWeek = true; $minical->clickMonth = true; $minical->setLinkFunctions('clickDay', 'clickWeek'); $s = ''; for ($j = 0; $j < 3; $j++) { $s .= '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; $s .= '<td valign="top" align="center" width="20%"> </td>'; for ($i = 0; $i <= 3; $i++) { // prepare time period for minical'events' $first_time = new CDate($date); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new CDate($date); $last_time->setDay($date->getDaysInMonth()); $last_time->setTime(23, 59, 59); $links = array(); // assemble the links for the tasks // assemble the links for the events //Pedro A. getTaskLinks($first_time, $last_time, $links, 20, $company_id, true); getEventLinks($first_time, $last_time, $links, 20, true); $minical->setEvents($links); $minical->setDate($date); $s .= '<td valign="top" align="center"> </td>'; $s .= '<td valign="top" align="center" width="200">' . $minical->show() . '</td>'; $date->addMonths(1); } $s .= '<td valign="top" align="center" width="20%"> </td>'; $s .= '</tr></table>';