From 7476e46daabcee0995eb4f794a62b5306586aa6f Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 24 Nov 2002 23:04:43 +0000 Subject: Moved all includes to their own folder. Modified pages accordingly. Fixed footer. --- includes/calendar_nav.php | 300 +++++++++++++++++++++++++++ includes/event.php | 90 +++++++++ includes/footer.inc.php | 1 + includes/header.inc.php | 1 + includes/sidebar.php | 504 ++++++++++++++++++++++++++++++++++++++++++++++ includes/todo.php | 119 +++++++++++ 6 files changed, 1015 insertions(+) create mode 100644 includes/calendar_nav.php create mode 100644 includes/event.php create mode 100644 includes/footer.inc.php create mode 100644 includes/header.inc.php create mode 100644 includes/sidebar.php create mode 100644 includes/todo.php (limited to 'includes') diff --git a/includes/calendar_nav.php b/includes/calendar_nav.php new file mode 100644 index 0000000..2fccf2d --- /dev/null +++ b/includes/calendar_nav.php @@ -0,0 +1,300 @@ + 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)); + + $fake_getdate_time = strtotime($this_year.'-'.$this_month.'-15'); + ?> +
+ + + + + + + + + + + + + + +
\"right\""; ?>\"right\""; ?>
+ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + $day\n"; + $start_day = strtotime("+1 day", $start_day); + } + ?> + + + + + $day"; + if ($i == 0) echo "\n"; + if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { + echo "\n"; + } else { + echo "\n"; + } + $start_day = strtotime("+1 day", $start_day); + $i++; + if ($i == 7) { + echo "\n"; + $i = 0; + $checkagain = date ("m", $start_day); + if ($checkagain != $minical_month) $whole_month = FALSE; + } + } while ($whole_month == TRUE); + ?> +
\n"; + echo "$day\n"; + echo "\n"; + echo "$day\n"; + echo "
+
+
+
+ + + + + + +
+ + + + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+
+ + + + +
+ + + + + + + +
+ + + + + + + + + + + + +
+ $goday_lang
\n + $goweek_lang
\n + $gomonth_lang
\n + $goyear_lang
\n + $goprint_lang
\n + $preferences_lang
\n + $subscribe_lang | $download_lang\n + "; ?> +
+
+
+
+
+ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + $day\n"; + $start_day = strtotime("+1 day", $start_day); + } + ?> + + + + + $day"; + if ($i == 0) echo "\n"; + if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { + echo "\n"; + } else { + echo "\n"; + } + $start_day = strtotime("+1 day", $start_day); + $i++; + if ($i == 7) { + echo "\n"; + $i = 0; + $checkagain = date ("m", $start_day); + if ($checkagain != $minical_month) $whole_month = FALSE; + } + } while ($whole_month == TRUE); + ?> +
\n"; + echo "$day\n"; + echo "\n"; + echo "$day\n"; + echo "
+
+
+
diff --git a/includes/event.php b/includes/event.php new file mode 100644 index 0000000..8a37ed5 --- /dev/null +++ b/includes/event.php @@ -0,0 +1,90 @@ + + + + + + <?php echo $calendar_name2; ?> + "> + +
+ + + + + + + + + + + + +
+ + ('.$start.' - '.$end.')'; + if ($start == '' && $end == '' && isset($start, $end)) $event_times = ' - ('.$all_day_lang.')'; + ?> + + + + + + + + + + + + +

