source: waeup_cms/trunk/skins/WAEUP/member_listing.pt @ 10

Last change on this file since 10 was 10, checked in by Henrik Bettermann, 19 years ago
File size: 4.6 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5
6  <metal:block fill-slot="base">
7      <tal:block tal:define="dummy python:request.set('disable_border', 1)"
8                 tal:replace="nothing">
9      Disable the tabs
10      </tal:block>
11  </metal:block>
12
13<body>
14 
15<div metal:fill-slot="main"
16     tal:define="is_manager python:test(here.portal_membership.checkPermission('Manage portal', here), 1, 0);">
17
18  <div
19       tal:define="results python:here.portal_membership.searchForMembers(request);
20                   Batch python:modules['Products.CMFPlone'].Batch;
21                   DateTime python:modules['DateTime'].DateTime;
22                   default_page_size python:1000;
23                   page_size default_page_size;page_size request/psize | page_size;
24                   b_size page_size; b_start python:0;b_start request/b_start | b_start;">
25
26    <h1 i18n:translate="member_list">Member list</h1>
27
28    <div tal:condition="results"
29          tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1)">
30
31        <br/><br/><br/>
32         <span i18n:translate="more_than_shown" tal:condition="python:page_size < len(results)">
33         Up to <span i18n:name="number" tal:content="page_size">666</span> members are summarized on each page.
34         If you want all members on one page, click <a href="" tal:attributes="href python: '?psize:int=999999'">
35                                            <strong><span tal:omit-tag="" i18n:translate="here_instead">here instead</span></strong>
36                                        </a>. <br/>
37         </span>
38
39        <!-- Navigation -->
40        <div metal:use-macro="here/batch_macros/macros/navigation" />
41
42        <table align='left' width=100%>
43        <tbody>
44
45          <metal:block tal:repeat="result batch">
46
47                <tr tal:define="id result/getUserName;
48                                author python:mtool.getMemberInfo(id);
49                                portrait python: mtool.getPersonalPortrait(id);
50                                home_base python:container.portal_membership.getHomeUrl(id, verifyPermission=1)">
51
52                  <td>
53                  <a href="#" tal:attributes="href portrait/absolute_url">
54                  <img src=""
55                     alt=""
56                     class="portraitPhoto"
57                     width="25"
58                     height="33"
59                     style="float: left; margin: 0em;"
60                     tal:attributes="src portrait/absolute_url" />
61                  </a>
62                  </td>
63
64                               
65                  <td>
66                   <span tal:condition="python: is_manager and home_base">
67                     <a href="#" tal:attributes="href string:${portal_url}/portal_memberdata/prefs_user_details?userid=${id}">
68                       <span tal:content="id">id</span>
69                     </a>
70                   </span>
71                   <span tal:condition="python: is_manager and not home_base">
72                     <span tal:content="id">id</span>
73                   </span>
74                  </td>   
75                                                 
76                  <td>
77                   <span tal:condition="python: author['fullname']">
78                     <a href="#" tal:attributes="href string:${portal_url}/author/${id}">
79                       <span tal:content="python: author['fullname']">name</span>
80                     </a>
81                   </span>
82                   <span tal:condition="python: not author['fullname']">
83                     XXXXX
84                   </span>
85                  </td>
86
87                  <td>
88                   <span tal:condition="python: author['location']">
89                     <span tal:content="python: author['location']">location</span>
90                   </span>
91                   <span tal:condition="python: not author['location']">
92                     XXXXX
93                   </span>
94                  </td>                 
95                 
96                  <td>
97                    <span tal:condition="result/email" tal:content="structure python: result.spamProtect(result.email)" />
98                  </td>
99
100               </tr>
101
102          </metal:block>
103
104        </tbody>
105        </table>
106
107        <br/>
108
109        <!-- Navigation -->
110        <div metal:use-macro="here/batch_macros/macros/navigation" />
111
112    </div>
113
114    <div tal:condition="not: results">
115        <p><strong i18n:translate="description_no_results_found">No results were found.</strong></p>
116    </div>
117
118 </div>
119
120</div>
121</body>
122</html>
Note: See TracBrowser for help on using the repository browser.