aboutsummaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2004-02-03 23:02:09 +0000
committerChad Little <clittle@users.sourceforge.net>2004-02-03 23:02:09 +0000
commit02bed7d91ae13c34eb9b883b0df3b538e3bc4c76 (patch)
treea807738b4e9020115801dfe57c002a61a1c7024d /includes
parentb8fc4e4cb1d3a574a8a624fa5a357c005fe73ac4 (diff)
downloadphpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.tar.gz
phpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.tar.bz2
phpicalendar-02bed7d91ae13c34eb9b883b0df3b538e3bc4c76.zip
Removed unneeded files, tweeked templates, added legend for multiple
calendars.
Diffstat (limited to 'includes')
-rw-r--r--includes/calendar_nav.php234
-rw-r--r--includes/footer.inc.php17
-rw-r--r--includes/header.inc.php33
-rw-r--r--includes/sidebar.php391
4 files changed, 0 insertions, 675 deletions
diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php
deleted file mode 100644
index f4e7285..0000000
--- a/includes/calendar_nav.php
+++ /dev/null
@@ -1,234 +0,0 @@
- <?php
-
- if ($cal == $ALL_CALENDARS_COMBINED) {
- $cal_displayname2 = $all_cal_comb_lang;
- } else {
- $cal_displayname2 = $calendar_name . " $calendar_lang";
- }
- if (strlen($cal_displayname2) > 24) {
- $cal_displayname2 = substr("$cal_displayname2", 0, 21);
- $cal_displayname2 = $cal_displayname2 . "...";
- }
-
- $next_day = date("Ymd", strtotime("+1 day", $unix_time));
- $prev_day = date("Ymd", strtotime("-1 day", $unix_time));
-
- // Get the real date to display as "go to today", not the date displayed in the calendar
- $really_unix_time = strtotime(date('Ymd'));
- $really_today_today = date ('Ymd', $really_unix_time);
-
- $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15');
- ?>
-<br>
-<?php
- $login_width = 737;
- include(BASE.'includes/login.php');
-?>
-<table border="0" width="737" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="calborder">
- <tr>
- <td align="left" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$prev_day\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"[$last_day_lang]\" border=\"0\" align=\"left\"></a>"; ?></td>
- <td align="center" class="sideback"><font class="G10B"><b><?php print (localizeDate ($dateFormat_day, strtotime($getdate))); ?></b></font></td>
- <td align="right" valign="top" width="1%" class="sideback"><?php echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$next_day\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"[$next_day_lang]\" border=\"0\" align=\"right\"></a>"; ?></td>
- </tr>
- <tr>
- <td colspan="3"><img src="images/spacer.gif" width="1" height="5" alt=" "></td>
- </tr>
- <tr>
- <td width="1%" valign="top" align="right">
- <table cellpadding="0" cellspacing="0" border="0" width="160">
- <tr>
- <td valign="middle" align="center">
- <table width="160" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <?php
- $start_day = strtotime($week_start_day);
- echo '<tr>';
- for ($i=0; $i<7; $i++) {
- $day_num = date("w", $start_day);
- $day = $daysofweekreallyshort_lang[$day_num];
- echo '<td align="center" class="G10BOLD">'.$day.'</td>';
- $start_day = strtotime("+1 day", $start_day);
- }
- echo '</tr>';
- $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";
- $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
- $i = 0;
- $whole_month = TRUE;
- $num_of_events = 0;
- do {
- $day = date ("j", $start_day);
- $daylink = date ("Ymd", $start_day);
- $check_month = date ("m", $start_day);
- if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>';
- if ($i == 0) echo "<tr>\n";
- if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- } else {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- }
- $start_day = strtotime("+1 day", $start_day);
- $i++;
- if ($i == 7) {
- echo '</tr>';
- $i = 0;
- $checkagain = date ("m", $start_day);
- if ($checkagain != $minical_month) $whole_month = FALSE;
- }
- } while ($whole_month == TRUE);
- ?>
- </table>
- <img src="images/spacer.gif" width="1" height="3" alt=" "><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td width="98%" valign="top" align="center">
- <table border="0" width="330" cellspacing="0" cellpadding="0">
- <tr>
- <td width="160" valign="top">
- <table cellpadding="0" cellspacing="0" border="0" width="160">
- <tr>
- <td bgcolor="#FFFFFF" align="left" class="G10BOLD">
- <?php
-
- if (!isset($query)) $query = '';
- echo '<b>'.$jump_lang.'</b><br>';
- echo '<img src="images/spacer.gif" width="1" height="6" alt=" "><br>';
- echo "<form style=\"margin-bottom:0;\" action=\"month.php\" method=\"GET\">";
- include('./functions/list_icals.php');
- echo '<br>';
- include('./functions/list_years.php');
- echo '<br>';
- include('./functions/list_months.php');
- echo '<br>';
- include('./functions/list_weeks.php');
- echo '<br>';
- echo "</form>";
- echo '<img src="images/spacer.gif" width="1" height="6" alt=" "><br>';
-
- ?>
- </td>
- </tr>
- </table>
- </td>
- <td><img src="images/spacer.gif" width="20" height="1" alt=" "></td>
- <td width="160" valign="top">
- <table cellpadding="0" cellspacing="0" border="0" width="160">
- <tr>
- <td valign="middle" align="left" valign="top">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%">
- <tr>
- <td colspan="7"><img src="images/spacer.gif" width="21" height="2" alt=" "></td>
- </tr>
- <tr>
- <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td>
- <td colspan="6"><font class="G10BOLD"><?php echo "$cal_displayname2"; ?></font></td>
- </tr>
- <tr>
- <td width="1%"><img src="images/spacer.gif" width="4" height="1" alt=" "></td>
- <td colspan="6" class="G10B">
- <?php
- echo "<a class=\"psf\" href=\"day.php?cal=$cal&amp;getdate=$really_today_today\">$goday_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"week.php?cal=$cal&amp;getdate=$really_today_today\">$goweek_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$really_today_today\">$gomonth_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"year.php?cal=$cal&amp;getdate=$really_today_today\">$goyear_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"print.php?cal=$cal&amp;getdate=$getdate&amp;printview=$current_view\">$goprint_lang</a><br>\n";
- if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&amp;getdate=$getdate\">$preferences_lang</a><br>\n";
- if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a>&nbsp;|&nbsp;<a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n";
- if ($username != '') {
- $querys = preg_replace("/action=[^&]+/", "action=logout", $QUERY_STRING);
- if ($querys == $QUERY_STRING) $querys .= "&action=logout";
- $querys = preg_replace("/(username|password)=[^&]+/", "", $querys);
- echo "<a class=\"psf\" href=\"$SCRIPT_NAME?$querys\">Logout $username</a><br>\n";
- }
- ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td width="1%" valign="top" align="left">
- <table cellpadding="0" cellspacing="0" border="0" width="160">
- <tr>
- <td valign="middle" align="center">
- <table width="160" border="0" cellpadding="3" cellspacing="0">
- <tr>
- <td align="center"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", $fake_getdate_time))); ?></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <?php
- $start_day = strtotime($week_start_day);
- echo '<tr>';
- for ($i=0; $i<7; $i++) {
- $day_num = date("w", $start_day);
- $day = $daysofweekreallyshort_lang[$day_num];
- echo '<td align="center" class="G10BOLD">'.$day.'</td>';
- $start_day = strtotime("+1 day", $start_day);
- }
- echo '</tr>';
- $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";
- $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
- $i = 0;
- $whole_month = TRUE;
- $num_of_events = 0;
- do {
- $day = date ("j", $start_day);
- $daylink = date ("Ymd", $start_day);
- $check_month = date ("m", $start_day);
- if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>';
- if ($i == 0) echo "<tr>\n";
- if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- } else {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- }
- $start_day = strtotime("+1 day", $start_day);
- $i++;
- if ($i == 7) {
- echo '</tr>';
- $i = 0;
- $checkagain = date ("m", $start_day);
- if ($checkagain != $minical_month) $whole_month = FALSE;
- }
- } while ($whole_month == TRUE);
- ?>
- </table>
- <img src="images/spacer.gif" width="1" height="3" alt=" "><br>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-</td>
-</tr>
-</table>
diff --git a/includes/footer.inc.php b/includes/footer.inc.php
deleted file mode 100644
index 63c0ee4..0000000
--- a/includes/footer.inc.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-echo "<center class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://phpicalendar.sourceforge.net/nuke/\">PHP iCalendar 1.2</a>";
-if ($enable_rss == 'yes') {
- echo "<br>\n";
- if ((isset($current_view)) && ($current_view == 'rssindex')) {
- echo '<a style="color:gray" href="http://feeds.archive.org/validator/check?url='.$footer_check.'"><img src="'.BASE.'images/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" width="88" height="31" border="1" vspace="3" />';
- } else {
- echo $this_site_is_lang.' <a class="psf" href="'.BASE.'rss/index.php?cal='.$cal.'&amp;getdate='.$getdate.'">RSS-Enabled</a>';
- }
-}
-echo '</center>';
-
-?>
-
-</body>
-</html>
diff --git a/includes/header.inc.php b/includes/header.inc.php
deleted file mode 100644
index 0eb1538..0000000
--- a/includes/header.inc.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<? if (isset($master_array['calendar_name'])) $calendar_name = $master_array['calendar_name']; ?>
-
-<!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; ?><?php if ($display_date != '') echo " - $display_date"; ?></title>
- <link rel="stylesheet" type="text/css" href="<?php echo BASE."styles/$style_sheet/default.css"; ?>">
- <?php
-
- // if RSS is enabled, set the RSS auto-discovery link
- if ($enable_rss == 'yes') {
- echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$default_path."/rss/rss.php?cal=".$cal."&amp;rssview=week\">";
- }
- if (isset($master_array['-2'])) include (BASE.'functions/todo.js');
- include (BASE.'functions/event.js');
-
- ?>
-</head>
-<body bgcolor="#FFFFFF">
-<form name="eventPopupForm" id="eventPopupForm" method="post" action="includes/event.php" style="display: none;">
- <input type="hidden" name="event" id="event" value="">
- <input type="hidden" name="cal" id="cal" value="">
- <input type="hidden" name="start" id="start" value="">
- <input type="hidden" name="end" id="end" value="">
- <input type="hidden" name="description" id="description" value="">
- <input type="hidden" name="status" id="status" value="">
- <input type="hidden" name="location" id="location" value="">
- <input type="hidden" name="organizer" id="organizer" value="">
- <input type="hidden" name="attendee" id="attendee" value="">
- <input type="hidden" name="url" id="url" value="">
-</form>
diff --git a/includes/sidebar.php b/includes/sidebar.php
deleted file mode 100644
index 72bf3eb..0000000
--- a/includes/sidebar.php
+++ /dev/null
@@ -1,391 +0,0 @@
-<?php
-// Get the real date to display in the sidebar, not the date displayed in the calendar
-$really_unix_time = strtotime(date('Ymd'));
-$really_today_today = date ('Ymd', $really_unix_time);
-
-if ($cal == $ALL_CALENDARS_COMBINED) {
- $cal_displayname2 = $all_cal_comb_lang;
-} else {
- $cal_displayname2 = $calendar_name . " $calendar_lang";
-}
-if (strlen($cal_displayname2) > 24) {
- $cal_displayname2 = substr("$cal_displayname2", 0, 21);
- $cal_displayname2 = $cal_displayname2 . "...";
-}
-
-$search_box = '<form style="margin-bottom:0;" action="search.php" method="GET"><input type="hidden" name="cal" value="'.$cal.'"><input type="hidden" name="getdate" value="'.$getdate.'"><input type="text" style="font-size:10px" size="15" class="search_style" name="query" value="'.$search_lang.'" onfocus="javascript:if(this.value==\''.$search_lang.'\') {this.value=\'\';}" onblur="javascript:if(this.value==\'\') {this.value=\''.$search_lang.'\'}"><INPUT type="image" src="styles/'.$style_sheet.'/search.gif" name="submit" value="Search"></form>';
-
-?>
-<?php
- $login_width = 170;
- include(BASE.'includes/login.php');
-?>
-<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
- <tr>
- <td align="left" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&amp;getdate=$yesterdays_date\"><img src=\"styles/$style_sheet/left_arrows.gif\" alt=\"[$prev_lang]\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td>
- <td align="center" width="112" class="sideback"><font class="G10BOLD"><?php echo "$thisday2"; ?></font></td>
- <td align="right" valign="top" width="24" class="sideback"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&amp;getdate=$tomorrows_date\"><img src=\"styles/$style_sheet/right_arrows.gif\" alt=\"[$next_lang]\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td>
- </tr>
- <tr>
- <td colspan="3" bgcolor="#FFFFFF" align="left">
- <?php
- echo '<div style="padding: 5px;">';
- echo '<font class="G10BOLD">'.$cal_displayname2.'</font><br>';
- echo '<span class="G10">';
- echo "<a class=\"psf\" href=\"day.php?cal=$cal&amp;getdate=$really_today_today\">$goday_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"week.php?cal=$cal&amp;getdate=$really_today_today\">$goweek_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"month.php?cal=$cal&amp;getdate=$really_today_today\">$gomonth_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"year.php?cal=$cal&amp;getdate=$really_today_today\">$goyear_lang</a><br>\n";
- echo "<a class=\"psf\" href=\"print.php?cal=$cal&amp;getdate=$getdate&amp;printview=$current_view\">$goprint_lang</a><br>\n";
- if ($allow_preferences != 'no') echo "<a class=\"psf\" href=\"preferences.php?cal=$cal&amp;getdate=$getdate\">$preferences_lang</a><br>\n";
- if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') echo "<a class=\"psf\" href=\"$subscribe_path\">$subscribe_lang</a>&nbsp;|&nbsp;<a class=\"psf\" href=\"$download_filename\">$download_lang</a>\n";
- if ($username != '') {
- $querys = preg_replace("/action=[^&]+/", "action=logout", $QUERY_STRING);
- if ($querys == $QUERY_STRING) $querys .= '&action=logout';
- $querys = preg_replace("/(username|password)=[^&]+/", "", $querys);
- echo "<br>\n<a class=\"psf\" href=\"$SCRIPT_NAME?$querys\">Logout $username</a>\n";
- }
- echo '</span></div>';
- ?>
- </td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$jump_lang"; ?></div></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="left">
- <?php
-
- echo '<div style="padding: 5px;">';
- echo '<form style="margin-bottom:0;" action="day.php" method="GET">';
- include('./functions/list_icals.php');
- echo '<br>';
- include('./functions/list_years.php');
- echo '<br>';
- include('./functions/list_months.php');
- echo '<br>';
- include('./functions/list_weeks.php');
- echo '<br>';
- echo '</form>';
- if ($show_search == 'yes') {
- echo $search_box;
- }
- if ($display_custom_goto == "yes") {
- echo '<form style="margin-bottom:0;" action="day.php" method="GET">';
- echo '<input type="hidden" name="cal" value="'.urlencode($cal).'">';
- echo '<input type="text" style="width:160px; font-size:10px" name="jumpto_day">';
- echo '<input type="submit" value="Go">';
- echo '</form>';
- }
- echo '</div>';
- ?>
- </td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-
-<?php if (isset($master_array[($tomorrows_date)]) && sizeof($master_array[($tomorrows_date)]) > 0) { ?>
-<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$tomorrows_lang"; ?></div></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%">
- <tr>
- <td colspan="7"><img src="images/spacer.gif" width="21" height="6" alt=" "></td>
- </tr>
-
- <?php
- echo "<tr>\n";
- echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\" alt=\" \"></td>";
- echo "<td colspan=\"6\" class=\"G10B\" align=\"left\">\n";
- foreach ($master_array[("$tomorrows_date")] as $event_times) {
- foreach ($event_times as $val) {
- $event_text = stripslashes(urldecode($val["event_text"]));
- $event_text = strip_tags($event_text, '<b><i><u>');
- if ($event_text != "") {
- $event_text2 = rawurlencode(addslashes($val['event_text']));
- $description = addslashes(urlencode($val['description']));
- $event_end = @$val["event_end"];
- $event_calna = @$val["calname"];
- $event_url = @$val["url"];
- $event_start = date ($timeFormat, $val['start_unixtime']);
- $event_end = date ($timeFormat, @strtotime ($event_end));
- $event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
-
- if (!isset($val["event_start"])) {
- $event_start = $all_day_lang;
- $event_end = '';
- openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<i>', '</i>', 'psf', $event_url);
- echo "<br>\n";
- } else {
- openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<font class="G10B">&#149; ', '</font>', 'psf', $event_url);
- echo "<br>\n";
- }
-
-
-
- }
- }
- }
- echo "</td>\n";
- echo "</tr>\n";
- ?>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=" "></td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-
-<?php } if ((isset($master_array['-2'])) && ($show_todos == 'yes')) { ?>
-<table width="170" border="0" cellpadding="0" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" width="98%" class="sideback"><div style="height: 20px; margin-top: 3px;" class="G10BOLD"><?php echo "$todo_lang"; ?></div></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" width="100%">
- <tr>
- <td colspan="7"><img src="images/spacer.gif" width="21" height="6" alt=" "></td>
- </tr>
-
- <?php
- echo "<tr>\n";
- echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\" alt=\" \"></td>";
- echo "<td colspan=\"6\" class=\"G10B\" align=\"left\">\n";
- echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n";
- foreach ($master_array['-2'] as $vtodo_times) {
- foreach ($vtodo_times as $val) {
- $vtodo_text = stripslashes(urldecode($val["vtodo_text"]));
- if ($vtodo_text != "") {
- if (isset($val["description"])) {
- $description = urldecode($val["description"]);
- } else {
- $description = "";
- }
- $completed_date = $val['completed_date'];
- $event_calna = $val['calname'];
- $status = $val["status"];
- $priority = $val['priority'];
- $start_date = $val["start_date"];
- $due_date = $val['due_date'];
- $vtodo_array = array(
- 'cal' => $event_calna,
- 'completed_date'=> $completed_date,
- 'description' => $description,
- 'due_date' => $due_date,
- 'priority' => $priority,
- 'start_date' => $start_date,
- 'status' => $status,
- 'vtodo_text' => $vtodo_text);
-
- $vtodo_array = base64_encode(serialize($vtodo_array));
-
- $vtodo_text = word_wrap(strip_tags(str_replace('<br>',' ',$vtodo_text), '<b><i><u>'), 21, $tomorrows_events_lines);
- $vtodo_link = "<a class=\"psf\" href=\"javascript:openTodoInfo('$vtodo_array')\">";
-
- if ($status == 'COMPLETED' || (isset($val['completed_date']) && isset($val['completed_time']))) {
- if ($show_completed == 'yes') {
- $vtodo_text = "<S>$vtodo_text</S>";
- echo "<tr><td>$vtodo_link<img src=\"images/completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
- echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
- }
- } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) {
- echo "<tr><td>$vtodo_link<img src=\"images/important.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
- echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
- } else {
- echo "<tr><td>$vtodo_link<img src=\"images/not_completed.gif\" alt=\" \" width=\"13\" height=\"11\" border=\"0\" align=\"middle\"></a></td>\n";
- echo "<td><img src=\"images/spacer.gif\" width=\"2\" height=\"1\" border\"0\" /></td><td>$vtodo_link<font class=\"G10B\"> $vtodo_text</font></a></td></tr>\n";
- }
- }
- }
- }
- echo "</table>\n";
- echo "</td>\n";
- echo "</tr>\n";
- ?>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=" "></td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-<?php }
- $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15');
-?>
-<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("-1 month", $fake_getdate_time))); ?></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <?php
- $start_day = strtotime($week_start_day);
- echo '<tr>';
- for ($i=0; $i<7; $i++) {
- $day_num = date("w", $start_day);
- $day = $daysofweekreallyshort_lang[$day_num];
- echo '<td align="center" class="G10BOLD">'.$day.'</td>';
- $start_day = strtotime("+1 day", $start_day);
- }
- echo '</tr>';
- $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";
- $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
- $i = 0;
- $whole_month = TRUE;
- $num_of_events = 0;
- do {
- $day = date ("j", $start_day);
- $daylink = date ("Ymd", $start_day);
- $check_month = date ("m", $start_day);
- if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>';
- if ($i == 0) echo "<tr>\n";
- if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- } else {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- }
- $start_day = strtotime("+1 day", $start_day);
- $i++;
- if ($i == 7) {
- echo '</tr>';
- $i = 0;
- $checkagain = date ("m", $start_day);
- if ($checkagain != $minical_month) $whole_month = FALSE;
- }
- } while ($whole_month == TRUE);
- ?>
- </table>
- <img src="images/spacer.gif" width="1" height="3" alt=" "><br>
- </td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime($getdate))); ?></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <?php
- $start_day = strtotime($week_start_day);
- echo '<tr>';
- for ($i=0; $i<7; $i++) {
- $day_num = date("w", $start_day);
- $day = $daysofweekreallyshort_lang[$day_num];
- echo '<td align="center" class="G10BOLD">'.$day.'</td>';
- $start_day = strtotime("+1 day", $start_day);
- }
- echo '</tr>';
- $minical_time = $fake_getdate_time;
- $minical_month = date("m", $minical_time);
- $minical_year = date("Y", $minical_time);
- $first_of_month = $minical_year.$minical_month."01";
- $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
- $i = 0;
- $whole_month = TRUE;
- $num_of_events = 0;
- do {
- $day = date ("j", $start_day);
- $daylink = date ("Ymd", $start_day);
- $check_month = date ("m", $start_day);
- if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>';
- if ($i == 0) echo "<tr>\n";
- if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- } else {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- }
- $start_day = strtotime("+1 day", $start_day);
- $i++;
- if ($i == 7) {
- echo '</tr>';
- $i = 0;
- $checkagain = date ("m", $start_day);
- if ($checkagain != $minical_month) $whole_month = FALSE;
- }
- } while ($whole_month == TRUE);
- ?>
- </table>
- <img src="images/spacer.gif" width="1" height="3" alt=" "><br>
- </td>
- </tr>
-</table>
-<img src="images/spacer.gif" width="1" height="10" alt=" "><br>
-<table width="170" border="0" cellpadding="3" cellspacing="0" class="calborder">
- <tr height="20">
- <td align="center" class="sideback"><font class="G10BOLD"><?php print (localizeDate ($dateFormat_month, strtotime("+1 month", strtotime($getdate)))); ?></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFFFFF" align="center">
- <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <?php
- $start_day = strtotime($week_start_day);
- echo '<tr>';
- for ($i=0; $i<7; $i++) {
- $day_num = date("w", $start_day);
- $day = $daysofweekreallyshort_lang[$day_num];
- echo '<td align="center" class="G10BOLD">'.$day.'</td>';
- $start_day = strtotime("+1 day", $start_day);
- }
- echo '</tr>';
- $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";
- $start_day = strtotime(dateOfWeek($first_of_month, $week_start_day));
- $i = 0;
- $whole_month = TRUE;
- $num_of_events = 0;
- do {
- $day = date ("j", $start_day);
- $daylink = date ("Ymd", $start_day);
- $check_month = date ("m", $start_day);
- if ($check_month != $minical_month) $day = '<font class="G10G">'.$day.'</font>';
- if ($i == 0) echo "<tr>\n";
- if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="ps2" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- } else {
- echo '<td width="22" align="center" class="G10B">';
- echo '<a class="psf" href="'.$minical_view.'.php?cal='.$cal.'&amp;getdate='.$daylink.'">'.$day.'</a>';
- echo '</td>';
- }
- $start_day = strtotime("+1 day", $start_day);
- $i++;
- if ($i == 7) {
- echo '</tr>';
- $i = 0;
- $checkagain = date ("m", $start_day);
- if ($checkagain != $minical_month) $whole_month = FALSE;
- }
- } while ($whole_month == TRUE);
- ?>
- </table>
- <img src="images/spacer.gif" width="1" height="3" alt=" "><br>
- </td>
- </tr>
-</table>

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