diff options
author | jwangen <jwangen> | 2002-10-01 07:06:19 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-10-01 07:06:19 +0000 |
commit | 0fefb33852f88188732083eccaf5999eead9e6d3 (patch) | |
tree | d2fc65e394f160e972797444e2e74224cc202d16 | |
parent | 230de1ab2cd6f6c21d0a14d25990681f8094d3d7 (diff) | |
download | phpicalendar-0fefb33852f88188732083eccaf5999eead9e6d3.tar.gz phpicalendar-0fefb33852f88188732083eccaf5999eead9e6d3.tar.bz2 phpicalendar-0fefb33852f88188732083eccaf5999eead9e6d3.zip |
Day didn't fit in an 800 px window so I shaved 20 px off the content table
-rw-r--r-- | day.php | 8 | ||||
-rw-r--r-- | ical_parser.php | 9 |
2 files changed, 13 insertions, 4 deletions
@@ -75,10 +75,10 @@ if ($master_array[($getdate)]) { </head> <body bgcolor="#FFFFFF"> <center> -<table border="0" width="720" cellspacing="0" cellpadding="0"> +<table border="0" width="700" cellspacing="0" cellpadding="0"> <tr> - <td width="540" valign="top"> -<table width="540" border="0" cellspacing="0" cellpadding="0" class="calborder"> + <td width="520" valign="top"> +<table width="520" border="0" cellspacing="0" cellpadding="0" class="calborder"> <tr> <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> @@ -115,7 +115,7 @@ if ($master_array[($getdate)]) { <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=""></td> <td width="1"></td> <?php for ($m=0;$m < $nbrGridCols;$m++) { - echo "<td><img src=\"images/spacer.gif\" width=\"" . (540 / $nbrGridCols) . "\" height=\"1\" alt=\"\"></td>"; + echo "<td><img src=\"images/spacer.gif\" width=\"" . (520 / $nbrGridCols) . "\" height=\"1\" alt=\"\"></td>"; } ?> </tr> <?php diff --git a/ical_parser.php b/ical_parser.php index ed3720c..d401eab 100644 --- a/ical_parser.php +++ b/ical_parser.php @@ -618,6 +618,15 @@ if (is_array($master_array)) { reset($master_array); } +// sort the sub (day) arrays so the times are in order +foreach (array_keys($master_array) as $k) { + if (is_array($master_array[$k])) { + ksort($master_array[$k]); + reset($master_array[$k]); + } +} + + // Store information in the session /*if ($use_sessions == "yes") { session_start(); |