aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-29 01:17:08 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-29 01:17:08 +0000
commitce366dcff1289fbd3246536dd8cd2215faaa4dd1 (patch)
tree1ce8937b1659bf94eff8a3f76895b38aaa1a526c /functions
parent5bd586da84b58f171263a1b69a145c505e97fd28 (diff)
downloadphpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.tar.gz
phpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.tar.bz2
phpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.zip
Stage one of redesign.
Diffstat (limited to 'functions')
-rw-r--r--functions/list_icals.php2
-rw-r--r--functions/list_months.php27
2 files changed, 28 insertions, 1 deletions
diff --git a/functions/list_icals.php b/functions/list_icals.php
index c585780..d4d41ba 100644
--- a/functions/list_icals.php
+++ b/functions/list_icals.php
@@ -6,7 +6,7 @@ if (isset($getdate)) {
} else {
$query="";
}
-print "<form>\n<select name=\"action\" class=\"G10B\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
+print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
#print "<option value=\"null\">Select a Calendar</option>\n";
// open file
diff --git a/functions/list_months.php b/functions/list_months.php
new file mode 100644
index 0000000..c532984
--- /dev/null
+++ b/functions/list_months.php
@@ -0,0 +1,27 @@
+<?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];
+
+print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
+$i = 0;
+$month_time = mktime (0,0,0,1,$this_day,$this_year);
+echo "$this_day, $this_year";
+// build the <option> tags
+while ($i != 12) {
+ $monthdate = date ("Ymd", $month_time);
+ $select_month = strftime($dateFormat_month, $month_time);
+ if ($monthdate == $getdate) {
+ print "<option value=\"month.php?cal=$cal&getdate=$monthdate\" selected>$select_month</option>\n";
+ } else {
+ print "<option value=\"month.php?cal=$cal&getdate=$monthdate\">$select_month</option>\n";
+ }
+ $month_time = strtotime ("+1 month", $month_time);
+ $i++;
+}
+
+// finish <select>
+print "</select>\n</form>";
+?> \ No newline at end of file

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