diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-26 07:04:15 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-26 07:04:15 +0000 |
commit | f35f8c14ad49f607e2cfd54e7799ffae1126558a (patch) | |
tree | 93f3cb7fae903839184bdc13ad81c07acedc428b /month.php | |
parent | 565e425d79431e2ef5e44559003554f6d287ef37 (diff) | |
download | phpicalendar-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.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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> |