aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-29 01:17:08 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-29 01:17:08 +0000
commitce366dcff1289fbd3246536dd8cd2215faaa4dd1 (patch)
tree1ce8937b1659bf94eff8a3f76895b38aaa1a526c
parent5bd586da84b58f171263a1b69a145c505e97fd28 (diff)
downloadphpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.zip
phpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.tar.gz
phpicalendar-ce366dcff1289fbd3246536dd8cd2215faaa4dd1.tar.bz2
Stage one of redesign.
-rw-r--r--day.php125
-rw-r--r--functions/list_icals.php2
-rw-r--r--functions/list_months.php27
-rw-r--r--ical_parser.php3
-rw-r--r--images/download_arrow.gifbin0 -> 343 bytes
-rw-r--r--images/grey_small.gifbin0 -> 136 bytes
-rw-r--r--images/left_arrows.gifbin0 -> 98 bytes
-rw-r--r--images/right_arrows.gifbin0 -> 98 bytes
-rw-r--r--images/small_icalicon.gifbin0 -> 369 bytes
-rw-r--r--images/smallicon.gifbin0 -> 371 bytes
-rw-r--r--images/time_bg.gifbin0 -> 964 bytes
-rw-r--r--sidebar.php369
-rw-r--r--styles/default.css26
13 files changed, 468 insertions, 84 deletions
diff --git a/day.php b/day.php
index 8f0539b..7e1fd17 100644
--- a/day.php
+++ b/day.php
@@ -9,7 +9,7 @@ include("./ical_parser.php");
// echo "using sessions";
//}
-$starttime = "0700";
+$starttime = "0500";
$weekstart = 1;
// dpr 20020926: moved variable gridLength to config.inc.php
//$gridLength = 30;
@@ -18,6 +18,29 @@ $today_today = date ("Ymd");
$tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time));
$yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time));
$display_date = strftime($dateFormat_day, $unix_time);
+
+// For the side months
+ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
+$this_day = $day_array2[3];
+$this_month = $day_array2[2];
+$this_year = $day_array2[1];
+
+$date = strtotime($getdate);
+$month1 = date("m", DateAdd ("m", "-1", $date));
+$month2 = date("m", $date);
+$month3 = date("m", DateAdd ("m", "+1", $date));
+$year1 = date("Y", DateAdd ("m", "-1", $date));
+$year2 = date("Y", $date);
+$year3 = date("Y", DateAdd ("m", "+1", $date));
+$first_sunday1 = sundayOfWeek($year1, $month1, "1");
+$first_sunday2 = sundayOfWeek($year2, $month2, "1");
+$first_sunday3 = sundayOfWeek($year3, $month3, "1");
+$display_month1 = strftime ($dateFormat_month, strtotime("-1 month", $date));
+$display_month2 = strftime ($dateFormat_month, $date);
+$display_month3 = strftime ($dateFormat_month, strtotime("+1 month", $date));
+$parse_month = date ("Ym", $date);
+$thisday2 = strftime($dateFormat_week_list, $date);
+
$nbrGridCols = 1;
if ($master_array[($getdate)]) {
foreach($master_array[($getdate)] as $ovlKey => $ovlValue) {
@@ -41,87 +64,30 @@ if ($master_array[($getdate)]) {
</head>
<body bgcolor="#FFFFFF">
<center>
-
-<table width="700" border="0" cellspacing="0" cellpadding="0" class="V12">
- <tr>
- <td align="left" width="100"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$today_today\">$today_lang</a>"; ?></td>
- <td align="center" width="600"><?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="100"><!--[[a class="psf" href="preferences.php"]]Preferences[[/a]]--></td>
- </tr>
+<table border="0" width="720" cellspacing="0" cellpadding="0">
<tr>
- <td colspan="3"><img src="images/spacer.gif" height="10" width="1" alt=""></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">
+ <td width="540" valign="top">
+<table width="540" border="0" cellspacing="0" cellpadding="0" class="calborder">
<tr>
<td align="center" valign="middle">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#a1a5a9" class="G10B">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0" class="G10B">
<tr>
- <td bgcolor="#ffffff">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td colspan="2">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <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%"><?php include('./functions/list_icals.php'); ?></td>
- <td align="right" valign="middle" class="G10B" width="50%"><?php echo "<a class=\"psf\" href=\"$fullpath$cal.ics\">$subscribe_lang</a>&nbsp;|&nbsp;<a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td>
- </tr>
- </table>
- </td>
+ <td class="H20" align="center" bgcolor="#DDDDDD" background="images/time_bg.gif"><img src="images/spacer.gif" width="1" height="6" alt=""><br><?php echo "$display_date"; ?><br><img src="images/spacer.gif" width="1" height="3" alt=""></td>
</tr>
<tr>
<td align="center" valign="top">
- <table width="100%" border="0" cellspacing="1" cellpadding="0">
- <?php
- // The all day events returned here.
- $i = 0;
- 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)]["-1"] as $all_day) {
- $event_text2 = addslashes($all_day["event_text"]);
- $event_text2 = str_replace("\"", "&quot;", $event_text2);
- if ($i > 0) {
- echo "<tr>\n";
- echo "<td bgcolor=\"#eeeeee\" height=\"1\"></td>\n";
- echo "</tr>\n";
- }
- echo "<tr>\n";
- echo "<td valign=\"top\" align=\"center\"><a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end')\"><font class=\"eventfont\"><i>" . $all_day["event_text"] . "</i></font></a></td>\n";
- echo "</tr>\n";
- $i++;
- }
- echo "</table>\n";
- echo "</td>\n";
- echo "</tr>\n";
- }
- ?>
-
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
- <td nowrap bgcolor="#a1a5a9" width="60"></td>
- <td nowrap bgcolor="#a1a5a9" width="1"></td>
+ <td width="60"><img src="images/spacer.gif" width="60" height="1" alt=""></td>
+ <td width="1"></td>
<?php for ($m=0;$m < $nbrGridCols;$m++) {
- echo "<td nowrap bgcolor=\"#a1a5a9\"><img src=\"images/spacer.gif\" width=\"" . (700 / $nbrGridCols) . "\" height=\"1\" alt=\"\"></td>";
+ echo "<td><img src=\"images/spacer.gif\" width=\"" . (540 / $nbrGridCols) . "\" height=\"1\" alt=\"\"></td>";
} ?>
</tr>
<?php
// $master_array[($getdate)]["$day_time"]
$event_length = array ();
-
+ $border = 0;
foreach ($day_array as $key) {
$cal_time = $key;
$key = strtotime ("$key");
@@ -146,14 +112,15 @@ if ($master_array[($getdate)]) {
}
if (ereg("([0-9]{1,2}):00", $key)) {
echo "<tr height=\"" . $gridLength . "\">\n";
- echo "<td rowspan=\"" . (60 / $gridLength) . "\" align=\"center\" valign=\"top\" bgcolor=\"#f5f5f5\" width=\"60\">$key</td>\n";
- echo "<td align=\"center\" valign=\"top\" nowrap bgcolor=\"#a1a5a9\" width=\"1\" height=\"" . $gridLength . "\"></td>\n";
+ echo "<td rowspan=\"" . (60 / $gridLength) . "\" align=\"center\" valign=\"top\" background=\"images/time_bg.gif\" width=\"60\" class=\"timeborder\">$key</td>\n";
+ echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n";
} else {
+
echo "<tr height=\"" . $gridLength . "\">\n";
- echo "<td align=\"center\" valign=\"top\" nowrap bgcolor=\"#a1a5a9\" width=\"1\" height=\"" . $gridLength . "\"></td>\n";
+ echo "<td width=\"1\" height=\"" . $gridLength . "\"></td>\n";
}
if (sizeof($event_length) == 0) {
- echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\">&nbsp;</td>\n";
+ echo "<td bgcolor=\"#ffffff\" colspan=\"" . $nbrGridCols . "\" class=\"dayborder\">&nbsp;</td>\n";
} else {
$emptyWidth = $nbrGridCols;
for ($i=0;$i<sizeof($event_length);$i++) {
@@ -168,16 +135,16 @@ if ($master_array[($getdate)]) {
$event_text2 = str_replace("\"", "&quot;", $event_text2);
$event_start = $master_array[($getdate)]["$cal_time"][($event_length[$i]["key"])]["event_start"];
$event_end = $master_array[($getdate)]["$cal_time"][($event_length[$i]["key"])]["event_end"];
- $description = $master_array[($getdate)]["$cal_time"][($event_length[$i]["key"])]["description"];
+ $description = addslashes($master_array[($getdate)]["$cal_time"][($event_length[$i]["key"])]["description"]);
$description = str_replace("\"", "&quot;", $description);
$event_start = strtotime ("$event_start");
$event_start = date ($timeFormat, $event_start);
$event_end = strtotime ("$event_end");
$event_end = date ($timeFormat, $event_end);
- echo "<td rowspan=\"" . $event_length[$i]["length"] . "\" colspan=\"" . $drawWidth . "\" align=\"left\" valign=\"top\" class=\"eventbg\">\n";
+ echo "<td rowspan=\"" . $event_length[$i]["length"] . "\" colspan=\"" . $drawWidth . "\" align=\"left\" valign=\"top\" class=\"eventbg2\">\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n";
echo "<tr>\n";
- echo "<td class=\"eventborder\"><font class=\"eventfont\"><b>$event_start</b> - $event_end</font></td>\n";
+ echo "<td class=\"eventborder\"><font class=\"eventfont\"><b>$event_start</b></font></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td>\n";
@@ -222,12 +189,12 @@ if ($master_array[($getdate)]) {
</td>
</tr>
</table>
-
</td>
-</tr>
+ <td width="20"><img src="images/spacer.gif" width="20" height="1" alt=""></td>
+ <td width="160" valign="top"><?php include('./sidebar.php'); ?><center>
+ <?php echo "<font class=\"V9\"><br>$powered_by_lang <a class=\"psf\" href=\"http://sourceforge.net/projects/phpicalendar/\">PHP iCalendar $version_lang</a></font>"; ?></center></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>
diff --git a/functions/list_icals.php b/functions/list_icals.php
index c585780..d4d41ba 100644
--- a/functions/list_icals.php
+++ b/functions/list_icals.php
@@ -6,7 +6,7 @@ if (isset($getdate)) {
} else {
$query="";
}
-print "<form>\n<select name=\"action\" class=\"G10B\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
+print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
#print "<option value=\"null\">Select a Calendar</option>\n";
// open file
diff --git a/functions/list_months.php b/functions/list_months.php
new file mode 100644
index 0000000..c532984
--- /dev/null
+++ b/functions/list_months.php
@@ -0,0 +1,27 @@
+<?php
+
+ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2);
+$this_day = $day_array2[3];
+$this_month = $day_array2[2];
+$this_year = $day_array2[1];
+
+print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
+$i = 0;
+$month_time = mktime (0,0,0,1,$this_day,$this_year);
+echo "$this_day, $this_year";
+// build the <option> tags
+while ($i != 12) {
+ $monthdate = date ("Ymd", $month_time);
+ $select_month = strftime($dateFormat_month, $month_time);
+ if ($monthdate == $getdate) {
+ print "<option value=\"month.php?cal=$cal&getdate=$monthdate\" selected>$select_month</option>\n";
+ } else {
+ print "<option value=\"month.php?cal=$cal&getdate=$monthdate\">$select_month</option>\n";
+ }
+ $month_time = strtotime ("+1 month", $month_time);
+ $i++;
+}
+
+// finish <select>
+print "</select>\n</form>";
+?> \ No newline at end of file
diff --git a/ical_parser.php b/ical_parser.php
index 1f7e159..a640905 100644
--- a/ical_parser.php
+++ b/ical_parser.php
@@ -12,9 +12,6 @@ include("./functions/date_functions.php");
include("./functions/draw_functions.php");
include("./functions/overlapping_events.php");
-
-
-//$day_array = array ("0700", "0730", "0800", "0830", "0900", "0930", "1000", "1030", "1100", "1130", "1200", "1230", "1300", "1330", "1400", "1430", "1500", "1530", "1600", "1630", "1700", "1730", "1800", "1830", "1900", "1930", "2000", "2030", "2100", "2130", "2200", "2230", "2300", "2330");
$fillTime = $day_start;
$day_array = array ();
while ($fillTime != "2400") {
diff --git a/images/download_arrow.gif b/images/download_arrow.gif
new file mode 100644
index 0000000..6108f32
--- /dev/null
+++ b/images/download_arrow.gif
Binary files differ
diff --git a/images/grey_small.gif b/images/grey_small.gif
new file mode 100644
index 0000000..4f2cc9e
--- /dev/null
+++ b/images/grey_small.gif
Binary files differ
diff --git a/images/left_arrows.gif b/images/left_arrows.gif
new file mode 100644
index 0000000..03b918c
--- /dev/null
+++ b/images/left_arrows.gif
Binary files differ
diff --git a/images/right_arrows.gif b/images/right_arrows.gif
new file mode 100644
index 0000000..092c34d
--- /dev/null
+++ b/images/right_arrows.gif
Binary files differ
diff --git a/images/small_icalicon.gif b/images/small_icalicon.gif
new file mode 100644
index 0000000..cf5b6de
--- /dev/null
+++ b/images/small_icalicon.gif
Binary files differ
diff --git a/images/smallicon.gif b/images/smallicon.gif
new file mode 100644
index 0000000..ab0c9c2
--- /dev/null
+++ b/images/smallicon.gif
Binary files differ
diff --git a/images/time_bg.gif b/images/time_bg.gif
new file mode 100644
index 0000000..8f1a3ee
--- /dev/null
+++ b/images/time_bg.gif
Binary files differ
diff --git a/sidebar.php b/sidebar.php
new file mode 100644
index 0000000..fc44ac6
--- /dev/null
+++ b/sidebar.php
@@ -0,0 +1,369 @@
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$yesterdays_date\"><img src=\"images/left_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"left\"></a>"; ?></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "$thisday2"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"><?php echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$tomorrows_date\"><img src=\"images/right_arrows.gif\" alt=\"right\" width=\"16\" height=\"20\" border=\"0\" align=\"right\"></a>"; ?></td>
+ </tr>
+ <tr>
+ <td colspan="3" 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"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" class="G10B"><?php echo "$cal $calendar_lang"; ?></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$fullpath$cal.ics\"><img src=\"images/smallicon.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td>
+ <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td>
+ <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$fullpath$cal.ics\">$subscribe_lang</a>"; ?></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td width="1%" align="middle"><?php echo "<a class=\"psf\" href=\"$filename\"><img src=\"images/download_arrow.gif\" alt=\"\" width=\"13\" height=\"16\" border=\"0\" align=\"middle\"></a>"; ?></td>
+ <td width="1%"><img src="images/spacer.gif" width="3" height="1"></td>
+ <td colspan="4" class="G10B"><?php echo "<a class=\"psf\" href=\"$filename\">$download_lang</a>"; ?></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <br>
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "Jump to"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"></td>
+ </tr>
+ <tr>
+ <td colspan="3" 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"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" class="G10B"><?php include('./functions/list_icals.php'); ?></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="21" height="5"></td>
+ </tr>
+ <tr>
+ <td width="1%"><img src="images/spacer.gif" width="4" height="1"></td>
+ <td colspan="6" class="G10B"><?php include('./functions/list_months.php'); ?></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <br>
+<?php if (sizeof($master_array[($tomorrows_date)]) > 0) { ?>
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1%"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B" width="98%"><b><?php echo "Tomorrow's Events"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1%"></td>
+ </tr>
+ <tr>
+ <td colspan="3" 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"></td>
+ </tr>
+
+ <?php
+ foreach ($master_array[("$tomorrows_date")] as $event_times) {
+ foreach ($event_times as $val) {
+ $event_text = $val["event_text"];
+ $event_text = strip_tags($event_text, '<b><i><u>');
+ if ($event_text != "") {
+ $event_text2 = addslashes($val["event_text"]);
+ $event_text2 = str_replace("\"", "&quot;", $event_text2);
+ $description = addslashes($val["description"]);
+ $description = str_replace("\"", "&quot;", $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"));
+ if (strlen($event_text) > 21) {
+ $event_text = substr("$event_text", 0, 18);
+ $event_text = $event_text . "...";
+ }
+ echo "<tr>\n";
+ echo "<td width=\"1%\"><img src=\"images/spacer.gif\" width=\"4\" height=\"1\"></td>";
+ echo "<td colspan=\"6\" class=\"G10B\">\n";
+ if (!$event_start = $val["event_start"]) {
+ echo "<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><i>$event_text</i></a>\n";
+ } else {
+ echo "<a class=\"psf\" href=\"javascript:openEventInfo('$event_text2', '$calendar_name', '$event_start', '$event_end', '$description')\"><font class=\"G10B\">&#149; $event_text</font></a>\n";
+ }
+ echo "</td>\n";
+ echo "</tr>\n";
+ $num_of_events++;
+ }
+ }
+ }
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <br>
+<?php } ?>
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month1"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="center">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
+ <tr>
+ <td><img src="images/spacer.gif" width="21" height="3"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ </tr>
+ <tr>
+ <td align="center" class="G10B"><b>Su</b></td>
+ <td align="center" class="G10B"><b>Mo</b></td>
+ <td align="center" class="G10B"><b>Tu</b></td>
+ <td align="center" class="G10B"><b>We</b></td>
+ <td align="center" class="G10B"><b>Th</b></td>
+ <td align="center" class="G10B"><b>Fr</b></td>
+ <td align="center" class="G10B"><b>Sa</b></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="1" height="3">
+ </td>
+ </tr>
+ <?php
+ $sunday = strtotime("$first_sunday1");
+ $i = 0;
+ $whole_month = TRUE;
+ $num_of_events = 0;
+ do {
+ $day = date ("j", $sunday);
+ $daylink = date ("Ymd", $sunday);
+ $check_month = date ("m", $sunday);
+ if ($check_month != $month1) $day= "<font class=\"G10B\">$day</font>";
+ if ($i == 0) echo "<tr>\n";
+ if (($master_array[("$daylink")]) && ($check_month == $month1)) {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ } else {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ }
+ $sunday = ($sunday + (24.5 * 60 * 60));
+ $i++;
+ if ($i == 7) {
+ echo "</tr>\n";
+ $i = 0;
+ $checkagain = date ("m", $sunday);
+ if ($checkagain != $month1) $whole_month = FALSE;
+ }
+ } while ($whole_month == TRUE);
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <br>
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month2"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="center">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
+ <tr>
+ <td><img src="images/spacer.gif" width="21" height="3"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ </tr>
+ <tr>
+ <td align="center" class="G10B"><b>Su</b></td>
+ <td align="center" class="G10B"><b>Mo</b></td>
+ <td align="center" class="G10B"><b>Tu</b></td>
+ <td align="center" class="G10B"><b>We</b></td>
+ <td align="center" class="G10B"><b>Th</b></td>
+ <td align="center" class="G10B"><b>Fr</b></td>
+ <td align="center" class="G10B"><b>Sa</b></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="1" height="3">
+ </td>
+ </tr>
+ <?php
+ $sunday = strtotime("$first_sunday2");
+ $i = 0;
+ $whole_month = TRUE;
+ $num_of_events = 0;
+ do {
+ $day = date ("j", $sunday);
+ $daylink = date ("Ymd", $sunday);
+ $check_month = date ("m", $sunday);
+ if ($check_month != $month2) $day= "<font class=\"G10B\">$day</font>";
+ if ($daylink == $getdate) $day= "<b>$day</b>";
+ if ($i == 0) echo "<tr>\n";
+ if (($master_array[("$daylink")]) && ($check_month == $month2)) {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ } else {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ }
+ $sunday = ($sunday + (24.5 * 60 * 60));
+ $i++;
+ if ($i == 7) {
+ echo "</tr>\n";
+ $i = 0;
+ $checkagain = date ("m", $sunday);
+ if ($checkagain != $month2) $whole_month = FALSE;
+ }
+ } while ($whole_month == TRUE);
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <br>
+ <table cellpadding="0" cellspacing="0" border="0" width="160">
+ <tr>
+ <td valign="center" align="center">
+ <table width="160" border="0" cellpadding="0" cellspacing="0" class="calborder">
+ <tr>
+ <td align="left" valign="top" bgcolor="#DDDDDD" width="1"><img src="images/spacer.gif" width="1" height="20"></td>
+ <td bgcolor="#DDDDDD" align="center" class="G10B"><b><?php echo "$display_month3"; ?></b></td>
+ <td align="right" valign="top" bgcolor="#DDDDDD" width="1"></td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF" align="center">
+ <table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
+ <tr>
+ <td><img src="images/spacer.gif" width="21" height="3"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ <td><img src="images/spacer.gif" width="21" height="1"></td>
+ </tr>
+ <tr>
+ <td align="center" class="G10B"><b>Su</b></td>
+ <td align="center" class="G10B"><b>Mo</b></td>
+ <td align="center" class="G10B"><b>Tu</b></td>
+ <td align="center" class="G10B"><b>We</b></td>
+ <td align="center" class="G10B"><b>Th</b></td>
+ <td align="center" class="G10B"><b>Fr</b></td>
+ <td align="center" class="G10B"><b>Sa</b></td>
+ </tr>
+ <tr>
+ <td colspan="7"><img src="images/spacer.gif" width="1" height="3">
+ </td>
+ </tr>
+ <?php
+ $sunday = strtotime("$first_sunday3");
+ $i = 0;
+ $whole_month = TRUE;
+ $num_of_events = 0;
+ do {
+ $day = date ("j", $sunday);
+ $daylink = date ("Ymd", $sunday);
+ $check_month = date ("m", $sunday);
+ if ($check_month != $month3) $day= "<font class=\"G10B\">$day</font>";
+ if ($i == 0) echo "<tr>\n";
+ if (($master_array[("$daylink")]) && ($check_month == $month3)) {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"ps2\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ } else {
+ echo "<td align=\"center\" class=\"G10B\">\n";
+ echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\">$day</a>\n";
+ echo "</td>\n";
+ }
+ $sunday = ($sunday + (24.5 * 60 * 60));
+ $i++;
+ if ($i == 7) {
+ echo "</tr>\n";
+ $i = 0;
+ $checkagain = date ("m", $sunday);
+ if ($checkagain != $month3) $whole_month = FALSE;
+ }
+ } while ($whole_month == TRUE);
+ ?>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6"></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
diff --git a/styles/default.css b/styles/default.css
index 7250393..814c725 100644
--- a/styles/default.css
+++ b/styles/default.css
@@ -2,8 +2,11 @@
.eventborder { background-color: #0065DB; border: 1px #0033CC solid; }
.eventbg { background-color: #68AAEF; }
+.eventbg2 { background-color: #68AAEF; border-right: 1px solid #FFFFFF; }
.eventfont { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #FFFFFF; }
.calborder { background-color: #FFFFFF; border: 1px #A1A5A9 solid; }
+.dayborder { border-top: 1px dashed #A1A5A9; }
+.timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; }
a.psf {
text-decoration: none;
@@ -25,6 +28,26 @@ a.psf:hover {
background-color: transparent;
}
+a.ps2 {
+ text-decoration: underline;
+ }
+a.ps2:link {
+ color: #06f;
+ background-color: transparent;
+ }
+a.ps2:visited {
+ color: #06f;
+ background-color: transparent;
+ }
+a.ps2:active {
+ color: #36c;
+ background-color: transparent;
+ }
+a.ps2:hover {
+ color: #009;
+ background-color: transparent;
+ }
+
body {
background-color: #E5E5E5;
@@ -35,10 +58,11 @@ background-color: #E5E5E5;
.V9 { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; }
.G10 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #06f; }
.G10B { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: black; }
+.G10G { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #666; }
.V12 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
.H20 { font-family: Helvetica, sans-serif; font-size: 20px; }
-.query_style { font-size : 12px; font-family : geneva, arial, sans-serif; width: 135px; }
+.query_style { font-size : 11px; font-family : verdana, geneva, arial, sans-serif; width: 146px; margin-bottom:0; }
.add_style { font-size : 12px; font-family : verdana, geneva, arial, sans-serif; width: 160px; }

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