General Actions:
Log-in
Wiki:
CC09
▼
:
Document Index
»
Space:
Main
▼
:
Document Index
»
Page:
Users
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
List of Participants on the XWiki
Wiki source code of
List of Participants on the XWiki
Last modified by
Holger Dick
on 2009/10/13 09:36
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Hide line numbers
1: 2: #set($group="XWiki.XWikiAllGroup") 3: <table class="stats" cellspacing="0" cellpadding="0"> 4: <thead> 5: <tr> 6: <th>Name</th> 7: <th>Photo</th> 8: </tr> 9: </thead> 10: <tbody> 11: 12: #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='XWiki.XWikiUsers'") 13: 14: #foreach($item in $xwiki.searchDocuments($sql)) 15: #set($userName = $xwiki.getUserName($item)) 16: #set($city = "") 17: #set($country = "") 18: 19: 20: #if($userName && $item!= "XWiki.Admin") 21: #set($user2 = $xwiki.getUser($item)) 22: 23: #if($user2.isUserInGroup($group)) 24: #set($size=20) 25: #set($picsize=80) 26: <tr> 27: #set($userdoc = $xwiki.getDocument("${item}")) 28: #set($userobj = $userdoc.getObject("XWiki.XWikiUsers")) 29: #set($city = $userobj.getProperty("city").getValue()) 30: #set($country = $userobj.getProperty("country").getValue()) 31: #if($city) 32: #if($country) 33: #set($city = "$city, $country") 34: #end 35: #else 36: #if($country) 37: #set($city = "$country") 38: #else 39: #set($city = "") 40: #end 41: #end 42: 43: <td><p style="font-size:${size}pt">$userName</p><p style="font-size:14pt">$city</p></td> 44: $userdoc.use("XWiki.XWikiUsers") 45: 46: <td> 47: #if($userdoc.attachmentList.size()>0) 48: #set($attach = $userdoc.attachmentList.get(0)) 49: <img src="$userdoc.getAttachmentURL($attach.filename,"download", "width=$picsize")" width="$picsize"/> 50: #end 51: </td> 52: </tr> 53: #end 54: #end 55: #end 56: </tbody> 57: </table>
Quick Links
Wiki Dashboard
Document Index
Blog
Sandbox
My Recent Modifications
recentComments