home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Freeware / Programare / dotproject / modules / calendar / vw_day_tasks.php < prev    next >
Encoding:
PHP Script  |  2003-05-09  |  958 b   |  32 lines

  1. <?php /* CALENDAR $Id: vw_day_tasks.php,v 1.3 2003/05/09 10:24:37 eddieajau Exp $ */
  2. global $this_day, $first_time, $last_time, $company_id, $m, $a;
  3.  
  4. $links = array();
  5. // assemble the links for the tasks
  6. require_once( $AppUI->getConfig( 'root_dir' )."/modules/calendar/links_tasks.php" );
  7. getTaskLinks( $first_time, $last_time, $links, 100, $company_id );
  8.  
  9. $s = '';
  10. $dayStamp = $this_day->format( FMT_TIMESTAMP_DATE );
  11.  
  12. echo '<table cellspacing="1" cellpadding="2" border="0" width="100%" class="tbl">';
  13.  
  14. if (isset( $links[$dayStamp] )) {
  15.     foreach ($links[$dayStamp] as $e) {
  16.         $href = isset($e['href']) ? $e['href'] : null;
  17.         $alt = isset($e['alt']) ? $e['alt'] : null;
  18.  
  19.         $s .= "<tr><td>";
  20.         $s .= $href ? "<a href=\"$href\" class=\"event\" title=\"$alt\">" : '';
  21.         $s .= "{$e['text']}";
  22.         $s .= $href ? '</a>' : '';
  23.         $s .= '</td></tr>';
  24.     }
  25. }
  26. echo $s;
  27.  
  28. echo '</table>';
  29.  
  30. $min_view = 1;
  31. include $AppUI->getConfig( 'root_dir' ).'/modules/tasks/todo.php';
  32. ?>