diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-10-23 02:57:02 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-10-23 02:57:02 +0000 |
commit | 0e6e93f04f2aa4769bace0491010b57723d28c81 (patch) | |
tree | 4d4f8a70bd8a590c42e0e310b1c4565b80fbb19a | |
parent | b47447cb9460cb6b0a7775014fa334ae74dea1b6 (diff) | |
download | phpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.tar.gz phpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.tar.bz2 phpicalendar-0e6e93f04f2aa4769bace0491010b57723d28c81.zip |
added day jumps in day view (configable).
-rw-r--r-- | config.inc.php | 33 | ||||
-rw-r--r-- | day.php | 30 |
2 files changed, 45 insertions, 18 deletions
diff --git a/config.inc.php b/config.inc.php index 1c386c3..6f0a661 100644 --- a/config.inc.php +++ b/config.inc.php @@ -1,25 +1,25 @@ <?php -// Configuration file for PHP iCalendar 0.7 +// Configuration file for PHP iCalendar 0.8 // // To set values, change the text between the single quotes // Follow instructions to the right for detailed information -$style_sheet = 'silver'; // Themes support -$calendar_path = './calendars'; // Path to directory with calendars -$default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year' -$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' -$default_cal = 'Home'; // Exact filename of calendar without .ics -$language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish' -$week_start_day = 'Sunday'; // Day of the week your week starts on -$day_start = '0700'; // Start time for day grid -$gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred -$num_years = '3'; // Number of years to display in 'Jump to' -$month_event_lines = '1'; // Number of lines to wrap each event title in month view, 0 means display all lines. -$tomorrows_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. -$allday_week_lines = '1'; // Number of lines to wrap each event title in all-day events in week view, 0 means display all lines. -$week_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. -$timezone = ''; // Set timezone. Read TIMEZONES file for more information +$style_sheet = 'silver'; // Themes support +$calendar_path = './calendars'; // Path to directory with calendars +$default_view = 'day'; // Default view for calendars = 'day', 'week', 'month', 'year' +$minical_view = 'current'; // Where do the mini-calendars go when clicked? = 'day', 'week', 'month', 'current' +$default_cal = 'Home'; // Exact filename of calendar without .ics +$language = 'English'; // Language support - 'English', 'Polish', 'German', 'French', 'Dutch', 'Danish', 'Italian', 'Japanese', 'Norwegian', 'Spanish' +$week_start_day = 'Sunday'; // Day of the week your week starts on +$day_start = '0700'; // Start time for day grid +$gridLength = '15'; // Grid distance in minutes for day view, multiples of 15 preferred +$num_years = '3'; // Number of years to display in 'Jump to' +$month_event_lines = '1'; // Number of lines to wrap each event title in month view, 0 means display all lines. +$tomorrows_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. +$allday_week_lines = '1'; // Number of lines to wrap each event title in all-day events in week view, 0 means display all lines. +$week_events_lines = '1'; // Number of lines to wrap each event title in the 'Tommorrow's events' box, 0 means display all lines. +$timezone = ''; // Set timezone. Read TIMEZONES file for more information // Yes/No questions --- 'yes' means Yes, anything else means no. 'yes' must be lowercase. $save_parsed_cals = 'no'; // Recommended 'yes'. Saves a copy of the cal in /tmp after it's been parsed. Improves performence. @@ -29,6 +29,7 @@ $display_ical_list = 'yes'; // In the 'Jump To' box, display the pop-up menu $allow_webcals = 'no'; // Allow http:// and webcal:// prefixed URLs to be used as the $cal for remote viewing of "subscribe-able" calendars. This does not have to be enabled to allow specific ones below. $this_months_events = 'yes'; // Display "This month's events" at the bottom off the month page. $use_color_cals = 'yes'; // Display each calendar in the pop-up as a different color. +$daysofweek_dayview = 'no'; // Display the days of the week in day.php view. $blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars $blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar @@ -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"> |