aboutsummaryrefslogtreecommitdiffstats
path: root/month_bottom.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-05 19:21:57 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-05 19:21:57 +0000
commit4e877816ed372faa6106deb71e634e3b250d6896 (patch)
tree169b86d042a789021861244f2ba60e6e8c71ad68 /month_bottom.php
parent253ef013b351f8ec885d596af7b611568138b400 (diff)
downloadphpicalendar-4e877816ed372faa6106deb71e634e3b250d6896.tar.gz
phpicalendar-4e877816ed372faa6106deb71e634e3b250d6896.tar.bz2
phpicalendar-4e877816ed372faa6106deb71e634e3b250d6896.zip
This months events are back, minor style sheet tweeks.
Diffstat (limited to 'month_bottom.php')
-rw-r--r--month_bottom.php82
1 files changed, 80 insertions, 2 deletions
diff --git a/month_bottom.php b/month_bottom.php
index f9401d9..4e6292a 100644
--- a/month_bottom.php
+++ b/month_bottom.php
@@ -62,7 +62,6 @@
$start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
$i = 0;
$whole_month = TRUE;
- $num_of_events = 0;
do {
$day = date ("j", $start_day);
$daylink = date ("Ymd", $start_day);
@@ -269,7 +268,6 @@
$start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
$i = 0;
$whole_month = TRUE;
- $num_of_events = 0;
do {
$day = date ("j", $start_day);
$daylink = date ("Ymd", $start_day);
@@ -308,4 +306,84 @@
</td>
</tr>
+
+<?php if ($num_of_events != 0) { ?>
+ <tr>
+ <td colspan="3">
+ <table border="0" cellspacing="0" cellpadding="0" width="100%">
+ <tr>
+ <td align="center" valign="top">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td align="left" valign="top" width="150" class="montheventtop"><?php echo "<img src=\"images/spacer.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td>
+ <td align="center" class="montheventtop" width="437" nowrap><font class="G10BOLD"><?php echo "$this_months_lang"; ?></font></td>
+ <td align="right" valign="top" width="150" class="montheventtop"><?php echo "<img src=\"images/spacer.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td>
+ </tr>
+ <tr>
+ <td colspan="3" height="1"></td>
+ </tr>
+ <?php
+ // Iterate the entire master array
+ foreach($master_array as $key => $val) {
+
+ // Pull out only this months
+ ereg ("([0-9]{6})([0-9]{2})", $key, $regs);
+ if ($regs[1] == $parse_month) {
+ $dayofmonth = strtotime ($key);
+ $dayofmonth = strftime ($dateFormat_week_list, $dayofmonth);
+ $i = 0;
+ if ($getdate == $key) {
+ $fontclass="class=\"G10BOLD\"";
+ } else {
+ $fontclass="class=\"G10B\"";
+ }
+
+ // Pull out each day
+ foreach ($val as $new_val) {
+
+ // Pull out each time
+ foreach ($new_val as $new_key2 => $new_val2) {
+ if ($new_val2["event_text"]) {
+ $event_text = $new_val2["event_text"];
+ $event_text2 = addslashes($new_val2["event_text"]);
+ $event_text2 = str_replace("\"", "&quot;", $event_text2);
+ $description = addslashes($new_val2["description"]);
+ $description = str_replace("\"", "&quot;", $description);
+ $event_start = $new_val2["event_start"];
+ $event_end = $new_val2["event_end"];
+ $event_start = date ($timeFormat, strtotime ("$event_start"));
+ $event_end = date ($timeFormat, strtotime ("$event_end"));
+ $event_text = str_replace ("<br>", "", $event_text);
+ if (strlen($event_text) > 70) {
+ $event_text = substr("$event_text", 0, 65);
+ $event_text = $event_text . "...";
+ }
+ echo "<tr>\n";
+ echo "<td class=\"montheventline\"><font $fontclass>&nbsp;<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$key\">$dayofmonth</a></font> <font class=\"V9G\">($event_start)</font></td>\n";
+ echo "<td colspan=\"2\">\n";
+ if (!$new_val2["event_start"]) {
+ echo "&nbsp;<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font class=\"G10B\">$event_text</font></a> <font class=\"V9G\">($all_day_lang)</font>\n";
+ } else {
+ echo "&nbsp;<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font class=\"G10B\">$event_text</font></a>\n";
+ }
+ echo "</td>\n";
+ echo "</tr>\n";
+ }
+
+ }
+ }
+ }
+ }
+
+ ?>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+
+ </td>
+ </tr>
+
+<?php } ?>
</table>

© 2014-2024 Faster IT GmbH | imprint | privacy policy