Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv25119/functions
Modified Files:
date_functions.php
Log Message:
Removed many many tables from month view, switched to DIVS. Fixed openevent, added link class.
Index: date_functions.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** date_functions.php 29 May 2003 06:27:14 -0000 1.14
--- date_functions.php 14 Sep 2003 21:01:34 -0000 1.15
***************
*** 161,165 ****
}
! function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic) {
$event_text = stripslashes(urldecode($arr["event_text"]));
# for iCal pseudo tag <http> comptability
--- 161,165 ----
}
! function openevent($cal, $st, $end, $arr, $lines, $wrap, $clic, $fclic, $class) {
$event_text = stripslashes(urldecode($arr["event_text"]));
# for iCal pseudo tag <http> comptability
***************
*** 193,198 ****
if ($event_text != "") {
if ($lines) $event_text = word_wrap($event_text, $wrap, $lines);
! $dsc =urlencode(addslashes($arr["description"]));
! echo "<a class=\"psf\" href=\"";
if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $ev, $res))) || ($dsc)) {
echo "javascript:w=window.open('";
--- 193,198 ----
if ($event_text != "") {
if ($lines) $event_text = word_wrap($event_text, $wrap, $lines);
! $dsc = urlencode(addslashes($arr["description"]));
! echo '<a class="'.$class.'" href="';
if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $ev, $res))) || ($dsc)) {
echo "javascript:w=window.open('";
***************
*** 208,212 ****
echo $res[1];
}
! echo "\">$clic$event_text</a>";
}
}
--- 208,212 ----
echo $res[1];
}
! echo '">'.$clic.$event_text.'</a>'.$fclic;
}
}
|