aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-30 00:53:54 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-30 00:53:54 +0000
commit7dd9656474919d73208e1894a6553a0d2ae24af9 (patch)
treef51cecf2b0046c2de4816afe1e63e62df96497a8 /month.php
parent9f95b770160f049cd46b87862d53fe0e1063f5b2 (diff)
downloadphpicalendar-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.php39
1 files changed, 35 insertions, 4 deletions
diff --git a/month.php b/month.php
index 9e8d7f2..456f840 100644
--- a/month.php
+++ b/month.php
@@ -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>

© 2014-2024 Faster IT GmbH | imprint | privacy policy