home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
calendar-2010-08-23.tar.gz
/
calendar-2010-08-23.tar
/
calendar
/
functions
/
list_months.php
< prev
next >
Wrap
PHP Script
|
2003-10-12
|
808b
|
22 lines
<?php
print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
$month_time = strtotime("$this_year-01-01");
$getdate_month = date("m", strtotime($getdate));
// echo "$this_day, $this_year";
// build the <option> tags
for ($i=0; $i<12; $i++) {
$monthdate = date ("Ymd", $month_time);
$month_month = date("m", $month_time);
$select_month = localizeDate($dateFormat_month, $month_time);
if ($month_month == $getdate_month) {
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);
}
// finish <select>
print "</select>";
?>