From e97ade7b2fc669793200aaa63eccf642fc5302a2 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 30 Jan 2004 06:15:24 +0000 Subject: Work continues on month.php and templates. --- month.php | 197 +++----------------------------------------------------------- 1 file changed, 8 insertions(+), 189 deletions(-) (limited to 'month.php') diff --git a/month.php b/month.php index 456f840..0cee7f2 100644 --- a/month.php +++ b/month.php @@ -39,7 +39,10 @@ $thisday2 = localizeDate($dateFormat_week_list, $unix_time); $num_of_events2 = 0; // select for calendars -$list_icals = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED)); +$list_icals = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED)); +$list_years = list_years(); +$list_months = list_months(); +$list_weeks = list_weeks(); $page = new Page(BASE.'templates/'.$template.'/month.tpl'); @@ -57,11 +60,14 @@ $page->replace_tags(array( 'rss_available' => '', 'rss_valid' => '', 'todo_available' => '', + 'show_search' => '', 'next_month' => $next_month, 'prev_month' => $prev_month, 'show_goto' => '', 'list_icals' => $list_icals, - 'startday_select' => $startday_select, + 'list_years' => $list_years, + 'list_months' => $list_months, + 'list_weeks' => $list_weeks, 'style_select' => $style_select, 'message' => $message @@ -71,190 +77,3 @@ $page->replace_langs($lang); $page->output(); -?> -
- - - - - - - -
- - - - - - -
-
- - -
'.$day.'
'; - $start_day = strtotime("+1 day", $start_day); - } - ?> - - - '.$day.''; - $bgclass = 'class="monthoff"'; - } else { - if ($today_today == $daylink) { - $bgclass = 'class="monthon"'; - } else { - $bgclass = 'class="monthreg"'; - } - } - if ($i == 0) echo ''; - if (isset($master_array[("$daylink")])) { - echo ''; - } else { - echo ''; - } - $sunday = strtotime("+1 day", $sunday); - $i++; - if ($i == 7) { - echo ''; - $i = 0; - $checkagain = date ("m", $sunday); - if ($checkagain != $this_month) $whole_month = FALSE; - } - } while ($whole_month == TRUE); - ?> -
'; - echo ''; - echo '
'; - if ($master_array[("$daylink")]) { - foreach ($master_array[("$daylink")] as $event_times) { - foreach ($event_times as $val) { - $num_of_events2++; - $event_calno = $val['calnumber']; - $event_calna = $val['calname']; - $event_url = $val['url']; - if (!isset($val["event_start"])) { - echo '
'; - openevent($event_calna, '', '', $val, $month_event_lines, 15, '', '', 'psf', $event_url); - echo '
'; - } else { - echo '
 '; - $event_start = @$val["start_unixtime"]; - $event_end = @$val["event_end"]; - if (isset($val['display_end'])) $event_end = $val['display_end']; - $event_star = date($timeFormat, $event_start); - $start2 = date($timeFormat_small, $event_start); - $event_end = date($timeFormat, @strtotime ("$event_end")); - openevent($event_calna, $event_star, $event_end, $val, $month_event_lines, 10, "$start2 ", '', 'ps3', $event_url); - echo '
'; - } - } - } - } - echo '
'; - echo '
'; - echo ''; - echo '
-
- - 0)) { ?> -
- - - - - $val) { - - // Pull out only this months - ereg ("([0-9]{6})([0-9]{2})", $key, $regs); - if ($regs[1] == $parse_month) { - $dayofmonth = strtotime ($key); - $dayofmonth = localizeDate ($dateFormat_week_list, $dayofmonth); - $i = 0; - if ($today_today == $key) { - $fontclass="G10BOLD"; - } else { - $fontclass="G10B"; - } - - // Pull out each day - foreach ($val as $new_val) { - - // Pull out each time - foreach ($new_val as $new_key2 => $new_val2) { - $event_calno = $new_val2['calnumber']; - $event_calna = $new_val2['calname']; - $event_url = $new_val2['url']; - - if ($new_val2["event_text"]) { - if (isset($new_val2["event_start"])) { - $event_start = $new_val2["start_unixtime"]; - $event_end = $new_val2["event_end"]; - if (isset($new_val2['display_end'])) $event_end = $new_val2['display_end']; - $event_start = date ($timeFormat, $event_start); - $event_end = date ($timeFormat, strtotime ("$event_end")); - $event_start2 = $event_start; - } else { - $event_start = "$all_day_lang"; - $event_start2 = ''; - $event_end = ''; - } - - echo "\n"; - echo "\n"; - if ($first_time == TRUE) { - echo ""; - $first_time = FALSE; - } - echo "\n"; - echo "\n"; - } - - } - } - } - } - - ?> -
$dayofmonth ($event_start)\n"; - openevent($event_calna, $event_start, $event_end, $new_val2, 0, 65, '', '', 'psf', $event_url); - echo "
- -
- - - -- cgit v1.2.3