blob: 5d440e72e12c0e67f2a38da69471c061ee73fa84 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
$i = 0;
$month_time = strtotime($getdate);
// 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>";
?>
|