summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2000-06-12 16:13:04 +0000
committerDries Buytaert <dries@buytaert.net>2000-06-12 16:13:04 +0000
commit00ff842a08f1e214c6dc7945093d61f595408e57 (patch)
treed596c2d7d689452b9f1cb0b7707e063fcde3e6d0
parent5c6ddd0a01579d9b88b777663c2c8196484467a8 (diff)
downloadbrdo-00ff842a08f1e214c6dc7945093d61f595408e57.tar.gz
brdo-00ff842a08f1e214c6dc7945093d61f595408e57.tar.bz2
Minor updates:
* Fixed a minor alignment glitch. * Aligned the code to look nicer. * Please make it scale well in IE.
-rw-r--r--calendar.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/calendar.class.php b/calendar.class.php
index a938d9f0c..4a205dd78 100644
--- a/calendar.class.php
+++ b/calendar.class.php
@@ -1,11 +1,11 @@
<?
class calendar {
- var $date;
+ var $date;
- function calendar($date) {
- $this->date = $date;
- }
+ function calendar($date) {
+ $this->date = $date;
+ }
function display() {
global $PHP_SELF;
@@ -28,7 +28,7 @@ class calendar {
### Generate calendar header:
$output .= "<TABLE WIDTH=\"100%\" BORDER=\"1\" CELLSPACING=\"0\" CELLPADDING=\"1\">";
$output .= " <TR><TD ALIGN=\"center\" COLSPAN=\"7\"><A HREF=\"$PHP_SELF?date=$prev\">&lt;&lt;</A> &nbsp; ". date("F Y", $this->date) ." &nbsp; <A HREF=\"$PHP_SELF?date=$next\">&gt;&gt;</A></TH></TR>";
- $output .= " <TR><TD>S</TD><TD>M</TD><TD>T</TD><TD>W</TD><TD>T</TD><TD>F</TD><TD>S</TD></TR>\n";
+ $output .= " <TR><TD ALIGN=\"center\">S</TD><TD ALIGN=\"center\">M</TD><TD ALIGN=\"center\">T</TD><TD ALIGN=\"center\">W</TD><TD ALIGN=\"center\">T</TD><TD ALIGN=\"center\">F</TD><TD ALIGN=\"center\">S</TD></TR>\n";
### Initialize temporary variables:
$nday = 1;
@@ -60,7 +60,7 @@ class calendar {
$nday++;
}
- ### End the calendar:
+ ### Finish the calendar:
if ($sday != 0) {
$end = 7 - $sday;
$output .= "<TD COLSPAN=\"$end\">&nbsp;</TD></TR>";