aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-26 07:04:15 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-26 07:04:15 +0000
commitf35f8c14ad49f607e2cfd54e7799ffae1126558a (patch)
tree93f3cb7fae903839184bdc13ad81c07acedc428b /month.php
parent565e425d79431e2ef5e44559003554f6d287ef37 (diff)
downloadphpicalendar-f35f8c14ad49f607e2cfd54e7799ffae1126558a.tar.gz
phpicalendar-f35f8c14ad49f607e2cfd54e7799ffae1126558a.tar.bz2
phpicalendar-f35f8c14ad49f607e2cfd54e7799ffae1126558a.zip
Tweek bottom table to not display if no events.
Diffstat (limited to 'month.php')
-rw-r--r--month.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/month.php b/month.php
index 212feec..d7b83eb 100644
--- a/month.php
+++ b/month.php
@@ -108,6 +108,7 @@
$sunday = strtotime("$first_sunday");
$i = 0;
$whole_month = TRUE;
+ $num_of_events = 0;
do {
$day = date ("j", $sunday);
$daylink = date ("Ymd", $sunday);
@@ -155,6 +156,7 @@
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
+ $num_of_events++;
}
}
}
@@ -218,6 +220,12 @@
</tr>
</table>
<br>
+<?php
+
+if ($num_of_events != 0) {
+
+?>
+
<table width="740" border="0" cellspacing="1" cellpadding="2" class="calborder">
<tr>
<td>
@@ -311,6 +319,8 @@
</tr>
</table>
<br>
+
+<?php } ?>
<?php echo "<font class=\"V9\">$powered_by_lang <a class=\"psf\" href=\"http://sourceforge.net/projects/phpicalendar/\">PHP iCalendar $version_lang</a></font>"; ?>
</center>
</body>

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