aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-23 02:57:02 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-23 02:57:02 +0000
commit0e6e93f04f2aa4769bace0491010b57723d28c81 (patch)
tree4d4f8a70bd8a590c42e0e310b1c4565b80fbb19a /day.php
parentb47447cb9460cb6b0a7775014fa334ae74dea1b6 (diff)
downloadphpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.tar.gz
phpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.tar.bz2
phpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.zip
added day jumps in day view (configable).
Diffstat (limited to 'day.php')
-rw-r--r--day.php30
1 files changed, 28 insertions, 2 deletions
diff --git a/day.php b/day.php
index 91c1145..06ae4bc 100644
--- a/day.php
+++ b/day.php
@@ -27,6 +27,7 @@ $this_year = $day_array2[1];
$parse_month = date ('Ym', $date);
$thisday2 = localizeDate($dateFormat_week_list, $unix_time);
+$start_week_time = strtotime(dateOfWeek($getdate, $week_start_day));
$dayborder = 0;
@@ -106,8 +107,33 @@ if (is_array($master_array[($getdate)])) {
echo '</td>'."\n";
echo '</tr>'."\n";
}
- ?>
-
+ if ($daysofweek_dayview == 'yes') {
+ ?>
+ <tr>
+ <td>
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <?php
+ echo "<tr>";
+ $thisdate = $start_week_time;
+ $start_day = strtotime($week_start_day);
+ $i = 0;
+ do {
+ $day_num = date("w", $start_day);
+ $day = $daysofweek_lang[$day_num];
+ $thisday = date("Ymd", $thisdate);
+ echo "<td width=\"74\" valign=\"top\" align=\"center\" class=\"dateback\">\n";
+ echo "<font class=\"V9\"><a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$day</a></font>\n";
+ echo "</td>\n";
+ $start_day = strtotime("+1 day", $start_day);
+ $thisdate = strtotime("+1 day", $thisdate);
+ $i++;
+ } while ($i < 7);
+ echo '</tr>';
+ echo '</table>';
+ echo '</td>';
+ echo '</tr>';
+ }
+ ?>
<tr>
<td align="center" valign="top" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

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