aboutsummaryrefslogtreecommitdiffstats
path: root/functions/list_years.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-16 05:38:33 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-16 05:38:33 +0000
commit20c668e9def5ae16ff2384ea332fd5548e178f76 (patch)
tree4af2053389e6233964bc55b63091f6bf79ef122f /functions/list_years.php
parentefd930c5a2a02dc06423de7122b4ef890bd6c44c (diff)
downloadphpicalendar-20c668e9def5ae16ff2384ea332fd5548e178f76.tar.gz
phpicalendar-20c668e9def5ae16ff2384ea332fd5548e178f76.tar.bz2
phpicalendar-20c668e9def5ae16ff2384ea332fd5548e178f76.zip
Finally fixed the jumpto's to not have space around them. Also cleaned up
the HTML footprint to be slimmer.
Diffstat (limited to 'functions/list_years.php')
-rw-r--r--functions/list_years.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/functions/list_years.php b/functions/list_years.php
index 07e43f8..f5e823e 100644
--- a/functions/list_years.php
+++ b/functions/list_years.php
@@ -4,13 +4,13 @@ $year_time = strtotime("$getdate");
$getdate_year = date("Y", strtotime($getdate));
$num_years2 = $num_years;
//echo "$num_years2";
-print "<form action=\"day.php\" method=\"GET\">\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
+print "<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">";
// build the <option> tags
for ($i=0; $i < ($num_years2 +2); $i++) {
$year_time2 = strtotime ("-$num_years2 year", $year_time);
$yeardate = date("Ymd", $year_time2);
$year_year = date ("Y", $year_time2);
- print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\">$year_year</option>\n";
+ print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\">$year_year</option>";
$num_years2--;
}
$year_time = strtotime("$this_year-01-01");
@@ -19,13 +19,13 @@ for ($i=0; $i < ($num_years +1); $i++) {
$year_year = date ("Y", $year_time);
$yeardate = date("Ymd", $year_time);
if ($year_year == $getdate_year) {
- print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\" selected>$year_year</option>\n";
+ print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\" selected>$year_year</option>";
} else {
- print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\">$year_year</option>\n";
+ print "<option value=\"year.php?cal=$cal&amp;getdate=$yeardate\">$year_year</option>";
}
$year_time = strtotime ("+1 year", $year_time);
}
// finish <select>
-print "</select>\n</form>";
+print "</select>";
?> \ No newline at end of file

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