aboutsummaryrefslogtreecommitdiffstats
path: root/year.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-01 04:16:36 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-01 04:16:36 +0000
commit42ec254f9caa7322073f3356c82560970a7e3d32 (patch)
treedca0f64512a6a4ce921870157fca0635947d5bb0 /year.php
parent972908f8a0f06713db318770eb204579fa08a507 (diff)
downloadphpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.tar.gz
phpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.tar.bz2
phpicalendar-42ec254f9caa7322073f3356c82560970a7e3d32.zip
Events now spawn popup on pages.
Diffstat (limited to 'year.php')
-rw-r--r--year.php35
1 files changed, 10 insertions, 25 deletions
diff --git a/year.php b/year.php
index a3bc09a..e1bf66d 100644
--- a/year.php
+++ b/year.php
@@ -6,21 +6,13 @@ require_once(BASE.'functions/template.php');
$current_view = 'year';
ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
-$this_day = $day_array2[3];
+$this_day = $day_array2[3];
$this_month = $day_array2[2];
-$this_year = $day_array2[1];
-$display_date = $day_array2[1];
-
-$unix_time = strtotime($getdate);
-$startYear = strtotime ($this_year);
-$checkad = date ("Ymd", $startYear);
-
-$next_year = strtotime ("+1 year", strtotime("$getdate"));
-$next_year = date ("Ymd", $next_year);
-$prev_year = strtotime ("-1 year", strtotime("$getdate"));
-$prev_year = date ("Ymd", $prev_year);
-
-$thisday2 = localizeDate($dateFormat_week_list, $unix_time);
+$this_year = $day_array2[1];
+$next_year = strtotime ("+1 year", strtotime($getdate));
+$next_year = date ("Ymd", $next_year);
+$prev_year = strtotime ("-1 year", strtotime($getdate));
+$prev_year = date ("Ymd", $prev_year);
$page = new Page(BASE.'templates/'.$template.'/year.tpl');
@@ -31,22 +23,15 @@ $page->replace_tags(array(
'cal' => $cal,
'getdate' => $getdate,
'calendar_name' => $calendar_name,
- 'display_date' => $display_date,
+ 'display_date' => $this_year,
'rss_powered' => $rss_powered,
'rss_available' => '',
'rss_valid' => '',
'todo_available' => '',
'event_js' => '',
- 'show_search' => '',
- 'next_month' => $next_month,
- 'prev_month' => $prev_month,
- 'show_goto' => '',
- 'is_logged_in' => '',
- 'list_icals' => $list_icals,
- 'list_years' => $list_years,
- 'list_months' => $list_months,
- 'list_weeks' => $list_weeks,
- 'style_select' => $style_select
+ 'this_year' => $this_year,
+ 'next_year' => $next_year,
+ 'prev_year' => $prev_year
));
$page->output();

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