diff options
author | Chad Little <clittle@users.sourceforge.net> | 2002-09-24 19:03:20 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2002-09-24 19:03:20 +0000 |
commit | 27801f06818bac4a1c01fc0734ee0b63df9d6fdb (patch) | |
tree | f4aec937628802a7a6985e2c1db58531389c08ef | |
parent | 71e3870fb7658565e6cf17fea3206bff9211d981 (diff) | |
download | phpicalendar-27801f06818bac4a1c01fc0734ee0b63df9d6fdb.tar.gz phpicalendar-27801f06818bac4a1c01fc0734ee0b63df9d6fdb.tar.bz2 phpicalendar-27801f06818bac4a1c01fc0734ee0b63df9d6fdb.zip |
Changed all files to reflect <?php when opening tags.
-rw-r--r-- | config.inc.php | 2 | ||||
-rw-r--r-- | day.php | 32 | ||||
-rw-r--r-- | event.php | 18 | ||||
-rw-r--r-- | functions/date_add.php | 2 | ||||
-rw-r--r-- | functions/date_functions.php | 2 | ||||
-rw-r--r-- | functions/overlapping_events.php | 2 | ||||
-rw-r--r-- | ical_parser.php | 2 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | init.inc.php | 6 | ||||
-rw-r--r-- | languages/danish.inc.php | 2 | ||||
-rw-r--r-- | languages/dutch.inc.php | 2 | ||||
-rw-r--r-- | languages/english.inc.php | 2 | ||||
-rw-r--r-- | languages/french.inc.php | 2 | ||||
-rw-r--r-- | languages/german.inc.php | 2 | ||||
-rw-r--r-- | languages/italian.inc.php | 2 | ||||
-rw-r--r-- | languages/japanese.inc.php | 2 | ||||
-rw-r--r-- | languages/norwegian.inc.php | 2 | ||||
-rw-r--r-- | languages/polish.inc.php | 2 | ||||
-rw-r--r-- | list_icals.php | 2 | ||||
-rw-r--r-- | month.php | 36 | ||||
-rw-r--r-- | week.php | 2 |
21 files changed, 59 insertions, 67 deletions
diff --git a/config.inc.php b/config.inc.php index 45ca313..80a987c 100644 --- a/config.inc.php +++ b/config.inc.php @@ -1,4 +1,4 @@ -<? +<?php $style_sheet = "default.css"; // Themes support - "default.css", "red.css", "green.css" $fullpath = "webcal://"; // what iCal file are we using @@ -1,4 +1,4 @@ -<?php +<?php $current_view = "day"; include("./ical_parser.php"); @@ -31,9 +31,9 @@ if ($getdate == (date("Ymd"))) { <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> - <title><? echo "$calendar_name"; ?></title> - <link rel="stylesheet" type="text/css" href="styles/<? echo "$style_sheet"; ?>"> - <? include "functions/event.js"; ?> + <title><?php echo "$calendar_name"; ?></title> + <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet"; ?>"> + <?php include "functions/event.js"; ?> </head> <body bgcolor="#FFFFFF"> <center> @@ -41,7 +41,7 @@ if ($getdate == (date("Ymd"))) { <table width="700" border="0" cellspacing="0" cellpadding="0" class="V12"> <tr> <td align="left" width="5%"><!--[[a class="psf" href="day.php"]]Today[[/a]]--></td> - <td align="center" width="90%"><? echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> + <td align="center" width="90%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> <td align="right" width="5%"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td> </tr> <tr> @@ -64,16 +64,16 @@ if ($getdate == (date("Ymd"))) { <td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> - <td class="G10B" align="left" valign="top" width="100"><? echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\">$last_day_lang</a>"; ?></td> - <td class="H20" align="center" valign="middle" width="500"><? echo "$display_date"; ?></td> - <td class="G10B" align="right" valign="top" width="100"><? echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\">$next_day_lang</a>"; ?></td> + <td class="G10B" align="left" valign="top" width="100"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\">$last_day_lang</a>"; ?></td> + <td class="H20" align="center" valign="middle" width="500"><?php echo "$display_date"; ?></td> + <td class="G10B" align="right" valign="top" width="100"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\">$next_day_lang</a>"; ?></td> </tr> </table> </td> </tr> <tr> - <td align="left" valign="middle" class="G10B" width="50%"><? include('./list_icals.php'); ?></td> - <td align="right" valign="middle" class="G10B" width="50%"><? echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> + <td align="left" valign="middle" class="G10B" width="50%"><?php include('./list_icals.php'); ?></td> + <td align="right" valign="middle" class="G10B" width="50%"><?php echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> </tr> </table> </td> @@ -84,14 +84,10 @@ if ($getdate == (date("Ymd"))) { <?php // The all day events returned here. $i = 0; -// if ($master_array[($getdate)]["0001"]["event_text"] != "") { -// drei 20020921: changed format of allday array if (sizeof($master_array[($getdate)]["-1"]) > 0) { echo "<tr height=\"30\">\n"; echo "<td colspan=\"15\" height=\"30\" valign=\"middle\" align=\"center\" class=\"eventbg\">\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"4\">\n"; -// foreach($master_array[($getdate)]["0001"]["event_text"] as $all_day_text) { -// drei 20020921: changed format of allday array foreach($master_array[($getdate)]["-1"] as $all_day) { $event_text2 = addslashes($all_day["event_text"]); if ($i > 0) { @@ -122,14 +118,8 @@ if ($getdate == (date("Ymd"))) { $event_length = array (); foreach ($day_array as $key) { -// $k = 0; $cal_time = $key; $key = strtotime ("$key"); -// if ($time_format == "24") { -// $key = date ("G:i", $key); -// } else { -// $key = date ("g:i A", $key); -// } $key = date ($timeFormat, $key); // check for eventstart (line 117) @@ -228,7 +218,7 @@ if ($getdate == (date("Ymd"))) { </tr> </table> <br> -<? echo "<font class=\"V9\">$powered_by_lang <a class=\"psf\" href=\"http://sourceforge.net/projects/phpicalendar/\">PHP iCalendar $version_lang</a></font>"; ?> +<?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> </html> @@ -1,4 +1,4 @@ -<? +<?php include "init.inc.php"; $event = stripslashes($event); @@ -9,8 +9,8 @@ $event = stripslashes($event); <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> - <title><? echo "$calendar_name"; ?></title> - <link rel="stylesheet" type="text/css" href="styles/<? echo "$style_sheet"; ?>"> + <title><?php echo "$calendar_name"; ?></title> + <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet"; ?>"> </head> <body bgcolor="#eeeeee"> <table border="0" width="430" cellspacing="2" cellpadding="4"> @@ -18,19 +18,19 @@ $event = stripslashes($event); <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="calborder"> <tr height="18"> - <td align="right" valign="top" width="80" class="V12"> <b><? echo "$event_lang"; ?>:</b></td> + <td align="right" valign="top" width="80" class="V12"> <b><?php echo "$event_lang"; ?>:</b></td> <td nowrap width="7" height="18"></td> - <td align="left" valign="top" height="18" class="V12"><? echo "$event"; ?></td> + <td align="left" valign="top" height="18" class="V12"><?php echo "$event"; ?></td> </tr> <tr height="18"> - <td align="right" valign="top" width="80" class="V12"> <b><? echo "$event_start_lang"; ?>:</b></td> + <td align="right" valign="top" width="80" class="V12"> <b><?php echo "$event_start_lang"; ?>:</b></td> <td width="7" height="18"></td> - <td align="left" valign="top" height="18" class="V12"><? echo "$start"; ?></td> + <td align="left" valign="top" height="18" class="V12"><?php echo "$start"; ?></td> </tr> <tr height="18"> - <td align="right" valign="top" width="80" class="V12"> <b><? echo "$event_end_lang"; ?>:</b></td> + <td align="right" valign="top" width="80" class="V12"> <b><?php echo "$event_end_lang"; ?>:</b></td> <td width="7" height="18"></td> - <td align="left" valign="top" height="18" class="V12"><? echo "$end"; ?></td> + <td align="left" valign="top" height="18" class="V12"><?php echo "$end"; ?></td> </tr> </table> </td> diff --git a/functions/date_add.php b/functions/date_add.php index 858bef3..6449943 100644 --- a/functions/date_add.php +++ b/functions/date_add.php @@ -1 +1 @@ -<?
/* From phpbuilder.net
http://www.phpbuilder.net/columns/akent20000610.php3?page=6
yyyy year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week of year
h Hour
n Minute
s Second
*/
function DateAdd ($interval, $number, $date) {
$date_time_array = getdate($date);
$hours = $date_time_array["hours"];
$minutes = $date_time_array["minutes"];
$seconds = $date_time_array["seconds"];
$month = $date_time_array["mon"];
$day = $date_time_array["mday"];
$year = $date_time_array["year"];
switch ($interval) {
case "yyyy":
$year +=$number;
break;
case "q":
$year +=($number*3);
break;
case "m":
$month +=$number;
break;
case "y":
case "d":
case "w":
$day+=$number;
break;
case "ww":
$day+=($number*7);
break;
case "h":
$hours+=$number;
break;
case "n":
$minutes+=$number;
break;
case "s":
$seconds+=$number;
break;
}
$timestamp = mktime($hours, $minutes, $seconds, $month, $day, $year);
return $timestamp;
}
function sundayOfWeek($year,$month,$day) {
$linkDay = "$month/$day/$year";
$w = date("w", strtotime("$linkDay"));
$sow = date("Ymd", (strtotime("$linkDay")-$w*82800));
return $sow;
}
?>
\ No newline at end of file +<?php
/* From phpbuilder.net
http://www.phpbuilder.net/columns/akent20000610.php3?page=6
yyyy year
q Quarter
m Month
y Day of year
d Day
w Weekday
ww Week of year
h Hour
n Minute
s Second
*/
function DateAdd ($interval, $number, $date) {
$date_time_array = getdate($date);
$hours = $date_time_array["hours"];
$minutes = $date_time_array["minutes"];
$seconds = $date_time_array["seconds"];
$month = $date_time_array["mon"];
$day = $date_time_array["mday"];
$year = $date_time_array["year"];
switch ($interval) {
case "yyyy":
$year +=$number;
break;
case "q":
$year +=($number*3);
break;
case "m":
$month +=$number;
break;
case "y":
case "d":
case "w":
$day+=$number;
break;
case "ww":
$day+=($number*7);
break;
case "h":
$hours+=$number;
break;
case "n":
$minutes+=$number;
break;
case "s":
$seconds+=$number;
break;
}
$timestamp = mktime($hours, $minutes, $seconds, $month, $day, $year);
return $timestamp;
}
function sundayOfWeek($year,$month,$day) {
$linkDay = "$month/$day/$year";
$w = date("w", strtotime("$linkDay"));
$sow = date("Ymd", (strtotime("$linkDay")-$w*82800));
return $sow;
}
?>
\ No newline at end of file diff --git a/functions/date_functions.php b/functions/date_functions.php index 6fde3ad..a682afe 100644 --- a/functions/date_functions.php +++ b/functions/date_functions.php @@ -1 +1 @@ -<?
// date_functions.php
// functions for returning or comparing dates
// dateOfWeek() takes a date in Ymd and a day of week as iCal knows them
// (ie: SU, MO, TU, etc)and returns the date of that day.
// This function may be specific to WEEKLY recurring events.
function dateOfWeek($Ymd, $day) {
global $week_start_day;
if (!$week_start_day) $week_start_day = "Sunday";
$timestamp = strtotime($Ymd);
$sunday = strtotime((date("w",$timestamp)==0 ? "$week_start_day" : "last $week_start_day"), $timestamp);
if ($day == "SU") $day_longer = "sun";
elseif ($day == "MO") $day_longer = "mon";
elseif ($day == "TU") $day_longer = "tue";
elseif ($day == "WE") $day_longer = "wed";
elseif ($day == "TH") $day_longer = "thu";
elseif ($day == "FR") $day_longer = "fri";
elseif ($day == "SA") $day_longer = "sat";
return date("Ymd",strtotime($day_longer,$sunday));
}
// function to compare to dates in Ymd and return the number of weeks
// that differ between them. requires dateOfWeek()
function weekCompare($now, $then) {
global $week_start_day;
$day = substr($week_start_day, 0, 2);
$sun_now = dateOfWeek($now, $day);
$sun_then = dateOfWeek($then, $day);
$seconds_now = strtotime($sun_now);
$seconds_then = strtotime($sun_then);
$diff_seconds = $seconds_now - $seconds_then;
$diff_minutes = $diff_seconds/60;
$diff_hours = $diff_minutes/60;
$diff_days = round($diff_hours/24);
$diff_weeks = $diff_days/7;
return $diff_weeks;
}
// function to compare to dates in Ymd and return the number of days
// that differ between them. requires dateOfWeek()
function dayCompare($now, $then) {
$seconds_now = strtotime($now);
$seconds_then = strtotime($then);
$diff_seconds = $seconds_now - $seconds_then;
$diff_minutes = $diff_seconds/60;
$diff_hours = $diff_minutes/60;
$diff_days = round($diff_hours/24);
return $diff_days;
}
\ No newline at end of file +<?php
// date_functions.php
// functions for returning or comparing dates
// dateOfWeek() takes a date in Ymd and a day of week as iCal knows them
// (ie: SU, MO, TU, etc)and returns the date of that day.
// This function may be specific to WEEKLY recurring events.
function dateOfWeek($Ymd, $day) {
global $week_start_day;
if (!$week_start_day) $week_start_day = "Sunday";
$timestamp = strtotime($Ymd);
$sunday = strtotime((date("w",$timestamp)==0 ? "$week_start_day" : "last $week_start_day"), $timestamp);
if ($day == "SU") $day_longer = "sun";
elseif ($day == "MO") $day_longer = "mon";
elseif ($day == "TU") $day_longer = "tue";
elseif ($day == "WE") $day_longer = "wed";
elseif ($day == "TH") $day_longer = "thu";
elseif ($day == "FR") $day_longer = "fri";
elseif ($day == "SA") $day_longer = "sat";
return date("Ymd",strtotime($day_longer,$sunday));
}
// function to compare to dates in Ymd and return the number of weeks
// that differ between them. requires dateOfWeek()
function weekCompare($now, $then) {
global $week_start_day;
$day = substr($week_start_day, 0, 2);
$sun_now = dateOfWeek($now, $day);
$sun_then = dateOfWeek($then, $day);
$seconds_now = strtotime($sun_now);
$seconds_then = strtotime($sun_then);
$diff_seconds = $seconds_now - $seconds_then;
$diff_minutes = $diff_seconds/60;
$diff_hours = $diff_minutes/60;
$diff_days = round($diff_hours/24);
$diff_weeks = $diff_days/7;
return $diff_weeks;
}
// function to compare to dates in Ymd and return the number of days
// that differ between them. requires dateOfWeek()
function dayCompare($now, $then) {
$seconds_now = strtotime($now);
$seconds_then = strtotime($then);
$diff_seconds = $seconds_now - $seconds_then;
$diff_minutes = $diff_seconds/60;
$diff_hours = $diff_minutes/60;
$diff_days = round($diff_hours/24);
return $diff_days;
}
?>
\ No newline at end of file diff --git a/functions/overlapping_events.php b/functions/overlapping_events.php index be40031..3c311c4 100644 --- a/functions/overlapping_events.php +++ b/functions/overlapping_events.php @@ -1,4 +1,4 @@ -<? +<?php // function to determine the colspan for overlapping events // takes 2 parameters: index of event (in regards of column output) and number of overlapping events function eventWidth($ind, $overlaps) { diff --git a/ical_parser.php b/ical_parser.php index 2bd3da3..4744a74 100644 --- a/ical_parser.php +++ b/ical_parser.php @@ -1,4 +1,4 @@ -<? +<?php // note from Jared: the _time suffix has been applied to all variables // that are timestamps to distinguish between them and Ymd format // I did not change other variables to use this convention yet @@ -1,4 +1,4 @@ -<? +<?php include "config.inc.php"; $default_view = "$default_view" . ".php"; diff --git a/init.inc.php b/init.inc.php index c541d7f..ed7917e 100644 --- a/init.inc.php +++ b/init.inc.php @@ -1,4 +1,4 @@ -<? +<?php // Retain some compatibility backwards like. if(phpversion() >= "4.2.0") @@ -52,4 +52,6 @@ $cal = urlencode($cal_filename); if (!isset($filename)) { $filename = $calendar_path."/".$cal_filename.".ics"; -}
\ No newline at end of file +} + +?>
\ No newline at end of file diff --git a/languages/danish.inc.php b/languages/danish.inc.php index 69e2bad..7e51a5f 100644 --- a/languages/danish.inc.php +++ b/languages/danish.inc.php @@ -1 +1 @@ -<?
// Danish language include
// For version 0.5 PHP iCalendar
//
// Translation by Jakob PeterhŠnsel (jakob@hjemme.dk)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Uge";
$month_lang = "Måned";
$year_lang = "År";
$calendar_lang = "Kalender";
$next_day_lang = "Næste Dag";
$next_month_lang = "Næste Måned";
$next_week_lang = "Næste Uge";
$next_year_lang = "Næste År";
$last_day_lang = "Forrige Dag";
$last_month_lang = "Forrige Måned";
$last_week_lang = "Forrige Uge";
$last_year_lang = "Forrige År";
$subscribe_lang = "Abonnér";
$download_lang = "Hent";
$powered_by_lang = "Drevet af";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// Danish language include
// For version 0.5 PHP iCalendar
//
// Translation by Jakob PeterhŠnsel (jakob@hjemme.dk)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Uge";
$month_lang = "Måned";
$year_lang = "År";
$calendar_lang = "Kalender";
$next_day_lang = "Næste Dag";
$next_month_lang = "Næste Måned";
$next_week_lang = "Næste Uge";
$next_year_lang = "Næste År";
$last_day_lang = "Forrige Dag";
$last_month_lang = "Forrige Måned";
$last_week_lang = "Forrige Uge";
$last_year_lang = "Forrige År";
$subscribe_lang = "Abonnér";
$download_lang = "Hent";
$powered_by_lang = "Drevet af";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file diff --git a/languages/dutch.inc.php b/languages/dutch.inc.php index 087c86e..62a5749 100644 --- a/languages/dutch.inc.php +++ b/languages/dutch.inc.php @@ -1 +1 @@ -<?
// Dutch language include
// For version 0.5 PHP iCalendar
//
// Translation by Lieven Gekiere (Lieven@gekiere.com)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Week";
$month_lang = "Maand";
$year_lang = "Jaar";
$calendar_lang = "Kalender";
$next_day_lang = "Volgende Dag";
$next_month_lang = "Volgende Maand";
$next_week_lang = "Volgende Week";
$next_year_lang = "Volgend Jaar";
$last_day_lang = "Vorige Dag";
$last_month_lang = "Vorige Maand";
$last_week_lang = "Vorige Week";
$last_year_lang = "Vorig Jaar";
$subscribe_lang = "Abonneer";
$download_lang = "Download";
$powered_by_lang = "Gemaakt met";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// Dutch language include
// For version 0.5 PHP iCalendar
//
// Translation by Lieven Gekiere (Lieven@gekiere.com)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Week";
$month_lang = "Maand";
$year_lang = "Jaar";
$calendar_lang = "Kalender";
$next_day_lang = "Volgende Dag";
$next_month_lang = "Volgende Maand";
$next_week_lang = "Volgende Week";
$next_year_lang = "Volgend Jaar";
$last_day_lang = "Vorige Dag";
$last_month_lang = "Vorige Maand";
$last_week_lang = "Vorige Week";
$last_year_lang = "Vorig Jaar";
$subscribe_lang = "Abonneer";
$download_lang = "Download";
$powered_by_lang = "Gemaakt met";
$version_lang = "0.5";
$event_lang = "Activiteit";
$event_start_lang = "Start Tijd";
$event_end_lang = "Eind Tijd";
$this_months_lang = "Activiteiten Deze Maand";
$date_lang = "Datum";
$summary_lang = "Overzicht";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'nl_BE');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "G:i";
// For date formatting, check out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A %e %B";
$dateFormat_week = "%e %B";
$dateFormat_week_list = "%a %e %b";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A %e %B";
?>
\ No newline at end of file diff --git a/languages/english.inc.php b/languages/english.inc.php index 3632ea8..7b8d16d 100644 --- a/languages/english.inc.php +++ b/languages/english.inc.php @@ -1 +1 @@ -<?
// English language include
// For version 0.5 PHP iCalendar
//
// Translation by Chad Little (chad@chadsdomain.com)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Day";
$week_lang = "Week";
$month_lang = "Month";
$year_lang = "Year";
$calendar_lang = "Calendar";
$next_day_lang = "Next Day";
$next_month_lang = "Next Month";
$next_week_lang = "Next Week";
$next_year_lang = "Next Year";
$last_day_lang = "Previous Day";
$last_month_lang = "Previous Month";
$last_week_lang = "Previous Week";
$last_year_lang = "Previous Year";
$subscribe_lang = "Subscribe";
$download_lang = "Download";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, check out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// English language include
// For version 0.5 PHP iCalendar
//
// Translation by Chad Little (chad@chadsdomain.com)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Day";
$week_lang = "Week";
$month_lang = "Month";
$year_lang = "Year";
$calendar_lang = "Calendar";
$next_day_lang = "Next Day";
$next_month_lang = "Next Month";
$next_week_lang = "Next Week";
$next_year_lang = "Next Year";
$last_day_lang = "Previous Day";
$last_month_lang = "Previous Month";
$last_week_lang = "Previous Week";
$last_year_lang = "Previous Year";
$subscribe_lang = "Subscribe";
$download_lang = "Download";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, check out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file diff --git a/languages/french.inc.php b/languages/french.inc.php index a377884..2289875 100644 --- a/languages/french.inc.php +++ b/languages/french.inc.php @@ -1,4 +1,4 @@ -<? +<?php // French language include // For version 0.5 PHP iCalendar diff --git a/languages/german.inc.php b/languages/german.inc.php index 2644146..6d19c0e 100644 --- a/languages/german.inc.php +++ b/languages/german.inc.php @@ -1 +1 @@ -<?
// German language include
// For version 0.5 PHP iCalendar
//
// Translation by David Reindl (dre@andare.ch)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Tag";
$week_lang = "Woche";
$month_lang = "Monat";
$year_lang = "Jahr";
$calendar_lang = "Kalender";
$next_day_lang = "Folgender Tag";
$next_month_lang = "Folgender Monat";
$next_week_lang = "Folgende Woche";
$next_year_lang = "Folgendes Jahr";
$last_day_lang = "Vorhergehender Tag";
$last_month_lang = "Vorhergehender Monat";
$last_week_lang = "Vorhergehende Woche";
$last_year_lang = "Vorhergehendes Jahr";
$subscribe_lang = "Abonnieren";
$download_lang = "Herunterladen";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'ch_DE');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "H:i";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// German language include
// For version 0.5 PHP iCalendar
//
// Translation by David Reindl (dre@andare.ch)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Tag";
$week_lang = "Woche";
$month_lang = "Monat";
$year_lang = "Jahr";
$calendar_lang = "Kalender";
$next_day_lang = "Folgender Tag";
$next_month_lang = "Folgender Monat";
$next_week_lang = "Folgende Woche";
$next_year_lang = "Folgendes Jahr";
$last_day_lang = "Vorhergehender Tag";
$last_month_lang = "Vorhergehender Monat";
$last_week_lang = "Vorhergehende Woche";
$last_year_lang = "Vorhergehendes Jahr";
$subscribe_lang = "Abonnieren";
$download_lang = "Herunterladen";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'ch_DE');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "H:i";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file diff --git a/languages/italian.inc.php b/languages/italian.inc.php index c1cd283..dcb6ea1 100644 --- a/languages/italian.inc.php +++ b/languages/italian.inc.php @@ -1 +1 @@ -<?
// Italian language include
// For version 0.4 PHP iCalendar
//
// Translation by Luca Cacciagrano (clooka@clac.it)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Giorno";
$week_lang = "Settimana";
$month_lang = "Mese";
$year_lang = "Anno";
$calendar_lang = "Calendario";
$next_day_lang = "Giorno Successivo";
$next_month_lang = "Mese Successivo";
$next_week_lang = "Settimana Successiva";
$next_year_lang = "Anno Successivo";
$last_day_lang = "Giorno Precedente";
$last_month_lang = "Mese Precedente";
$last_week_lang = "Settimana Precedente";
$last_year_lang = "Anno Precedente";
$subscribe_lang = "Sottoscrivi";
$download_lang = "Scarica";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// Italian language include
// For version 0.4 PHP iCalendar
//
// Translation by Luca Cacciagrano (clooka@clac.it)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Giorno";
$week_lang = "Settimana";
$month_lang = "Mese";
$year_lang = "Anno";
$calendar_lang = "Calendario";
$next_day_lang = "Giorno Successivo";
$next_month_lang = "Mese Successivo";
$next_week_lang = "Settimana Successiva";
$next_year_lang = "Anno Successivo";
$last_day_lang = "Giorno Precedente";
$last_month_lang = "Mese Precedente";
$last_week_lang = "Settimana Precedente";
$last_year_lang = "Anno Precedente";
$subscribe_lang = "Sottoscrivi";
$download_lang = "Scarica";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file diff --git a/languages/japanese.inc.php b/languages/japanese.inc.php index 54d2756..2dd18c5 100644 --- a/languages/japanese.inc.php +++ b/languages/japanese.inc.php @@ -1,4 +1,4 @@ -<? +<?php // English language include // For version 0.4 PHP iCalendar diff --git a/languages/norwegian.inc.php b/languages/norwegian.inc.php index b25ca8b..289f763 100644 --- a/languages/norwegian.inc.php +++ b/languages/norwegian.inc.php @@ -1 +1 @@ -<?
// Norwegian language include
// For version 0.5 PHP iCalendar
//
// Translation by Geir Kielland (geir.kielland@jus.uio.no)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Uke";
$month_lang = "Måned";
$year_lang = "år";
$calendar_lang = "Kalender";
$next_day_lang = "Neste Dag";
$next_month_lang = "Neste Måned";
$next_week_lang = "Neste Uke";
$next_year_lang = "Neste År";
$last_day_lang = "Forrige Dag";
$last_month_lang = "Forrige Måned";
$last_week_lang = "Forrige Uke";
$last_year_lang = "Forrige År";
$subscribe_lang = "Abonnér";
$download_lang = "Last Ned";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Hendelse";
$event_start_lang = "Start Tid";
$event_end_lang = "Slutt Tid";
$this_months_lang = "Denne Månedens Hendelser";
$date_lang = "Dato";
$summary_lang = "Sammendrag";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'no_NO');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "G:i";
// For date formatting, check out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %e. %B ";
$dateFormat_week = "%e. %B";
$dateFormat_week_list = "%a, %e. %b";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %e. %B";
?>
\ No newline at end of file +<?php
// Norwegian language include
// For version 0.5 PHP iCalendar
//
// Translation by Geir Kielland (geir.kielland@jus.uio.no)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dag";
$week_lang = "Uke";
$month_lang = "Måned";
$year_lang = "år";
$calendar_lang = "Kalender";
$next_day_lang = "Neste Dag";
$next_month_lang = "Neste Måned";
$next_week_lang = "Neste Uke";
$next_year_lang = "Neste År";
$last_day_lang = "Forrige Dag";
$last_month_lang = "Forrige Måned";
$last_week_lang = "Forrige Uke";
$last_year_lang = "Forrige År";
$subscribe_lang = "Abonnér";
$download_lang = "Last Ned";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Hendelse";
$event_start_lang = "Start Tid";
$event_end_lang = "Slutt Tid";
$this_months_lang = "Denne Månedens Hendelser";
$date_lang = "Dato";
$summary_lang = "Sammendrag";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'no_NO');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "G:i";
// For date formatting, check out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %e. %B ";
$dateFormat_week = "%e. %B";
$dateFormat_week_list = "%a, %e. %b";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %e. %B";
?>
\ No newline at end of file diff --git a/languages/polish.inc.php b/languages/polish.inc.php index dc88a37..29fe720 100644 --- a/languages/polish.inc.php +++ b/languages/polish.inc.php @@ -1 +1 @@ -<?
// Polish language include
// For version 0.5 PHP iCalendar
//
// Translation by Stanislaw Cieslicki (stahoo@poczta.onet.pl)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dzień";
$week_lang = "Tydzień";
$month_lang = "MiesiÄ…c";
$year_lang = "Rok";
$calendar_lang = "Kalendarz";
$next_day_lang = "Następny dzień";
$next_month_lang = "Przyszły miesiąc";
$next_week_lang = "Przyszły tydzień";
$next_year_lang = "Przyszły rok";
$last_day_lang = "Poprzedni dzień";
$last_month_lang = "Zeszły Miesiąc";
$last_week_lang = "Zeszły tydzień";
$last_year_lang = "Zeszły rok";
$subscribe_lang = "Subskrybuj";
$download_lang = "Pobież";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file +<?php
// Polish language include
// For version 0.5 PHP iCalendar
//
// Translation by Stanislaw Cieslicki (stahoo@poczta.onet.pl)
//
// Submit new translations to chad@chadsdomain.com
$day_lang = "Dzień";
$week_lang = "Tydzień";
$month_lang = "MiesiÄ…c";
$year_lang = "Rok";
$calendar_lang = "Kalendarz";
$next_day_lang = "Następny dzień";
$next_month_lang = "Przyszły miesiąc";
$next_week_lang = "Przyszły tydzień";
$next_year_lang = "Przyszły rok";
$last_day_lang = "Poprzedni dzień";
$last_month_lang = "Zeszły Miesiąc";
$last_week_lang = "Zeszły tydzień";
$last_year_lang = "Zeszły rok";
$subscribe_lang = "Subskrybuj";
$download_lang = "Pobież";
$powered_by_lang = "Powered by";
$version_lang = "0.5";
$event_lang = "Event";
$event_start_lang = "Start Time";
$event_end_lang = "End Time";
$this_months_lang = "This Month's Events";
$date_lang = "Date";
$summary_lang = "Summary";
// Set Location for date formatting, check out: http://www.php.net/manual/en/function.setlocale.php
setlocale (LC_TIME, 'en_EN');
// For time formatting, check out: http://www.php.net/manual/en/function.date.php
$timeFormat = "g:i A";
// For date formatting, cehck out: http://www.php.net/manual/en/function.strftime.php
$dateFormat_day = "%A, %B %e";
$dateFormat_week = "%B %e";
$dateFormat_week_list = "%a, %b %e";
$dateFormat_month = "%B %Y";
$dateFormat_month_list = "%A, %B %e";
?>
\ No newline at end of file diff --git a/list_icals.php b/list_icals.php index c05ffe9..c585780 100644 --- a/list_icals.php +++ b/list_icals.php @@ -1,4 +1,4 @@ -<? +<?php // start of <select> tag if (isset($getdate)) { @@ -1,4 +1,4 @@ -<? +<?php $current_view = "month"; include("./ical_parser.php"); @@ -26,16 +26,16 @@ <html> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8"> - <title><? echo "$calendar_name"; ?></title> - <link rel="stylesheet" type="text/css" href="styles/<? echo "$style_sheet"; ?>"> - <? include "functions/event.js"; ?> + <title><?php echo "$calendar_name"; ?></title> + <link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet"; ?>"> + <?php include "functions/event.js"; ?> </head> <body bgcolor="#FFFFFF"> <center> <table width="740" border="0" cellspacing="0" cellpadding="0" class="V12"> <tr> <td align="left" width="5%"><!--[[a class="psf" href="day.php"]]Today[[/a]]--></td> - <td align="center" width="90%"><? echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> + <td align="center" width="90%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td> <td align="right" width="5%"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td> </tr> <tr> @@ -56,9 +56,9 @@ <td align="left" valign="middle" bgcolor="white" height="36"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> - <td align="left" width="100"><font class="G10B"><? echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$prev_month\">$last_month_lang</a>"; ?></font></td> - <td class="H20" align="center" valign="middle" bgcolor="white" height="24"><? echo "$display_month"; ?></td> - <td align="right" width="100"><font class="G10B"><? echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$next_month\">$next_month_lang</a>"; ?></font></td> + <td align="left" width="100"><font class="G10B"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$prev_month\">$last_month_lang</a>"; ?></font></td> + <td class="H20" align="center" valign="middle" bgcolor="white" height="24"><?php echo "$display_month"; ?></td> + <td align="right" width="100"><font class="G10B"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$next_month\">$next_month_lang</a>"; ?></font></td> </tr> </table> </td> @@ -70,8 +70,8 @@ <td align="center" valign="middle"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF"> <tr height="20"> - <td align="left" valign="middle" height="26"><? include('./list_icals.php'); ?></td> - <td align="right" class="G10B"><? echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> + <td align="left" valign="middle" height="26"><?php include('./list_icals.php'); ?></td> + <td align="right" class="G10B"><?php echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td> </tr> </table> </td> @@ -103,7 +103,7 @@ <center><font class="eventfont"><b>Saturday</b></font></center> </td> </tr> - <? + <?php $sunday = strtotime("$first_sunday"); $i = 0; $whole_month = TRUE; @@ -195,10 +195,10 @@ <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td align="left"> - <font class="G10B"><? echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$prev_month\">$next_month_lang</a>"; ?></font> + <font class="G10B"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$prev_month\">$next_month_lang</a>"; ?></font> </td> <td align="right"> - <font class="G10B"><? echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$next_month\">$last_month_lang</a>"; ?></font> + <font class="G10B"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&getdate=$next_month\">$last_month_lang</a>"; ?></font> </td> </tr> </table> @@ -227,24 +227,24 @@ <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr height="25"> <td colspan="3" align="center" valign="middle" class="eventborder" width="740" height="25"> - <font class="eventfont" color="#FFFFFF"><b><? echo "$this_months_lang"; ?></b></font> + <font class="eventfont" color="#FFFFFF"><b><?php echo "$this_months_lang"; ?></b></font> </td> </tr> <tr height="11"> <td valign="middle" width="150" height="11" class="eventbg"> - <font class="eventfont"><b> <? echo "$date_lang"; ?></b></font> + <font class="eventfont"><b> <?php echo "$date_lang"; ?></b></font> </td> <td width="1" height="11" class="eventbg"><img src="images/spacer.gif" height="15" width="1"> </td> <td valign="middle" width="551" height="11" class="eventbg"> - <font class="eventfont"><b> <? echo "$summary_lang"; ?></b></font> + <font class="eventfont"><b> <?php echo "$summary_lang"; ?></b></font> </td> </tr> <tr height="1"> <td colspan="3" width="825" height="1"> </td> </tr> - <? + <?php // Iterate the entire master array foreach($master_array as $key => $val) { @@ -307,7 +307,7 @@ </tr> </table> <br> -<? echo "<font class=\"V9\">$powered_by_lang <a class=\"psf\" href=\"http://sourceforge.net/projects/phpicalendar/\">PHP iCalendar $version_lang</a></font>"; ?> +<?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> </html> @@ -1 +1 @@ -<?
$current_view = "week";
include("ical_parser.php");
ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
$this_day = $day_array2[3];
$this_week = $day_array2[2];
$this_year = $day_array2[1];
$sunday = sundayOfWeek($this_year, $this_month, $this_day);
$sunday_date = strtotime("$sunday");
$saturday = ($sunday_date + (6 * 25 * 60 * 60));
$start_week = strftime($dateFormat_week, strtotime("$sunday"));
$end_week = strftime($dateFormat_week, $saturday);
$date = strtotime ("$getdate");
$next_week2 = ($date + (7 * 24.4 * 60 * 60));
$prev_week2 = ($date - (7 * 24.4 * 60 * 60));
$next_week = date("Ymd", $next_week2);
$prev_week = date("Ymd", $prev_week2);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><? echo "$calendar_name"; ?></title>
<link rel="stylesheet" type="text/css" href="styles/default.css">
<? include "functions/event.js"; ?>
</head>
<body bgcolor="#FFFFFF">
<center>
<table width="700" border="0" cellspacing="0" cellpadding="0" class="V12">
<tr>
<td align="left" width="5%"><!--[[a class="psf" href="day.php"]]Today[[/a]]--></td>
<td align="center" width="90%"><? echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td>
<td align="right" width="5%"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" height="10" width="1"></td>
</tr>
</table>
<table width="700" border="0" cellspacing="1" cellpadding="2" class="calborder">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#a1a5a9" class="G10B">
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td colspan="3" bgcolor="white" nowrap>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="G10B" align="left" valign="top" width="5%" nowrap><? echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$prev_week\">$last_week_lang</a>"; ?></td>
<td class="H20" align="center" valign="middle" width="90%" nowrap><? echo "$start_week - $end_week"; ?></td>
<td class="G10B" align="right" valign="top" width="5%" nowrap><? echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$next_week\">$next_week_lang</a>"; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="middle"><? include('./list_icals.php'); ?></td>
<td align="right" valign="middle" class="G10B"><? echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="1" cellpadding="0" class="G10B">
<tr height="12">
<td colspan="2" height="11" width="60" nowrap bgcolor="#f5f5f5">
</td>
<?
$thisdate = strtotime ("$sunday");
$i = 0;
do {
$thisday = date("Ymd", $thisdate);
$thisday2 = strftime($dateFormat_week_list, $thisdate);
echo "<td height=\"12\" width=\"101\" colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#f5f5f5\" class=\"V9\">\n";
echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$thisday2</a>\n";
echo "</td>\n";
$thisdate = ($thisdate + (25 * 60 * 60));
$i++;
} while ($i != 7);
?>
</tr>
<tr>
<td colspan="2" width="60" valign="top" align="center" bgcolor="#f5f5f5">
<img src="images/spacer.gif" width="1" height="1">
</td>
<?
$thisdate = strtotime ("$sunday");
$i = 0;
do {
$thisday = date("Ymd", $thisdate);
if ($master_array[("$thisday")]["-1"]) {
echo "<td colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#ffffff\">\n";
foreach ($master_array[("$thisday")]["-1"] as $allDay_event) {
$event_text2 = addslashes($allDay_event["event_text"]);
if (strlen($allDay_event["event_text"]) > 14) {
$event_text = substr($allDay_event["event_text"], 0, 11);
$event_text = $event_text . "...";
} else {
$event_text = $allDay_event["event_text"];
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr height=\"20\">\n";
echo "<td height=\"20\" valign=\"middle\" align=\"center\" class=\"eventbg\">\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
echo "<td valign=\"top\" align=\"center\">\n";
echo "<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\"><font class=\"eventfont\"><i>$event_text</i></font></a>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr height=\"1\">\n";
echo "<td height=\"1\">\n";
echo "<img src=\"images/spacer.gif\" width=\"1\" height=\"1\"> \n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
echo "</td>\n";
} else {
echo "<td colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#ffffff\">\n";
echo "<img src=\"images/spacer.gif\" width=\"1\" height=\"1\">\n";
echo "</td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$i++;
} while ($i != 7);
?>
</tr>
<tr>
<td width="60" bgcolor="#a1a5a9" nowrap>
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="1" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
</tr>
<?
$event_length = 0;
$k = 0;
foreach ($day_array as $key) {
$count = 0;
$k = 0;
$cal_time = $key;
$key = strtotime ("$key");
if ($time_format == "24") {
$key = date ("G:i", $key);
} else {
$key = date ("g:i A", $key);
}
// The first <TR> (on the hour)
if (ereg("^([0-9]{1,2}):00", $key)) {
echo "<tr height=\"30\">\n";
echo "<td rowspan=\"2\" align=\"center\" valign=\"top\" bgcolor=\"#f5f5f5\" width=\"60\">$key</td>\n";
echo "<td height=\"30\" width=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
$thisdate = strtotime ("$sunday");
$thisday = date("Ymd", $thisdate);
do {
if ($master_array["$thisday"]["$cal_time"]) {
$event_text = $master_array["$thisday"]["$cal_time"][$k]["event_text"];
$event_text2 = addslashes($master_array["$thisday"]["$cal_time"][$k]["event_text"]);
$event_start = $master_array["$thisday"]["$cal_time"][$k]["event_start"];
$event_end = $master_array["$thisday"]["$cal_time"][$k]["event_end"];
$event_start = strtotime ("$event_start");
$event_end = strtotime ("$event_end");
if ($time_format == "24") {
$event_start = date ("G:i", $event_start);
$event_end = date ("G:i", $event_end);
} else {
$event_start = date ("g:i a", $event_start);
$event_end = date ("g:i a", $event_end);
}
if (strlen($event_text) > 14) {
$event_text = substr("$event_text", 0, 11);
$event_text = $event_text . "...";
}
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> <a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\">$event_text</a></td>\n";
} else {
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> </td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$thisday = date("Ymd", $thisdate);
$count++;
} while ($count != 7);
// End Week
echo "</tr>\n";
$count = 0;
}
// The second <TR> (on the half hour)
if (ereg("([0-9]{1,2}):30", $key)) {
echo "<tr height=\"30\">\n";
echo "<td height=\"30\" width=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
$thisdate = strtotime ("$sunday");
$thisday = date("Ymd", $thisdate);
do {
if ($master_array["$thisday"]["$cal_time"]) {
$event_start = $master_array["$thisday"]["$cal_time"][$k]["event_start"];
$event_end = $master_array["$thisday"]["$cal_time"][$k]["event_end"];
$event_start = strtotime ("$event_start");
$event_end = strtotime ("$event_end");
if ($time_format == "24") {
$event_start = date ("G:i", $event_start);
$event_end = date ("G:i", $event_end);
} else {
$event_start = date ("g:i a", $event_start);
$event_end = date ("g:i a", $event_end);
}
$event_text = $master_array["$thisday"]["$cal_time"][$k]["event_text"];
$event_text2 = addslashes($master_array["$thisday"]["$cal_time"][$k]["event_text"]);
if (strlen($event_text) > 14) {
$event_text = substr("$event_text", 0, 11);
$event_text = $event_text . "...";
}
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> <a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\">$event_text</a></td>\n";
} else {
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> </td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$thisday = date("Ymd", $thisdate);
$count++;
} while ($count != 7);
echo "</tr>\n";
}
}
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<? echo "<font class=\"V9\">$powered_by_lang <a class=\"psf\" href=\"http://sourceforge.net/projects/phpicalendar/\">PHP iCalendar $version_lang</a></font>"; ?>
</center>
</body>
</html>
\ No newline at end of file +<?php
$current_view = "week";
include("ical_parser.php");
ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
$this_day = $day_array2[3];
$this_week = $day_array2[2];
$this_year = $day_array2[1];
$sunday = sundayOfWeek($this_year, $this_month, $this_day);
$sunday_date = strtotime("$sunday");
$saturday = ($sunday_date + (6 * 25 * 60 * 60));
$start_week = strftime($dateFormat_week, strtotime("$sunday"));
$end_week = strftime($dateFormat_week, $saturday);
$date = strtotime ("$getdate");
$next_week2 = ($date + (7 * 24.4 * 60 * 60));
$prev_week2 = ($date - (7 * 24.4 * 60 * 60));
$next_week = date("Ymd", $next_week2);
$prev_week = date("Ymd", $prev_week2);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name"; ?></title>
<link rel="stylesheet" type="text/css" href="styles/default.css">
<?php include "functions/event.js"; ?>
</head>
<body bgcolor="#FFFFFF">
<center>
<table width="700" border="0" cellspacing="0" cellpadding="0" class="V12">
<tr>
<td align="left" width="5%"><!--[[a class="psf" href="day.php"]]Today[[/a]]--></td>
<td align="center" width="90%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$getdate\">$day_lang</a> | <a class=\"psf\" href=\"week.php?cal=$cal&getdate=$getdate\">$week_lang</a> | <a class=\"psf\" href=\"month.php?cal=$cal&getdate=$getdate\">$month_lang</a>"; ?></td>
<td align="right" width="5%"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" height="10" width="1"></td>
</tr>
</table>
<table width="700" border="0" cellspacing="1" cellpadding="2" class="calborder">
<tr>
<td>
<table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#a1a5a9" class="G10B">
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="1" cellpadding="0">
<tr>
<td colspan="3" bgcolor="white" nowrap>
<table width="100%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="G10B" align="left" valign="top" width="5%" nowrap><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$prev_week\">$last_week_lang</a>"; ?></td>
<td class="H20" align="center" valign="middle" width="90%" nowrap><?php echo "$start_week - $end_week"; ?></td>
<td class="G10B" align="right" valign="top" width="5%" nowrap><?php echo "<a class=\"psf\" href=\"week.php?cal=$cal&getdate=$next_week\">$next_week_lang</a>"; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="middle"><?php include('./list_icals.php'); ?></td>
<td align="right" valign="middle" class="G10B"><?php echo "<a class=\"psf\" href=\"$fullpath\">$subscribe_lang</a> | <a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top">
<table border="0" cellspacing="1" cellpadding="0" class="G10B">
<tr height="12">
<td colspan="2" height="11" width="60" nowrap bgcolor="#f5f5f5">
</td>
<?php
$thisdate = strtotime ("$sunday");
$i = 0;
do {
$thisday = date("Ymd", $thisdate);
$thisday2 = strftime($dateFormat_week_list, $thisdate);
echo "<td height=\"12\" width=\"101\" colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#f5f5f5\" class=\"V9\">\n";
echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$thisday\">$thisday2</a>\n";
echo "</td>\n";
$thisdate = ($thisdate + (25 * 60 * 60));
$i++;
} while ($i != 7);
?>
</tr>
<tr>
<td colspan="2" width="60" valign="top" align="center" bgcolor="#f5f5f5">
<img src="images/spacer.gif" width="1" height="1">
</td>
<?php
$thisdate = strtotime ("$sunday");
$i = 0;
do {
$thisday = date("Ymd", $thisdate);
if ($master_array[("$thisday")]["-1"]) {
echo "<td colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#ffffff\">\n";
foreach ($master_array[("$thisday")]["-1"] as $allDay_event) {
$event_text2 = addslashes($allDay_event["event_text"]);
if (strlen($allDay_event["event_text"]) > 14) {
$event_text = substr($allDay_event["event_text"], 0, 11);
$event_text = $event_text . "...";
} else {
$event_text = $allDay_event["event_text"];
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr height=\"20\">\n";
echo "<td height=\"20\" valign=\"middle\" align=\"center\" class=\"eventbg\">\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
echo "<td valign=\"top\" align=\"center\">\n";
echo "<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\"><font class=\"eventfont\"><i>$event_text</i></font></a>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr height=\"1\">\n";
echo "<td height=\"1\">\n";
echo "<img src=\"images/spacer.gif\" width=\"1\" height=\"1\"> \n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>\n";
}
echo "</td>\n";
} else {
echo "<td colspan=\"2\" valign=\"top\" align=\"center\" bgcolor=\"#ffffff\">\n";
echo "<img src=\"images/spacer.gif\" width=\"1\" height=\"1\">\n";
echo "</td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$i++;
} while ($i != 7);
?>
</tr>
<tr>
<td width="60" bgcolor="#a1a5a9" nowrap>
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="1" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
<td width="45" nowrap bgcolor="#a1a5a9">
<img src="images/spacer.gif" width="1" height="1">
</td>
</tr>
<?php
$event_length = 0;
$k = 0;
foreach ($day_array as $key) {
$count = 0;
$k = 0;
$cal_time = $key;
$key = strtotime ("$key");
if ($time_format == "24") {
$key = date ("G:i", $key);
} else {
$key = date ("g:i A", $key);
}
// The first <TR> (on the hour)
if (ereg("^([0-9]{1,2}):00", $key)) {
echo "<tr height=\"30\">\n";
echo "<td rowspan=\"2\" align=\"center\" valign=\"top\" bgcolor=\"#f5f5f5\" width=\"60\">$key</td>\n";
echo "<td height=\"30\" width=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
$thisdate = strtotime ("$sunday");
$thisday = date("Ymd", $thisdate);
do {
if ($master_array["$thisday"]["$cal_time"]) {
$event_text = $master_array["$thisday"]["$cal_time"][$k]["event_text"];
$event_text2 = addslashes($master_array["$thisday"]["$cal_time"][$k]["event_text"]);
$event_start = $master_array["$thisday"]["$cal_time"][$k]["event_start"];
$event_end = $master_array["$thisday"]["$cal_time"][$k]["event_end"];
$event_start = strtotime ("$event_start");
$event_end = strtotime ("$event_end");
if ($time_format == "24") {
$event_start = date ("G:i", $event_start);
$event_end = date ("G:i", $event_end);
} else {
$event_start = date ("g:i a", $event_start);
$event_end = date ("g:i a", $event_end);
}
if (strlen($event_text) > 14) {
$event_text = substr("$event_text", 0, 11);
$event_text = $event_text . "...";
}
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> <a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\">$event_text</a></td>\n";
} else {
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> </td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$thisday = date("Ymd", $thisdate);
$count++;
} while ($count != 7);
// End Week
echo "</tr>\n";
$count = 0;
}
// The second <TR> (on the half hour)
if (ereg("([0-9]{1,2}):30", $key)) {
echo "<tr height=\"30\">\n";
echo "<td height=\"30\" width=\"1\"><img src=\"images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
$thisdate = strtotime ("$sunday");
$thisday = date("Ymd", $thisdate);
do {
if ($master_array["$thisday"]["$cal_time"]) {
$event_start = $master_array["$thisday"]["$cal_time"][$k]["event_start"];
$event_end = $master_array["$thisday"]["$cal_time"][$k]["event_end"];
$event_start = strtotime ("$event_start");
$event_end = strtotime ("$event_end");
if ($time_format == "24") {
$event_start = date ("G:i", $event_start);
$event_end = date ("G:i", $event_end);
} else {
$event_start = date ("g:i a", $event_start);
$event_end = date ("g:i a", $event_end);
}
$event_text = $master_array["$thisday"]["$cal_time"][$k]["event_text"];
$event_text2 = addslashes($master_array["$thisday"]["$cal_time"][$k]["event_text"]);
if (strlen($event_text) > 14) {
$event_text = substr("$event_text", 0, 11);
$event_text = $event_text . "...";
}
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> <a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\">$event_text</a></td>\n";
} else {
echo "<td colspan=\"2\" bgcolor=\"#ffffff\"> </td>\n";
}
$thisdate = ($thisdate + (25 * 60 * 60));
$thisday = date("Ymd", $thisdate);
$count++;
} while ($count != 7);
echo "</tr>\n";
}
}
?>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<?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>
</html>
\ No newline at end of file |