diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-30 06:44:50 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-30 06:44:50 +0000 |
commit | 32eb0b554df82606ae31a7564a7fb8c3ff8f894a (patch) | |
tree | debbe157269791c3b2c33b8d9e94084695e6122b /functions/list_months.php | |
parent | 7db59a82f8d1d422fa798b0902e076a093b6fbcf (diff) | |
download | phpicalendar-32eb0b554df82606ae31a7564a7fb8c3ff8f894a.tar.gz phpicalendar-32eb0b554df82606ae31a7564a7fb8c3ff8f894a.tar.bz2 phpicalendar-32eb0b554df82606ae31a7564a7fb8c3ff8f894a.zip |
Fixed it following your dates around.
Diffstat (limited to 'functions/list_months.php')
-rw-r--r-- | functions/list_months.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/functions/list_months.php b/functions/list_months.php index c532984..5d440e7 100644 --- a/functions/list_months.php +++ b/functions/list_months.php @@ -1,14 +1,9 @@ <?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"; +$month_time = strtotime($getdate); +// echo "$this_day, $this_year"; // build the <option> tags while ($i != 12) { $monthdate = date ("Ymd", $month_time); |