diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 17:21:58 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 17:21:58 +0000 |
commit | 8af697b5bc29e1ed85ae7b1f1bc08d7be4e8dd6d (patch) | |
tree | 5efe01871b7b66a20b4d51e12661313051d967e9 | |
parent | 1fbd3ea870c2a5f41fa68fc611241bc46efb9c9a (diff) | |
download | phpicalendar-8af697b5bc29e1ed85ae7b1f1bc08d7be4e8dd6d.tar.gz phpicalendar-8af697b5bc29e1ed85ae7b1f1bc08d7be4e8dd6d.tar.bz2 phpicalendar-8af697b5bc29e1ed85ae7b1f1bc08d7be4e8dd6d.zip |
Style sheet tweeks to week.php.
-rw-r--r-- | styles/default.css | 1 | ||||
-rw-r--r-- | week.php | 19 |
2 files changed, 15 insertions, 5 deletions
diff --git a/styles/default.css b/styles/default.css index 0d56f8c..9400b25 100644 --- a/styles/default.css +++ b/styles/default.css @@ -6,6 +6,7 @@ .eventfont { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
.calborder { background-color: #FFFFFF; border: 1px #A1A5A9 solid; }
.dayborder { border-top: 1px dashed #A1A5A9; }
+.weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; }
.timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; }
a.psf {
@@ -92,18 +92,26 @@ if ($master_array[($getdate)]) { <tr> <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=""></td> <td width="1"></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> + <td width="70"><img src="images/spacer.gif" width="70" height="1" alt=""></td> </tr> <?php // print out the day names here - echo "<tr height=\"12\">"; + echo "<tr>"; $thisdate = $start_week_time; $i = 0; - echo "<td bgcolor=\"#f5f5f5\" colspan=\"2\"></td>"; + echo "<td bgcolor=\"#eeeeee\" width=\"60\"><img src=\"images/spacer.gif\" width=\"1\" height=\"12\" alt=\"\"></td>"; + echo "<td bgcolor=\"#eeeeee\" width=\"1\"></td>"; do { $thisday = date("Ymd", $thisdate); $thisday2 = strftime($dateFormat_week_list, $thisdate); - echo "<td height=\"12\" width=\"101\" colspan=\"" . $nbrGridCols . "\" valign=\"top\" align=\"center\" bgcolor=\"#f5f5f5\" class=\"V9\">\n"; + echo "<td width=\"70\" colspan=\"" . $nbrGridCols . "\" valign=\"top\" align=\"center\" bgcolor=\"#eeeeee\" class=\"V9\">\n"; echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$thisday2</a>\n"; echo "</td>\n"; $thisdate = ($thisdate + (25 * 60 * 60)); @@ -138,7 +146,7 @@ if ($master_array[($getdate)]) { echo "</tr>\n"; // $master_array[($getdate)]["$day_time"] - $border = 0; + foreach ($day_array as $key) { $cal_time = $key; @@ -161,6 +169,7 @@ if ($master_array[($getdate)]) { // loop this part 7 times, one for each day for ($week_loop=0; $week_loop<7; $week_loop++) { + $dayborder = 0; $event_length=array(); $thisday = date("Ymd", $thisdate); // check for eventstart @@ -182,7 +191,7 @@ if ($master_array[($getdate)]) { } if (sizeof($event_length) == 0) { if ($dayborder == 0) { - $class = " class=\"dayborder\""; + $class = " class=\"weekborder\""; $dayborder++; } else { $class = ""; |