aboutsummaryrefslogtreecommitdiffstats
path: root/functions/template.php
diff options
context:
space:
mode:
authorJim Hu <jimhu@users.sourceforge.net>2006-12-05 08:40:18 +0000
committerJim Hu <jimhu@users.sourceforge.net>2006-12-05 08:40:18 +0000
commit2e26a1297de73ef09a87f9e4e97ed2090a448275 (patch)
tree67ac8be31d02f53c921efd3938a37aee1e7d58c9 /functions/template.php
parent8067308a2fa3227709dc5b92c0b8e7bca18d1889 (diff)
downloadphpicalendar-2e26a1297de73ef09a87f9e4e97ed2090a448275.tar.gz
phpicalendar-2e26a1297de73ef09a87f9e4e97ed2090a448275.tar.bz2
phpicalendar-2e26a1297de73ef09a87f9e4e97ed2090a448275.zip
fix display of status and recur icons
Diffstat (limited to 'functions/template.php')
-rw-r--r--functions/template.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/functions/template.php b/functions/template.php
index 30c866c..aa52124 100644
--- a/functions/template.php
+++ b/functions/template.php
@@ -446,9 +446,12 @@ class Page {
$event_start = date ($timeFormat_small, $event_start);
$event_calno = $this_time_arr[$uid]['calnumber'];
$event_status = strtolower($this_time_arr[$uid]['status']);
+ $event_recur = $this_time_arr[$uid]['recur'];
$event_calno = (($event_calno - 1) % $unique_colors) + 1;
+ $confirmed = '';
+ if (is_array($event_recur)) $confirmed .= '<img src="images/recurring.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
if ($event_status != '') {
- $confirmed = '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
+ $confirmed .= '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
}
$colspan_width = round((80 / $nbrGridCols[$thisday]) * $drawWidth);
$weekdisplay .= '<td width="'.$colspan_width.'" rowspan="' . $event_length[$thisday][$i]['length'] . '" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2_'.$event_calno.'">'."\n";
@@ -666,11 +669,9 @@ class Page {
$event_recur = $this_time_arr[$uid]['recur'];
$event_status = strtolower($this_time_arr[$uid]['status']);
$event_calno = (($event_calno - 1) % $unique_colors) + 1;
- if ($event_status != '') {
- $confirmed = '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
- } elseif (is_array($event_recur)) {
- $confirmed = '<img src="images/recurring.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
- }
+ $confirmed = '';
+ if (is_array($event_recur)) $confirmed .= '<img src="images/recurring.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
+ if ($event_status != '') $confirmed .= '<img src="images/'.$event_status.'.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0" />&nbsp;';
$colspan_width = round((460 / $nbrGridCols) * $drawWidth);
$daydisplay .= '<td rowspan="' . $event_length[$i]['length'] . '" width="'.$colspan_width.'" colspan="' . $drawWidth . '" align="left" valign="top" class="eventbg2_'.$event_calno.'">'."\n";

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