]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Mailer/UIxMailListView.wox
implemented flag filtering (OGo bug #1210)
[scalable-opengroupware.org] / SOGo / UI / Mailer / UIxMailListView.wox
1 <?xml version='1.0' standalone='yes'?>
2 <var:component
3   xmlns="http://www.w3.org/1999/xhtml"
4   xmlns:var="http://www.skyrix.com/od/binding"
5   xmlns:const="http://www.skyrix.com/od/constant"
6   xmlns:uix="OGo:uix"
7   xmlns:rsrc="OGo:url"
8   xmlns:label="OGo:label"
9   className="UIxMailMainFrame"
10   title="panelTitle"
11 >
12   <var:component className="UIxMailFilterPanel" qualifier="qualifier" />
13
14   <div class="embedwhite_out">
15     <div class="embedwhite_in">
16       <script language="JavaScript">
17         <var:string value="jsCode" const:escapeHTML="NO" />
18       </script>
19       <table border="0" width="100%" cellspacing="0" cellpadding="1">
20         <tr class="tableview">
21           <td class="tbtv_headercell" width="17">
22             <var:entity const:name="nbsp" />
23           </td>
24           <td class="tbtv_headercell" width="50%">
25             <var:component className="UIxMailSortableTableHeader"
26                            label:label="Subject"
27                            const:sortKey="subject"
28                            const:href="view"
29                            var:queryDictionary="queryParameters"
30             />
31           </td>
32           <td class="tbtv_headercell">
33             <var:if condition="showToAddress" const:negate="YES">
34               <var:component className="UIxMailSortableTableHeader"
35                              label:label="From"
36                              const:sortKey="from"
37                              const:href="view"
38                              var:queryDictionary="queryParameters"
39               />
40             </var:if>
41             <var:if condition="showToAddress">
42               <var:component className="UIxMailSortableTableHeader"
43                              label:label="To"
44                              const:sortKey="to"
45                              const:href="view"
46                              var:queryDictionary="queryParameters"
47               />
48             </var:if>
49           </td>
50           <td class="tbtv_headercell" width="17">
51             <img rsrc:src="title_read_14x14.png" width="14" height="14" />
52           </td>
53           <td class="tbtv_headercell" width="17">
54             <img rsrc:src="title_attachment_14x14.png" width="14" height="14" />
55           </td>
56           <td class="tbtv_headercell">
57             <var:component className="UIxMailSortableTableHeader"
58                            label:label="Date"
59                            const:sortKey="date"
60                            const:href="view"
61                            var:queryDictionary="queryParameters"
62                            const:isDefault="YES"
63             />
64           </td>
65         </tr>
66         <tr class="tableview">
67           <td colspan="6" class="tbtv_navcell" align="right">
68             <var:if condition="showsAllMessages">
69               <var:string value="sortedUIDs.count" />
70               <var:string label:value="messages" />
71             </var:if>
72             
73             <var:if condition="showsAllMessages" const:negate="YES">
74               <var:if condition="hasPrevious">
75                 <a href="view"
76                    _idx="1"
77                    var:queryDictionary="queryParameters"
78                 ><var:string label:value="first"/></a> |
79                 <a href="view"
80                    var:_idx="prevFirstMessageNumber"
81                    var:queryDictionary="queryParameters"
82                 ><var:string label:value="previous"/></a> |
83               </var:if>
84   
85               <var:string value="firstMessageNumber"/>
86               <var:string label:value="msgnumber_to" />
87               <var:string value="lastMessageNumber"/>
88               <var:string label:value="msgnumber_of" />
89               <var:string value="sortedUIDs.count" />
90   
91               <var:if condition="hasNext">
92                 | <a href="view"
93                      var:_idx="nextFirstMessageNumber"
94                      var:queryDictionary="queryParameters"
95                   ><var:string label:value="next" /></a>
96               </var:if>
97             </var:if>
98           </td>
99         </tr>
100         
101         <var:foreach list="messages" item="message">
102           <tr class="tableview" var:id="msgRowID">
103             <td>
104 <!-- enable once we have buttons and functionality to actually move sth #1211
105               <input type="checkbox"
106                      var:value="msgRowID"
107                      const:checked="NO"
108                      const:name="selectedRows"
109                      onclick="javascript:toggleRowSelectionStatus(this);"
110               />
111 -->
112             </td>
113             <td var:class="messageCellStyleClass">
114               <div var:class="messageSubjectStyleClass" var:id="msgDivID">
115                 <!-- Note: var:href="messageViewURL" (done by JS),
116                            var:target="messageViewTarget" -->
117                 <a href="#" var:onclick="clickedMsgJS">
118                   <var:string value="message.envelope.subject"
119                               formatter="context.mailSubjectFormatter"/>
120                 </a>
121               </div>
122             </td>
123             <td var:class="messageCellStyleClass">
124               <!-- TODO: show compose links -->
125               <!-- TODO: different color for internal vs external addrs -->
126               <var:if condition="showToAddress" const:negate="YES">
127                 <var:string value="message.envelope.from"
128                             formatter="context.mailEnvelopeAddressFormatter" />
129               </var:if>
130               <var:if condition="showToAddress">
131                 <var:string value="message.envelope.to"
132                             formatter="context.mailEnvelopeAddressFormatter" />
133               </var:if>
134             </td>
135             
136             <td>
137               <div class="mailer_readicon"
138                    var:style="msgIconReadVisibility"
139                    var:id="msgIconReadDivID">
140                 <a href="markMessageUnread" var:_uid="message.uid"
141                    label:title="Mark Unread"> </a>
142               </div>
143               <div class="mailer_unreadicon"  
144                    var:style="msgIconUnreadVisibility"
145                    var:id="msgIconUnreadDivID">
146                 <a href="markMessageRead" var:_uid="message.uid"
147                    label:title="Mark Read"> </a>
148               </div>
149             </td>
150             <td>
151               <var:if condition="hasMessageAttachment">
152                 <img rsrc:src="title_attachment_14x14.png" 
153                      width="14" height="14" />
154               </var:if>
155             </td>
156             
157             <td var:class="messageCellStyleClass">
158               <span class="mailer_datefield">
159                 <var:string value="message.envelope.date" 
160                             formatter="context.mailDateFormatter"/>
161               </span>
162             </td>
163           </tr>
164         </var:foreach>
165
166         <tr class="tableview">
167           <td colspan="6" class="tbtv_actcell">
168 <!-- TODO: fix used tree, treeNavigationNodes is the _wrong_ choice
169             <var:component className="UIxMailMoveToPopUp"
170                            const:identifier="moveto"
171                            const:callback="moveTo"
172                            rootNodes="clientObject.treeNavigationNodes"
173             />
174 -->
175 <!-- enable once we have buttons and functionality to actually move sth #1211
176             <var:popup const:name="moveto" const:id="moveto"
177                        list="clientObject.mailAccountFolder.allFolderPathes"
178                        item="item" value="item" displayString="item" />
179 -->
180           </td>
181         </tr>
182       </table>
183       
184       <span id="selected_uids" style="visibility: hidden;">
185       </span>
186     </div>
187   </div>
188 </var:component>