aboutsummaryrefslogtreecommitdiffstats
path: root/day.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-20 05:18:38 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-20 05:18:38 +0000
commitb941c90ce2d8f9a1248425087063257aacd615bc (patch)
treeeb7512b970951143c189b7753d4154c52ead5f46 /day.php
parent4fb8c0746e8ab44a536be48107d7f56b00fa69a6 (diff)
downloadphpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.tar.gz
phpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.tar.bz2
phpicalendar-b941c90ce2d8f9a1248425087063257aacd615bc.zip
Added URL support to popup, re-wrote event.php for less code.
Diffstat (limited to 'day.php')
-rw-r--r--day.php24
1 files changed, 5 insertions, 19 deletions
diff --git a/day.php b/day.php
index 4fcfeae..8a34cfe 100644
--- a/day.php
+++ b/day.php
@@ -91,18 +91,11 @@ include (BASE.'includes/header.inc.php');
echo "<tr>\n";
$event_calno = $allday['calnumber'];
$event_calna = $allday['calname'];
+ $event_url = $allday['url'];
if ($event_calno < 1) $event_calno=1;
if ($event_calno > 7) $event_calno=7;
echo '<td valign="top" align="center" class="eventbg_'.$event_calno.'">';
- openevent("$event_calna",
- "",
- "",
- $allday,
- 0,
- "",
- '<font color="#ffffff"><i>',
- "</i></font>",
- "psf");
+ openevent($event_calna, '', '', $allday, 0, '', '<font color="#ffffff"><i>', '</i></font>', 'psf', $url);
echo "</td>\n</tr>\n";
}
echo '</table>'."\n";
@@ -253,16 +246,9 @@ include (BASE.'includes/header.inc.php');
echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">'."\n";
echo '<tr>'."\n";
echo '<td class="eventbg_'.$event_calno.'">';
- $event_calna = $this_time_arr[($event_length[$i]['key'])]['calname'];
- openevent("$event_calna",
- "$event_start",
- "$event_end",
- $this_time_arr[($event_length[$i]['key'])],
- "",
- 0,
- "<font class=\"eventfont\">",
- "</font>",
- "psf");
+ $event_calna = $this_time_arr[($event_length[$i]['key'])]['calname'];
+ $event_url = $this_time_arr[($event_length[$i]['key'])]['url'];
+ openevent($event_calna, $event_start, $event_end, $this_time_arr[($event_length[$i]['key'])], '', 0, '<font class="eventfont">', '</font>', 'psf', $event_url);
echo '</td></tr>'."\n";
echo '</table>'."\n";
echo '</td>'."\n";

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