diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 05:22:49 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-29 05:22:49 +0000 |
commit | c245584ea8d1748400ea1ca1171f37a4e225d15f (patch) | |
tree | e479aefe82cc00063ad5abbedc52da3c65f76913 | |
parent | fe65ec4e72ae3fdb00b244992c1d27f914879f1d (diff) | |
download | phpicalendar-c245584ea8d1748400ea1ca1171f37a4e225d15f.tar.gz phpicalendar-c245584ea8d1748400ea1ca1171f37a4e225d15f.tar.bz2 phpicalendar-c245584ea8d1748400ea1ca1171f37a4e225d15f.zip |
More tweeks to day layout.
-rw-r--r-- | day.php | 27 | ||||
-rw-r--r-- | functions/draw_functions.php | 3 | ||||
-rw-r--r-- | sidebar.php | 36 |
3 files changed, 44 insertions, 22 deletions
@@ -74,10 +74,33 @@ if ($master_array[($getdate)]) { <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B"> <tr> - <td class="H20" align="center" bgcolor="#DDDDDD" background="images/time_bg.gif"><img src="images/spacer.gif" width="1" height="6" alt=""><br><?php echo "$display_date"; ?><br><img src="images/spacer.gif" width="1" height="3" alt=""></td> + <td width="75" background="images/time_bg.gif"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"images/left_day.gif\" alt=\"\" width=\"28\" height=\"28\" border=\"0\" align=\"left\"></a>"; ?></td> + <td class="H20" align="center" bgcolor="#DDDDDD" background="images/time_bg.gif"><?php echo "$display_date"; ?></td> + <td width="75" background="images/time_bg.gif"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"images/right_day.gif\" alt=\"\" width=\"28\" height=\"28\" border=\"0\" align=\"right\"></a>"; ?></td> </tr> + + <?php + // The all day events returned here. + if ($master_array[($getdate)]["-1"]) { + echo "<tr>\n"; + echo "<td colspan=\"3\" height=\"24\">\n"; + echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">\n"; + foreach($master_array[($getdate)]["-1"] as $allday) { + $all_day_text = $allday["event_text"]; + $description = $allday["description"]; + + echo "<tr>\n"; + echo "<td valign=\"top\" align=\"center\" bgcolor=\"#6699CC\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font color=\"#ffffff\"><i>$all_day_text</i></font></a></td>\n"; + echo "</tr>\n"; + } + echo "</table>\n"; + echo "</td>\n"; + echo "</tr>\n"; + } + ?> + <tr> - <td align="center" valign="top"> + <td align="center" valign="top" colspan="3"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=""></td> diff --git a/functions/draw_functions.php b/functions/draw_functions.php index ee7fd91..52f6d47 100644 --- a/functions/draw_functions.php +++ b/functions/draw_functions.php @@ -1,4 +1,4 @@ -<?php +<?php // function returns starttime and endtime and event length for drawing into a grid function drawEventTimes ($start, $end) { @@ -34,5 +34,4 @@ function drawEventTimes ($start, $end) { return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } - ?>
\ No newline at end of file diff --git a/sidebar.php b/sidebar.php index 616a767..d1d76a2 100644 --- a/sidebar.php +++ b/sidebar.php @@ -13,9 +13,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"images/left_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td> - <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "$thisday2"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"images/right_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"images/left_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%" background="images/side_bg.gif"><b><?php echo "$thisday2"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"images/right_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> @@ -58,9 +58,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><img src="images/spacer.gif" width="1" height="20"></td> - <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "Jump to"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"><img src="images/spacer.gif" width="1" height="20"></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%" background="images/side_bg.gif"><b><?php echo "Jump to"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> @@ -96,9 +96,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><img src="images/spacer.gif" width="1" height="20"></td> - <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "Tomorrow's Events"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"><img src="images/spacer.gif" width="1" height="20"></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%" background="images/side_bg.gif"><b><?php echo "Tomorrow's Events"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1%" background="images/side_bg.gif"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> @@ -157,9 +157,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td> - <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month1"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"><img src="images/spacer.gif" width="1" height="20"></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" background="images/side_bg.gif"><b><?php echo "$display_month1"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> @@ -232,9 +232,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td> - <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month2"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"><img src="images/spacer.gif" width="1" height="20"></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" background="images/side_bg.gif"><b><?php echo "$display_month2"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> @@ -308,9 +308,9 @@ <td valign="center" align="center"> <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder"> <tr> - <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td> - <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month3"; ?></b></td> - <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td> + <td align="left" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"><img src="images/spacer.gif" width="1" height="20"></td> + <td bgcolor="#DDDDDD" align="center" class="G10B" background="images/side_bg.gif"><b><?php echo "$display_month3"; ?></b></td> + <td align="right" valign="top" bgcolor="#DDDDDD" width="1" background="images/side_bg.gif"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF" align="center"> |