diff --git a/UI/Scheduler/UIxCalDayTable.m b/UI/Scheduler/UIxCalDayTable.m index de1f9ab98..08c3dceac 100644 --- a/UI/Scheduler/UIxCalDayTable.m +++ b/UI/Scheduler/UIxCalDayTable.m @@ -187,7 +187,6 @@ { if (!calendarsToDisplay) { - int max=0, i; NSArray *folders; SOGoAppointmentFolders *co; SOGoAppointmentFolder *folder; @@ -298,23 +297,34 @@ - (NSString *) labelForMonth { NSCalendarDate *nextDay; + NSString *calendarFormat; BOOL isLastOrFirstDay; isLastOrFirstDay = NO; - if ([currentTableDay dayOfMonth] == 1) + calendarFormat = @"%b"; + + if ([currentView isEqualToString:@"dayview"]) { isLastOrFirstDay = YES; + calendarFormat = @"%B"; } - else if ([currentTableDay dayOfMonth] > 27) + else { - nextDay = [currentTableDay dateByAddingYears: 0 - months: 0 - days: 1]; - if ([nextDay dayOfMonth] == 1) - isLastOrFirstDay = YES; + if ([currentTableDay dayOfMonth] == 1) + { + isLastOrFirstDay = YES; + } + else if ([currentTableDay dayOfMonth] > 27) + { + nextDay = [currentTableDay dateByAddingYears: 0 + months: 0 + days: 1]; + if ([nextDay dayOfMonth] == 1) + isLastOrFirstDay = YES; + } } - return isLastOrFirstDay? [currentTableDay descriptionWithCalendarFormat: @"%b" locale: locale] : nil; + return isLastOrFirstDay? [currentTableDay descriptionWithCalendarFormat: calendarFormat locale: locale] : nil; } - (NSString *) labelForDate @@ -422,23 +432,23 @@ numberOfDays]; } -- (NSString *) daysViewClasses -{ - NSString *daysView; +// - (NSString *) daysViewClasses +// { +// NSString *daysView; - if ([currentView isEqualToString:@"multicolumndayview"]) - daysView = @"daysView daysViewForMultipleDays"; +// if ([currentView isEqualToString:@"multicolumndayview"]) +// daysView = @"daysView daysViewForMultipleDays"; - else - daysView = [NSString stringWithFormat: @"daysView daysViewFor%dDays", numberOfDays]; +// else +// daysView = [NSString stringWithFormat: @"daysView daysViewFor%dDays", numberOfDays]; - return daysView; -} +// return daysView; +//} -- (NSString *) daysViewHeaderClasses -{ - return [NSString stringWithFormat: @"%@ daysHeader", [self daysViewClasses]]; -} +// - (NSString *) daysViewHeaderClasses +// { +// return [NSString stringWithFormat: @"%@ daysHeader", [self daysViewClasses]]; +// } - (NSString *) dayClasses { diff --git a/UI/Templates/SchedulerUI/UIxCalDayTable.wox b/UI/Templates/SchedulerUI/UIxCalDayTable.wox index 34f2a6e54..47d0ace4d 100644 --- a/UI/Templates/SchedulerUI/UIxCalDayTable.wox +++ b/UI/Templates/SchedulerUI/UIxCalDayTable.wox @@ -1,14 +1,14 @@ -
+ xmlns="http://www.w3.org/1999/xhtml" + xmlns:var="http://www.skyrix.com/od/binding" + xmlns:const="http://www.skyrix.com/od/constant" + xmlns:rsrc="OGo:url" + xmlns:label="OGo:label"> + - +
@@ -39,89 +39,110 @@
- +
-
- -
+ + +
+ +
+
+ +
+
+
- -
+ + + +
+
+ +
+
+
-
-
-
-
- - -
- -
-
-
- -
- -
- -
-
-
- - -
-
- - - - -
-
- -
- - - -
-
-
-
-
-
-
-
- + +
+
-
-
- -
- - - -
-
- -
-
+
+
- +
-
+ + + +
+ + +
+ +
+ +
+
+
+ + +
+
+ + + + +
+
+ +
+ + + +
+
+
+
+
+
+
+
+ + + +
+
+ +
+ + + +
+
+ +
+
+
+
+
+
+
+
+
diff --git a/UI/Templates/SchedulerUI/UIxCalDayView.wox b/UI/Templates/SchedulerUI/UIxCalDayView.wox index 111b04294..02f52d6ce 100644 --- a/UI/Templates/SchedulerUI/UIxCalDayView.wox +++ b/UI/Templates/SchedulerUI/UIxCalDayView.wox @@ -1,47 +1,40 @@ - + + - - -
-
- chevron_left - - chevron_right -
-
-
- -
-
-
+ +
+ chevron_left +
+ chevron_right +
+ today + view_week + view_module +
+
+ + +
diff --git a/UI/Templates/SchedulerUI/UIxCalMainView.wox b/UI/Templates/SchedulerUI/UIxCalMainView.wox index 0a02c0214..b98b93578 100644 --- a/UI/Templates/SchedulerUI/UIxCalMainView.wox +++ b/UI/Templates/SchedulerUI/UIxCalMainView.wox @@ -366,8 +366,10 @@
--> -
- +
+
+ +
- +
arrow_back @@ -582,28 +584,7 @@
- - -
- today -
- view_day - view_week - view_module -
-
-
- - - + @@ -674,8 +655,11 @@ add -
-
+
+
+ +
+
diff --git a/UI/Templates/SchedulerUI/UIxCalMonthView.wox b/UI/Templates/SchedulerUI/UIxCalMonthView.wox index 05ec682a2..3a4521916 100644 --- a/UI/Templates/SchedulerUI/UIxCalMonthView.wox +++ b/UI/Templates/SchedulerUI/UIxCalMonthView.wox @@ -1,71 +1,75 @@ - + -