diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-01-30 00:53:54 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-01-30 00:53:54 +0000 |
commit | 7dd9656474919d73208e1894a6553a0d2ae24af9 (patch) | |
tree | f51cecf2b0046c2de4816afe1e63e62df96497a8 /month.php | |
parent | 9f95b770160f049cd46b87862d53fe0e1063f5b2 (diff) | |
download | phpicalendar-7dd9656474919d73208e1894a6553a0d2ae24af9.tar.gz phpicalendar-7dd9656474919d73208e1894a6553a0d2ae24af9.tar.bz2 phpicalendar-7dd9656474919d73208e1894a6553a0d2ae24af9.zip |
Updates to template, started templating of month.php.
Diffstat (limited to 'month.php')
-rw-r--r-- | month.php | 39 |
1 files changed, 35 insertions, 4 deletions
@@ -1,8 +1,8 @@ <?php - -$current_view = "month"; define('BASE', './'); -include(BASE.'functions/ical_parser.php'); +include_once(BASE.'functions/ical_parser.php'); +require_once(BASE.'functions/template.php'); +$current_view = "month"; if ($minical_view == 'current') $minical_view = 'month'; ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); @@ -38,7 +38,38 @@ $start_month_day = dateOfWeek($first_of_month, $week_start_day); $thisday2 = localizeDate($dateFormat_week_list, $unix_time); $num_of_events2 = 0; -include (BASE.'includes/header.inc.php'); +// select for calendars +$list_icals = display_ical_list(availableCalendars($username, $password, $ALL_CALENDARS_COMBINED)); + + +$page = new Page(BASE.'templates/'.$template.'/month.tpl'); + +$page->replace_tags(array( + 'header' => BASE.'templates/'.$template.'/header.tpl', + 'footer' => BASE.'templates/'.$template.'/footer.tpl', + 'calendar_nav' => BASE.'templates/'.$template.'/calendar_nav.tpl', + 'template' => $template, + 'cal' => $cal, + 'getdate' => $getdate, + 'calendar_name' => $calendar_name, + 'display_date' => $display_date, + 'rss_powered' => $rss_powered, + 'rss_available' => '', + 'rss_valid' => '', + 'todo_available' => '', + 'next_month' => $next_month, + 'prev_month' => $prev_month, + 'show_goto' => '', + 'list_icals' => $list_icals, + 'startday_select' => $startday_select, + 'style_select' => $style_select, + 'message' => $message + + )); + +$page->replace_langs($lang); + +$page->output(); ?> <center> |