$minical->showWeek = false; $minical->clickMonth = true; $minical->setLinkFunctions('clickDay'); $first_time = new w2p_Utilities_Date($minical->prev_month); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new w2p_Utilities_Date($minical->prev_month); $last_time->setDay($minical->prev_month->getDaysInMonth()); $last_time->setTime(23, 59, 59); $links = array(); require_once W2P_BASE_DIR . '/modules/calendar/links_tasks.php'; getTaskLinks($first_time, $last_time, $links, 20, $company_id, true); require_once W2P_BASE_DIR . '/modules/calendar/links_events.php'; getEventLinks($first_time, $last_time, $links, 20, true); $minical->setEvents($links); $minical->setDate($minical->prev_month); echo '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; echo '<td align="center" >' . $minical->show() . '</td>'; echo '</tr></table><hr noshade size="1">'; $first_time = new w2p_Utilities_Date($minical->next_month); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new w2p_Utilities_Date($minical->next_month); $last_time->setDay($minical->next_month->getDaysInMonth()); $last_time->setTime(23, 59, 59); $links = array(); getTaskLinks($first_time, $last_time, $links, 20, $company_id, true); getEventLinks($first_time, $last_time, $links, 20, true); $minical->setEvents($links); $minical->setDate($minical->next_month); echo '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>';
$minical->showWeek = false; $minical->clickMonth = true; $minical->setLinkFunctions('clickDay'); $first_time = new w2p_Utilities_Date($cal->prev_month); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new w2p_Utilities_Date($cal->prev_month); $last_time->setDay($cal->prev_month->getDaysInMonth()); $last_time->setTime(23, 59, 59); $links = array(); getTaskLinks($first_time, $last_time, $links, 20, $company_id, true); getEventLinks($first_time, $last_time, $links, 20); $minical->setEvents($links); echo '<table class="std" cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; echo '<td valign="top" align="center" width="220">' . $minical->show() . '</td>'; echo '<td valign="top" align="center" width="75%"> </td>'; $minical->setDate($cal->next_month); $first_time = new w2p_Utilities_Date($cal->next_month); $first_time->setDay(1); $first_time->setTime(0, 0, 0); $last_time = new w2p_Utilities_Date($cal->next_month); $last_time->setDay($cal->next_month->getDaysInMonth()); $last_time->setTime(23, 59, 59); $links = array(); getTaskLinks($first_time, $last_time, $links, 20, $company_id, true); getEventLinks($first_time, $last_time, $links, 20, true); $minical->setEvents($links); echo '<td valign="top" align="center" width="220">' . $minical->show() . '</td>'; echo '</tr></table>'; ?> </td></tr></table>
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>'; } echo $s; ?> <table width="100%" class="minical"> <tr> <td valign="top" align="center" width="20%"> </td> <td nowrap="nowrap"><?php echo $AppUI->_('Key'); ?>