[Tickets #5897] More detailed overview per month

bugs at bugs.horde.org bugs at bugs.horde.org
Sun Nov 18 21:15:37 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5897
-----------------------------------------------------------------------
 Ticket             | 5897
 Created By         | horde at immerda.ch
 Summary            | More detailed overview per month
 Queue              | Kronolith
 Version            | 2.1.6
 Type               | Enhancement
 State              | New
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


horde at immerda.ch (2007-11-18 13:15) wrote:

This patch enables a more detailed (an therefor enhanced) overview per
month, which might be enabled by a flag or (like in this patch) directly in
the code.

--- ./lib/Driver.php-old        2007-11-18 22:06:55.000000000 +0100
+++ ./lib/Driver.php    2007-11-18 22:08:58.000000000 +0100
@@ -1987,9 +1987,31 @@
             }
         }
 
+        if (!$this->isAllDay()) {
+            if (($cmp = $this->start->compareDate($this->end)) > 0) {
+                $df = $prefs->getValue('date_format');
+                if ($cmp > 0) {
+                        $link .= strftime($df, $this->end->timestamp()) .
'-' .  strftime($df, $this->start->timestamp());
+                } else {
+                        $link .= strftime($df, $this->start->timestamp())
. '-' .
+                            strftime($df, $this->end->timestamp());
+                }
+            } else {
+                $link .= date($prefs->getValue('twentyFour') ? 'G:i' :
'g:ia',
+                             $this->start->timestamp()) . '-' .
+                             date($prefs->getValue('twentyFour') ? 'G:i'
: 'g:ia',
+                             $this->end->timestamp());
+            }
+            $link .= ': ';
+        }
+
         $link .= @htmlspecialchars($this->getTitle(), ENT_QUOTES,
                                    NLS::getCharset());
 
+        if ($this->location) {
+               $link .= ' ('. $this->location .')';
+        }
+
         if (isset($this->remoteCal) ||
             (!is_a($share, 'PEAR_Error') &&
              $share->hasPermission(Auth::getAuth(), PERMS_READ,



More information about the bugs mailing list