]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Scheduler/UIxCalMonthOverview.wox
more code for day overview and the usual fixes
[scalable-opengroupware.org] / SOGo / UI / Scheduler / UIxCalMonthOverview.wox
1 <?xml version="1.0" standalone="yes"?>
2 <var:component xmlns="http://www.w3.org/1999/xhtml"
3                xmlns:var="http://www.skyrix.com/od/binding"
4                xmlns:const="http://www.skyrix.com/od/constant"
5                xmlns:rsrc="OGo:url"
6                xmlns:label="OGo:label"
7                className="UIxPageFrame"
8                title="name"
9 >
10   <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5" width="100%">
11     <tr>
12       <td class="wintitle">
13         <table cellpadding="0" cellspacing="0" width="100%">
14           <tr>
15             <td width="5"/>
16             <td class="wintitle">
17               <var:component className="UIxCalDateLabel"
18                              startDate="startDate"
19                              endDate="endDate"
20                              const:selection="month"
21               />
22             </td>
23             <td width="36" align="right" valign="center">
24               <var:component className="UIxWinClose"/>
25             </td>
26           </tr>
27         </table>
28       </td>
29     </tr>
30     <tr>
31       <td id="skywinbodycell" class="wincontent">
32         <table border="0" cellpadding="0" cellspacing="0" width="100%">
33           <tr bgcolor="#e8e8e0">
34             <td align="left" valign="middle" width="80%">TODO: controls</td><!-- 99% -->
35             <td align="right">
36               <var:component className="UIxCalBackForthNavView"
37                              methodName="ownMethodName"
38                              prevQueryParameters="prevMonthQueryParameters"
39                              currentQueryParameters="todayQueryParameters"
40                              nextQueryParameters="nextMonthQueryParameters"
41                              label:label="this month"
42               />
43             </td>
44           </tr>
45         </table>
46       </td>
47     </tr>
48     <tr>
49       <td id="skywinbodycell" class="wincontent">
50         <table border="0" width="100%" cellpadding="0" cellspacing="0">
51           <tr>
52             <td colspan="2">
53               <var:component className="UIxCalSelectTab"
54                              const:selection="month"
55                              currentDate="selectedDate"
56               >
57                 <table border="0" cellpadding="4" width="100%" cellspacing="2">
58                   <tr>
59                     <td align="right" bgcolor="#e8e8e0">
60                       <table border="0" cellpadding="0" cellspacing="1">
61                         <tr>
62                           <td class="button_auto_env" nowrap="true" valign="middle" align="center">
63                             <a class="button_auto"
64                                href="monthprintview"
65                                var:queryDictionary="queryParameters"
66                                target="SOGoPrintView"
67                             ><var:string label:value="printview"/></a>
68                           </td>
69                           <td class="button_auto_env" nowrap="true" valign="middle" align="center">
70                             <a class="button_auto"
71                                href="proposal"
72                                var:queryDictionary="queryParameters"
73                             ><var:string label:value="proposal"/></a>
74                           </td>
75                         </tr>
76                       </table>
77                     </td>
78                   </tr>
79                 </table>
80                 <var:month-overview list="appointments"
81                                     item="appointment"
82                                     currentDay="currentDay"
83                                     index="dayIndex"
84                                     year="year"
85                                     month="month"
86                                     const:startDateKey="startDate"
87                                     const:endDateKey="endDate"
88                                     const:class="monthoverview"
89                                     contentStyle="contentStyle"
90                                     const:width="100%"
91                 >
92                   <var:month-info>
93                     <var:if condition="hasHolidayInfo">
94                       <var:string value="holidayInfo" const:class="monthoverview_holidayinfo"/>
95                     </var:if>
96                     <var:foreach list="allDayApts" item="appointment">
97                       <a var:href="appointmentViewURL"
98                       ><var:string value="shortTextForApt"/></a>
99                       <br />
100                     </var:foreach>
101                   </var:month-info>
102                   <var:month-label const:orientation="top" dayOfWeek="dayOfWeek" const:class="monthoverview_title">
103                     <var:string value="localizedDayOfWeekName"/>
104                   </var:month-label>
105                   <var:month-label const:orientation="left" weekOfYear="weekOfYear" class="weekStyle">
106                     <a href="weekoverview"
107                        var:queryDictionary="currentWeekQueryParameters"
108                     ><var:string value="weekOfYear"/></a>
109                   </var:month-label>
110                   <var:month-title class="contentStyle">
111                     <span class="monthoverview_day">
112                       <a href="dayoverview"
113                          var:queryDictionary="currentDayQueryParameters"
114                       ><var:string value="currentDay.dayOfMonth"/></a>
115                     </span>
116                     <br/>
117                     <span class="monthoverview_day_new">
118                       <a href="new"
119                          var:queryDictionary="currentDayQueryParameters"
120                       >[<var:string label:value="new"/>]</a>
121                     </span>
122                   </var:month-title>
123                   <var:month>
124                     <a var:href="appointmentViewURL"
125                        class="monthoverview_content_link"
126                        var:title="shortTextForApt"
127                        var:queryDictionary="currentDayQueryParameters"
128                     ><var:string value="shortTitleForApt"/></a>
129                     <br />
130                   </var:month>
131                 </var:month-overview>
132               </var:component>
133             </td>
134           </tr>
135           <tr bgcolor="#F5F5E9">
136             <td align="left" width="10">
137               <var:entity const:name="nbsp"/>
138             </td>
139             <td align="right">
140               <img border="0"
141                    alt=""
142                    src="/sogod.woa/so/ControlPanel/Products/CommonUI/Resources/corner_right.gif"
143               />
144             </td>
145           </tr>
146           <tr>
147             <td colspan="2" bgcolor="#F5F5E9">
148               <table border="0" width="100%" cellpadding="10" cellspacing="0">
149                 <tr/>
150               </table>
151             </td>
152           </tr>
153         </table>
154       </td>
155     </tr>
156   </table>
157   <!--
158   <hr />
159   SOGo Server - <var:string value="name"/>
160   <br />
161   Client: <var:string value="clientObject"/>
162   <br />
163   Appointments: #<var:string value="appointments.count"/>
164   from <var:string value="startDate" />
165   to   <var:string value="endDate" />
166   <br />
167
168
169   <hr />
170
171   Appointments: 
172   <var:component className="UIxAptTableView" appointments="appointments"/>
173   -->
174 <!-- pre><var:string value="appointments" const:insertBR="YES"/></pre -->
175 </var:component>