+2004-06-16 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * Common/zidestoreui.css: new style for button_auto.
+
+ * Scheduler/OGoCalView.[hm]: API for completing hrefs with necessary
+ query parts.
+
+ * Scheduler/OGoCalWeekView.m: bugfix for startDate.
+
+ * Scheduler/product.plist: added still missing views -> point to
+ weekoverview for the time being.
+
2004-06-15 Marcus Mueller <znek@mulle-kybernetik.com>
* Common/UIxTabView.m: removed class from <a> tag, removed rendering
/* buttons */
+.button_auto_env {
+ height: 16px;
+ text-align: center;
+ vertical-align: middle;
+ padding: 0px 0px 0px 0px;
+ margin: 0px 0px 0px 0px;
+ overflow: hidden;
+}
+
+.button_auto_env a {
+ text-decoration: none;
+ color: #000000;
+}
+
+.button_auto_env a:hover {
+ text-decoration: underline;
+ color: #ff0000;
+}
+
.button_auto {
height: 20px;
border-style: outset;
border-color: #DDDDDD;
border-width: 2px;
color: #000000;
-// background-color: #FFFFFF;
+ background-color: #e8e8e0;
font-size: 8pt;
font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
letter-spacing: 0pt;
overflow: hidden;
}
-.button_bezel {
- height: 16px;
- background-color: #e8e8e0;
- text-align: center;
- vertical-align: middle;
- padding: 0px;
- margin: 0px;
- border-top: 1px solid #c0c0c0;
- border-left: 1px solid #c0c0c0;
- border-bottom: 1px solid #333333;
- border-right: 1px solid #333333;
- overflow: hidden;
-}
-
-.button_bezel_inner {
- font-size: 8pt;
- font-family: Arial, Helvetica, Verdana, Geneva, Tahoma, sans-serif;
- letter-spacing: 0pt;
- padding-left: 2px;
- padding-right: 2px;
- padding-top: 0px;
- padding-bottom: 0px;
- margin: 0px;
-// border-top: 1px solid #ffffff;
-// border-bottom: 1px solid #8c8c8c;
- border-left: 1px solid #ffffff;
- border-right: 1px solid #8c8c8c;
-}
-
-.button_bezel a {
- text-decoration: none;
- color: #000000;
-}
-
-.button_bezel a:hover {
- text-decoration: underline;
- color: #ff0000;
-}
-
/* header */
NSCalendarDate *currentDate;
}
+- (NSString *)completedLinkForOverview:(NSString *)_overview;
+
@end
return self->currentDate;
}
+
+/* labels */
+
+
- (NSString *)dayLabel {
NSCalendarDate *date;
return [self->currentDate descriptionWithCalendarFormat:@"%Y"];
}
+
+/* hrefs */
+
+
+- (NSString *)completedLinkForOverview:(NSString *)_overview {
+ NSString *dateString;
+
+ dateString = [[[self context] request] formValueForKey:@"startDate"];
+ return [_overview stringByAppendingFormat:@"?startDate=%@", dateString];
+}
+
+- (NSString *)dayoverviewLink {
+ return [self completedLinkForOverview:@"dayoverview"];
+}
+
+- (NSString *)weekoverviewLink {
+ return [self completedLinkForOverview:@"weekoverview"];
+}
+
+- (NSString *)monthoverviewLink {
+ return [self completedLinkForOverview:@"monthoverview"];
+}
+
+- (NSString *)yearoverviewLink {
+ return [self completedLinkForOverview:@"yearoverview"];
+}
+
+
@end
const:selectedTabStyle="tab_selected"
const:bodyStyle="tabview_body"
>
- <uix:tab const:key="day" var:label="dayLabel" const:href="dayoverview">
+ <uix:tab const:key="day" var:label="dayLabel" var:href="dayoverviewLink">
<var:component-content />
</uix:tab>
- <uix:tab const:key="week" var:label="weekLabel" const:href="weekoverview">
+ <uix:tab const:key="week" var:label="weekLabel" var:href="weekoverviewLink">
<var:component-content />
</uix:tab>
- <uix:tab const:key="month" var:label="monthLabel" const:href="monthoverview">
+ <uix:tab const:key="month" var:label="monthLabel" var:href="monthoverviewLink">
<var:component-content />
</uix:tab>
- <uix:tab const:key="year" var:label="yearLabel" const:href="yearoverview">
+ <uix:tab const:key="year" var:label="yearLabel" var:href="yearoverviewLink">
<var:component-content />
</uix:tab>
</uix:tabview>
- (NSString *)appointmentViewURL;
- (NSString *)ownMethodName;
- (NSString *)dateNavigationURLWithNewStartDate:(NSCalendarDate *)_newDate;
+- (NSString *)completedLinkForView:(NSString *)_view;
/* backend */
return [NSCalendarDate dateWithString:_dateString calendarFormat:@"%Y%m%d"];
}
+- (NSString *)completedLinkForView:(NSString *)_view {
+ NSString *dateString;
+
+ dateString = [[[self context] request] formValueForKey:@"startDate"];
+ if(dateString)
+ return [_view stringByAppendingFormat:@"?startDate=%@", dateString];
+ return _view;
+}
+
+
@end /* OGoCalView */
<tr>
<td id="skywinbodycell" class="wincontent">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr bgcolor="#E0E0E0">
+ <tr bgcolor="#e8e8e0">
<td align="left" valign="middle" width="80%">other stuff</td><!-- 99% -->
<td align="right">
<table border="0">
<tr>
<td align="right" valign="middle">
<a var:href="prevWeekURL"><img rsrc:src="previous_week.gif" alt="previous week" border="0"/></a></td>
- <td align="right" valign="middle">
+ <td align="right" valign="middle" class="button_auto_env">
<a var:href="thisWeekURL" class="button_auto">this<var:entity const:name="nbsp"/>week</a>
</td>
<td align="right" valign="middle">
<table border='0' cellpadding='0' cellspacing='0'>
<tr>
<td><img rsrc:src="icon_apt_overview_inactive.gif" title="Overview" alt="Overview" border="0" valign="top" /></td>
- <td><a href="?mode=chart"><img rsrc:src="icon_apt_chart.gif" title="Chart" alt="Chart" border="0" valign="top" /></a></td>
- <td><a href="?mode=list"><img rsrc:src="icon_apt_list.gif" title="List" alt="List" border="0" valign="top" /></a></td>
+ <td><a href="weekchartview"><img rsrc:src="icon_apt_chart.gif" title="Chart" alt="Chart" border="0" valign="top" /></a></td>
+ <td><a href="weeklistview"><img rsrc:src="icon_apt_list.gif" title="List" alt="List" border="0" valign="top" /></a></td>
<td>
- <a href="?mode=column"><img rsrc:src="icon_apt_column_view.gif" title="Columns" alt="Columns" border="0" valign="top" /></a>
+ <a href="weekcolumnview"><img rsrc:src="icon_apt_column_view.gif" title="Columns" alt="Columns" border="0" valign="top" /></a>
</td>
</tr>
</table>
<td align="right" bgcolor="#e8e8e0">
<table border='0' cellpadding='0' cellspacing='1'>
<tr>
- <td class="button_bezel" nowrap="true" valign='middle' align='center'>
- <span class="button_bezel_inner"><a href="printweekoverview" target="SOGoPrintView">printview</a></span>
+ <td class="button_auto_env" nowrap="true" valign='middle' align='center'>
+ <a class="button_auto" var:href="weekprintviewLink" target="SOGoPrintView">printview</a>
</td>
- <td class="button_bezel" nowrap="true" valign='middle' align='center'>
- <span class="button_bezel_inner"><a href="proposal">proposal</a></span>
+ <td class="button_auto_env" nowrap="true" valign='middle' align='center'>
+ <a class="button_auto" var:href="proposalLink">proposal</a>
</td>
</tr>
</table>
dateString = [[[self context] request] formValueForKey:@"startDate"];
startDate = dateString
? [self dateForDateString:dateString]
- : [[NSCalendarDate date] mondayOfWeek];
+ : [NSCalendarDate date];
- return startDate;
+ return [startDate mondayOfWeek];
}
- (NSCalendarDate *)endDate {
return [self dateNavigationURLWithNewStartDate:newWeekDate];
}
+
+- (NSString *)weekprintviewLink {
+ return [self completedLinkForView:@"weekprintview"];
+}
+
+- (NSString *)proposalLink {
+ return [self completedLinkForView:@"proposal"];
+}
+
@end /* OGoCalWeekView */
protectedBy = "View";
pageName = "OGoCalWeekOverview";
};
+ "weekchartview" = {
+ protectedBy = "View";
+ pageName = "OGoCalWeekOverview";
+ };
+ "weeklistview" = {
+ protectedBy = "View";
+ pageName = "OGoCalWeekOverview";
+ };
+ "weekcolumnview" = {
+ protectedBy = "View";
+ pageName = "OGoCalWeekOverview";
+ };
+ "weekprintview" = {
+ protectedBy = "View";
+ pageName = "OGoCalWeekOverview";
+ };
"monthoverview" = {
protectedBy = "View";
pageName = "OGoCalMonthOverview";