home *** CD-ROM | disk | FTP | other *** search
- <?php /* CALENDAR $Id: vw_day_tasks.php,v 1.3 2003/05/09 10:24:37 eddieajau Exp $ */
- global $this_day, $first_time, $last_time, $company_id, $m, $a;
-
- $links = array();
- // assemble the links for the tasks
- require_once( $AppUI->getConfig( 'root_dir' )."/modules/calendar/links_tasks.php" );
- getTaskLinks( $first_time, $last_time, $links, 100, $company_id );
-
- $s = '';
- $dayStamp = $this_day->format( FMT_TIMESTAMP_DATE );
-
- echo '<table cellspacing="1" cellpadding="2" border="0" width="100%" class="tbl">';
-
- if (isset( $links[$dayStamp] )) {
- foreach ($links[$dayStamp] as $e) {
- $href = isset($e['href']) ? $e['href'] : null;
- $alt = isset($e['alt']) ? $e['alt'] : null;
-
- $s .= "<tr><td>";
- $s .= $href ? "<a href=\"$href\" class=\"event\" title=\"$alt\">" : '';
- $s .= "{$e['text']}";
- $s .= $href ? '</a>' : '';
- $s .= '</td></tr>';
- }
- }
- echo $s;
-
- echo '</table>';
-
- $min_view = 1;
- include $AppUI->getConfig( 'root_dir' ).'/modules/tasks/todo.php';
- ?>