diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-26 18:58:03 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-26 18:58:03 +0000 |
commit | b52dfb9366911b3823206cfb84ac04e5387ffc57 (patch) | |
tree | d6dea180b27d9d9663a966238bff61c5866d5286 /day.php | |
parent | e96724021e22328d14046f26bb57aed12275bb12 (diff) | |
download | phpicalendar-b52dfb9366911b3823206cfb84ac04e5387ffc57.tar.gz phpicalendar-b52dfb9366911b3823206cfb84ac04e5387ffc57.tar.bz2 phpicalendar-b52dfb9366911b3823206cfb84ac04e5387ffc57.zip |
Added language support for This Week, Month, corrected navigation.
Diffstat (limited to 'day.php')
-rw-r--r-- | day.php | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -9,16 +9,14 @@ include("./ical_parser.php"); // echo "using sessions"; //} - $starttime = "0700"; $weekstart = 1; $gridLength = 30; -$today_today = date ("Ymd"); $unix_time = strtotime($getdate); -$display_date = strftime($dateFormat_day, $unix_time); +$today_today = date ("Ymd"); $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time)); $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); - +$display_date = strftime($dateFormat_day, $unix_time); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" @@ -35,9 +33,9 @@ $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); <table width="700" border="0" cellspacing="0" cellpadding="0" class="V12"> <tr> - <td align="left" width="5%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">Today</a>"; ?></td> - <td align="center" width="90%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> - <td align="right" width="5%"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td> + <td align="left" width="100"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$today_lang</a>"; ?></td> + <td align="center" width="600"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> + <td align="right" width="100"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td> </tr> <tr> <td colspan="3"><img src="images/spacer.gif" height="10" width="1" alt=""></td> |