aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-09-14 21:01:34 +0000
committerChad Little <clittle@users.sourceforge.net>2003-09-14 21:01:34 +0000
commit557fe532a369df55a598040b1f1f07fc87bcc1dc (patch)
treede7cc5f311e38013d9e5f767222189e2bac75365 /functions
parent62cca1dd882d27f0891e1b4ea0fec218f749ab44 (diff)
downloadphpicalendar-557fe532a369df55a598040b1f1f07fc87bcc1dc.tar.gz
phpicalendar-557fe532a369df55a598040b1f1f07fc87bcc1dc.tar.bz2
phpicalendar-557fe532a369df55a598040b1f1f07fc87bcc1dc.zip
Removed many many tables from month view, switched to DIVS. Fixed openevent, added link class.
Diffstat (limited to 'functions')
-rw-r--r--functions/date_functions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions/date_functions.php b/functions/date_functions.php
index cc13518..a15ddcb 100644
--- a/functions/date_functions.php
+++ b/functions/date_functions.php
@@ -160,7 +160,7 @@ function chooseOffset($time) {
return $offset;
}
-function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic) {
+function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic, $class) {
$event_text = stripslashes(urldecode($arr["event_text"]));
# for iCal pseudo tag <http> comptability
if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$reg)) {
@@ -192,8 +192,8 @@ function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic) {
}
if ($event_text != "") {
if ($lines) $event_text = word_wrap($event_text, $wrap, $lines);
- $dsc =urlencode(addslashes($arr["description"]));
- echo "<a class=\"psf\" href=\"";
+ $dsc = urlencode(addslashes($arr["description"]));
+ echo '<a class="'.$class.'" href="';
if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $ev, $res))) || ($dsc)) {
echo "javascript:w=window.open('";
echo "includes/event.php?event=";
@@ -207,7 +207,7 @@ function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic) {
} else {
echo $res[1];
}
- echo "\">$clic$event_text</a>";
+ echo '">'.$clic.$event_text.'</a>'.$fclic;
}
}

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