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