aboutsummaryrefslogtreecommitdiffstats
path: root/functions/list_weeks.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-01-30 05:19:21 +0000
committerChad Little <clittle@users.sourceforge.net>2004-01-30 05:19:21 +0000
commit93650f0d9811512ded7c21cd7a0a67b3cc14b732 (patch)
tree703ad787d1d44c75581023c043c33fffc0f3ff23 /functions/list_weeks.php
parent7dd9656474919d73208e1894a6553a0d2ae24af9 (diff)
downloadphpicalendar-93650f0d9811512ded7c21cd7a0a67b3cc14b732.tar.gz
phpicalendar-93650f0d9811512ded7c21cd7a0a67b3cc14b732.tar.bz2
phpicalendar-93650f0d9811512ded7c21cd7a0a67b3cc14b732.zip
Consolidated lists into functions in one file.
Diffstat (limited to 'functions/list_weeks.php')
-rw-r--r--functions/list_weeks.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/functions/list_weeks.php b/functions/list_weeks.php
deleted file mode 100644
index 4de03d8..0000000
--- a/functions/list_weeks.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-
-ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
-$this_day = $day_array2[3];
-$this_month = $day_array2[2];
-$this_year = $day_array2[1];
-
-$check_week = strtotime($getdate);
-
-$start_week_time = strtotime(dateOfWeek(date("Ymd", strtotime("$this_year-01-01")), $week_start_day));
-$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
-
-print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
-
-// build the <option> tags
-do {
- $weekdate = date ("Ymd", $start_week_time);
- $select_week1 = localizeDate($dateFormat_week_jump, $start_week_time);
- $select_week2 = localizeDate($dateFormat_week_jump, $end_week_time);
-
- if (($check_week >= $start_week_time) && ($check_week <= $end_week_time)) {
- print "<option value=\"week.php?cal=$cal&amp;getdate=$weekdate\" selected>$select_week1 - $select_week2</option>\n";
- } else {
- print "<option value=\"week.php?cal=$cal&amp;getdate=$weekdate\">$select_week1 - $select_week2</option>\n";
- }
- $start_week_time = strtotime ("+1 week", $start_week_time);
- $end_week_time = $start_week_time + (6 * 25 * 60 * 60);
-} while (date("Y", $start_week_time) <= $this_year);
-
-// finish <select>
-print "</select>";
-?> \ No newline at end of file

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