Fix view names.
authorJan Schneider <jan@horde.org>
Wed, 25 Mar 2009 23:48:27 +0000 (00:48 +0100)
committerJan Schneider <jan@horde.org>
Wed, 25 Mar 2009 23:48:27 +0000 (00:48 +0100)
kronolith/attendees.php
kronolith/lib/FreeBusy/View/Month.php
kronolith/lib/FreeBusy/View/Week.php

index 36f59a7..9b8e36b 100644 (file)
@@ -179,7 +179,7 @@ case 'clear':
 }
 
 // Get the current Free/Busy view; default to the 'day' view if none specified.
-$view = Util::getFormData('view', 'day');
+$view = Util::getFormData('view', 'Day');
 
 // Pre-format our delete image/link.
 $delimg = Horde::img('delete.png', _("Remove Attendee"), null,
@@ -189,10 +189,10 @@ $ident = &Identity::singleton();
 $identities = $ident->getAll('id');
 $vars = Variables::getDefaultVariables();
 $tabs = new Horde_UI_Tabs(null, $vars);
-$tabs->addTab(_("Day"), 'javascript:switchView(\'day\')', 'day');
-$tabs->addTab(_("Work Week"), 'javascript:switchView(\'workweek\')', 'workweek');
-$tabs->addTab(_("Week"), 'javascript:switchView(\'week\')', 'week');
-$tabs->addTab(_("Month"), 'javascript:switchView(\'month\')', 'month');
+$tabs->addTab(_("Day"), 'javascript:switchView(\'Day\')', 'Day');
+$tabs->addTab(_("Work Week"), 'javascript:switchView(\'Workweek\')', 'Workweek');
+$tabs->addTab(_("Week"), 'javascript:switchView(\'Week\')', 'Week');
+$tabs->addTab(_("Month"), 'javascript:switchView(\'Month\')', 'Month');
 
 $attendee_view = &Kronolith_FreeBusy_View::singleton($view);
 
index 24075df..41b4b48 100644 (file)
@@ -48,7 +48,7 @@ class Kronolith_FreeBusy_View_Month extends Kronolith_FreeBusy_View {
         $t = new Horde_Date($this->_start);
         while ($span_left > 0) {
             $span_left -= $span;
-            $week_label = Horde::link('#', '', '', '', 'return switchDateView(\'week\',' . $t->dateString() . ');') . ("Week") . ' ' . $week . '</a>';
+            $week_label = Horde::link('#', '', '', '', 'return switchDateView(\'Week\',' . $t->dateString() . ');') . ("Week") . ' ' . $week . '</a>';
             $hours_html .= sprintf('<th colspan="%d" width="%s%%">%s</th>',
                                    $span, $dayWidth, $week_label);
             $week++;
@@ -61,7 +61,7 @@ class Kronolith_FreeBusy_View_Month extends Kronolith_FreeBusy_View {
             $t = new Horde_Date(array('month' => $this->_start->month,
                                       'mday' => $this->_start->mday + $i,
                                       'year' => $this->_start->year));
-            $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'day\',' . $t->dateString() . ');') . sprintf("%s.", $i + 1) . '</a>';
+            $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'Day\',' . $t->dateString() . ');') . sprintf("%s.", $i + 1) . '</a>';
             $hours_html .= sprintf('<th width="%s%%">%s</th>',
                                    $dayWidth, $day_label);
         }
index a75e289..b0ea0c6 100644 (file)
@@ -50,7 +50,7 @@ class Kronolith_FreeBusy_View_Week extends Kronolith_FreeBusy_View {
             $t = new Horde_Date(array('month' => $this->_start->month,
                                       'mday' => $this->_start->mday + $i,
                                       'year' => $this->_start->year));
-            $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'day\',' . $t->dateString() . ');') . $t->strftime($date_format) . '</a>';
+            $day_label = Horde::link('#', '', '', '', 'return switchDateView(\'Day\',' . $t->dateString() . ');') . $t->strftime($date_format) . '</a>';
             $hours_html .= sprintf('<th colspan="%d" width="%s%%">%s</th>',
                                    $span, $dayWidth, $day_label);
         }