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