aboutsummaryrefslogtreecommitdiffstats
path: root/month.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-22 23:55:23 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-22 23:55:23 +0000
commitdecb14081931b6b9f33adcdd8436d38ed8de6e43 (patch)
tree95b7e60d28cadcbab6300e6a55a218bc853f6280 /month.php
parenta56a0d79feeb0a1bcc3eeb04c627bc075f002044 (diff)
downloadphpicalendar-decb14081931b6b9f33adcdd8436d38ed8de6e43.tar.gz
phpicalendar-decb14081931b6b9f33adcdd8436d38ed8de6e43.tar.bz2
phpicalendar-decb14081931b6b9f33adcdd8436d38ed8de6e43.zip
* Add JavaScript for popping up event info.
Diffstat (limited to 'month.php')
-rw-r--r--month.php29
1 files changed, 26 insertions, 3 deletions
diff --git a/month.php b/month.php
index 3bb6f19..a7ba658 100644
--- a/month.php
+++ b/month.php
@@ -25,9 +25,31 @@
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8">
+ <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"; ?>">
+ <link rel="stylesheet" type="text/css" href="styles/<? echo "$style_sheet"; ?>">
+ <script language="JavaScript">
+ <!--
+ function openEventInfo(event, start, end)
+ {
+ var windowW = 500;
+ var windowH = 450;
+
+ var url = "event.php?event="+escape(event)+
+ "&start="+escape(start)+
+ "&end="+escape(end);
+
+ alert(url);
+
+ options = "scrollbars=no"+",width="+windowW+",height="+windowH;
+
+ info = window.open(url, "Popup", options);
+
+ info.focus();
+ }
+
+ //-->
+ </script>
</head>
<body bgcolor="#FFFFFF">
<center>
@@ -128,7 +150,8 @@
}
echo "<tr height=\"15\">\n";
echo "<td height=\"15\" valign=\"middle\" align=\"center\" bgcolor=\"#ffffff\">\n";
- echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\"><i>$event_text</i></a>\n";
+ //echo "<a class=\"psf\" href=\"day.php?cal=$cal&getdate=$daylink\"><i>$event_text</i></a>\n";
+ echo "<a class=\"psf\" href=\"javascript:openEventInfo('event', 'start', 'end')\"><i>$event_text</i></a>\n";
echo "</td>\n";
echo "</tr>\n";
}

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