aboutsummaryrefslogtreecommitdiffstats
path: root/month_bottom.php
diff options
context:
space:
mode:
authorjwangen <jwangen>2002-10-28 05:20:08 +0000
committerjwangen <jwangen>2002-10-28 05:20:08 +0000
commit328a925bafcd69ecfda5fc8101e1a0dc667c5434 (patch)
treef03fe04d6b8fe194f0c0cd5307f44a4419fc19fc /month_bottom.php
parent0c7763fe4fd132ef293e37382537f9b4a246a1dc (diff)
downloadphpicalendar-328a925bafcd69ecfda5fc8101e1a0dc667c5434.tar.gz
phpicalendar-328a925bafcd69ecfda5fc8101e1a0dc667c5434.tar.bz2
phpicalendar-328a925bafcd69ecfda5fc8101e1a0dc667c5434.zip
spruced up search, fixed a few bugs in sidebar and month_bottom, and a
few various changes in the parser and date_functions
Diffstat (limited to 'month_bottom.php')
-rw-r--r--month_bottom.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/month_bottom.php b/month_bottom.php
index 925bd6f..41c3c5d 100644
--- a/month_bottom.php
+++ b/month_bottom.php
@@ -8,6 +8,8 @@
$next_day = date("Ymd", strtotime("+1 day", $unix_time));
$prev_day = date("Ymd", strtotime("-1 day", $unix_time));
+
+ $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15');
?>
<br>
<table border="0" width="737" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder">
@@ -27,7 +29,7 @@
<table width="160" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", strtotime($getdate)))); ?></font></td>
+ <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td>
<td align="right" valign="top" width="1"></td>
</tr>
<tr>
@@ -57,7 +59,7 @@
<td colspan="7"><img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<?php
- $minical_time = strtotime("-1 month", strtotime($getdate));
+ $minical_time = strtotime("-1 month", $fake_getdate_time);
$minical_month = date("m", $minical_time);
$minical_year = date("Y", $minical_time);
$first_of_month = $minical_year.$minical_month."01";
@@ -254,7 +256,7 @@
<table width="160" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
- <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></font></td>
+ <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", $fake_getdate_time))); ?></font></td>
<td align="right" valign="top" width="1"></td>
</tr>
<tr>
@@ -284,7 +286,7 @@
<td colspan="7"><img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<?php
- $minical_time = strtotime("+1 month", strtotime($getdate));
+ $minical_time = strtotime("+1 month", $fake_getdate_time);
$minical_month = date("m", $minical_time);
$minical_year = date("Y", $minical_time);
$first_of_month = $minical_year.$minical_month."01";

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