'; ?>
+ [:space:]]+[[:alnum:]/]", + '\0', $description); ?>
+
+
+ + diff --git a/includes/footer.inc.php b/includes/footer.inc.php new file mode 100644 index 0000000..2b550a3 --- /dev/null +++ b/includes/footer.inc.php @@ -0,0 +1 @@ +
$powered_by_lang PHP iCalendar 0.9 CVS"; if ($enable_rss == 'yes') { echo "
\n"; if ($current_view == 'rssindex') { echo '[Valid RSS]'; } else { echo $this_site_is_lang.' RSS-Enabled
'; } } echo ''; ?> \ No newline at end of file diff --git a/includes/header.inc.php b/includes/header.inc.php new file mode 100644 index 0000000..922f9d8 --- /dev/null +++ b/includes/header.inc.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/includes/sidebar.php b/includes/sidebar.php new file mode 100644 index 0000000..c0b0140 --- /dev/null +++ b/includes/sidebar.php @@ -0,0 +1,504 @@ + 24) { + $cal_displayname2 = substr("$cal_displayname2", 0, 21); + $cal_displayname2 = $cal_displayname2 . "..."; + } + + $search_box = '
'; + + ?> + + + + + +
+ + + + + + + + + + + + +
\"right\""; ?>\"right\""; ?>
+ + + + + + + + + + + + +
+ $goday_lang
\n + $goweek_lang
\n + $gomonth_lang
\n + $goyear_lang
\n + $goprint_lang
\n + $preferences_lang
\n + $subscribe_lang | $download_lang\n + "; ?> +
+
+
+
+ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+
+ 0) { ?> + + + + +
+ + + + + + + + + + + + +
+ + + + + + \n"; + echo ""; + echo "\n"; + echo "\n"; + ?> +
\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, ''); + if ($event_text != "") { + $event_text2 = rawurlencode(addslashes($val["event_text"])); + $description = addslashes(urlencode($val["description"])); + $event_start = @$val["event_start"]; + $event_end = @$val["event_end"]; + $event_start = date ($timeFormat, @strtotime ("$event_start")); + $event_end = date ($timeFormat, @strtotime ("$event_end")); + $calendar_name2 = addslashes($calendar_name); + $calendar_name2 = urlencode($calendar_name2); + $event_text = word_wrap($event_text, 21, $tomorrows_events_lines); + + if (!isset($val["event_start"])) { + $event_start = $all_day_lang; + $event_end = ''; + echo "$event_text
\n"; + } else { + echo "• $event_text
\n"; + } + + } + } + } + echo "
+
+
+
+ + + + + +
+ + + + + + + + + + + + +
+ + + + + + \n"; + echo ""; + echo "\n"; + echo "\n"; + ?> +
\n"; + foreach ($master_array['-2'] as $vtodo_times) { + foreach ($vtodo_times as $val) { + $vtodo_text = stripslashes(urldecode($val["vtodo_text"])); + $vtodo_text = strip_tags($vtodo_text, ''); + if ($vtodo_text != "") { + $vtodo_text2 = rawurlencode(addslashes($val["vtodo_text"])); + $description = addslashes(urlencode($val["description"])); + $completed = $val['completed_date']; + if(isset($completed)) $completed = localizeDate($dateFormat_day, strtotime($completed)); + $status = $val["status"]; + if ((!isset($status) || $status == "COMPLETED") && isset($completed)) $status = "Completed on " . $completed; + $start_date = $val["start_date"]; + $start_date = localizeDate ($dateFormat_day, strtotime($start_date)); + if(isset($val['due_date']) && strtotime($val['due_date']) != strtotime("+1 year",strtotime($start_date))) $due_date = localizeDate ($dateFormat_day, strtotime($val['due_date'])); + else $due_date = ''; + + $calendar_name2 = addslashes($calendar_name); + $calendar_name2 = urlencode($calendar_name2); + $vtodo_text = word_wrap($vtodo_text, 21, $tomorrows_events_lines); + if ($status == 'COMPLETED' || (isset($val['completed_date']) && isset($val['completed_time']))) { + if ($show_completed == 'yes') { + $vtodo_text = "$vtodo_text"; + echo "\"\" $vtodo_text
\n"; + } + } elseif (isset($val['priority']) && ($val['priority'] != 0) && ($val['priority'] <= 5)) { + echo "\"\" $vtodo_text
\n"; + } else { + echo "\"\" $vtodo_text
\n"; + } + } + } + } + echo "
+
+
+
+ + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + $day\n"; + $start_day = strtotime("+1 day", $start_day); + } + ?> + + + + + $day"; + if ($i == 0) echo "\n"; + if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { + echo "\n"; + } else { + echo "\n"; + } + $start_day = strtotime("+1 day", $start_day); + $i++; + if ($i == 7) { + echo "\n"; + $i = 0; + $checkagain = date ("m", $start_day); + if ($checkagain != $minical_month) $whole_month = FALSE; + } + } while ($whole_month == TRUE); + ?> +
\n"; + echo "$day\n"; + echo "\n"; + echo "$day\n"; + echo "
+
+
+
+ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + $day\n"; + $start_day = strtotime("+1 day", $start_day); + } + ?> + + + + + $day"; + if ($i == 0) echo "\n"; + if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { + echo "\n"; + } else { + echo "\n"; + } + $start_day = strtotime("+1 day", $start_day); + $i++; + if ($i == 7) { + echo "\n"; + $i = 0; + $checkagain = date ("m", $start_day); + if ($checkagain != $minical_month) $whole_month = FALSE; + } + } while ($whole_month == TRUE); + ?> +
\n"; + echo "$day\n"; + echo "\n"; + echo "$day\n"; + echo "
+
+
+
+ + + + +
+ + + + + + + + + + + + +
+ + + + + + + + + + + + $day\n"; + $start_day = strtotime("+1 day", $start_day); + } + ?> + + + + + $day"; + if ($i == 0) echo "\n"; + if (isset($master_array[("$daylink")]) && ($check_month == $minical_month)) { + echo "\n"; + } else { + echo "\n"; + } + $start_day = strtotime("+1 day", $start_day); + $i++; + if ($i == 7) { + echo "\n"; + $i = 0; + $checkagain = date ("m", $start_day); + if ($checkagain != $minical_month) $whole_month = FALSE; + } + } while ($whole_month == TRUE); + ?> +
\n"; + echo "$day\n"; + echo "\n"; + echo "$day\n"; + echo "
+
+
diff --git a/includes/todo.php b/includes/todo.php new file mode 100644 index 0000000..d9dca39 --- /dev/null +++ b/includes/todo.php @@ -0,0 +1,119 @@ + + + + + + <?php echo $calendar_name2; ?> + "> + +
+ + + + + + + + + + + + +
+ + ('.$start.' - '.$end.')'; +// if ($start == '' && $end == '' && isset($start, $end)) $vtodo_times = ' - ('.$all_day_lang.')'; + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[:space:]]+[[:alnum:]/]",'\0',$vtodo).' '.$vtodo_times.'

'; ?>
+ [:space:]]+[[:alnum:]/]", + '\0', $description); ?>
Status:
Created:
Due:
+
+
+ + -- cgit v1.2.3