TagCloud

Name
Member Events
Panel type
view
Category
Information
Description

Member Events

Content

#set($cookieName = "${context.user}_${panel}")
#set($EventsRssLink = $xwiki.getURL('Main.MembersEventsRss', 'view', 'xpage=rdf'))
#set($expanded = "expanded")
#set($expanded = $xwiki.getUserPreferenceFromCookie($cookieName))
#set($imgRss = $xwiki.getSkinFile("icons/black-rss-mini.png"))
#set ($specialClassAttribute = "")
#if ($paneldoc && $paneldoc != "")
  #set ($specialClassAttribute = $util.convertToAlphaNumeric($paneldoc.name))
#end
<div class="panel $expanded $specialClassAttribute">
<h5 class="xwikipaneltitle" onclick="if(eltHasClass(this.parentNode, 'expanded')) createCookie('$cookieName','collapsed', ''); else eraseCookie('$cookieName'); togglePanelVisibility(this.parentNode);">
<div style="text-align:center;font-size: 16px;margin:5px 0 2px 0"><span style="color:#ff6600;"><b>Member </b></span><span style="color:#0099cc;"><b>Events</b></span>
#if("$EventsRssLink"!="")
<a href="$EventsRssLink"><img src="$imgRss" title="OW2 Member Events RSS Feeds" alt="OW2 Member Events RSS Feeds"/></a>
#else
#end
</span></div>
</h5>
<div class="xwikipanelcontents">
#set($nbstart = $request.nbstart)
#set($category = "Members Events")
#set($nbitems = "3")
#set($daysMinus5 = $xwiki.jodatime.getDateTime().minusDays(30))
#set ($sql = ", BaseObject as obj, DBStringListProperty as prop join prop.list list, DateProperty eventdate where obj.name=doc.fullName and obj.className='XWiki.ArticleClass' and obj.name<>'XWiki.ArticleClassTemplate' and obj.id=prop.id.id and obj.id=eventdate.id.id and eventdate.value >= ? and prop.id.name='category'  and list='${category}' order by eventdate.value asc")
#set($inbitems = $xwiki.parseInt($nbitems))
#set($inbstart = $xwiki.parseInt($nbstart))
<ul class="encartAuto">
#foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart, [$daysMinus5.toDate()]))
 #set($bentrydoc = $xwiki.getDocument($item))
 #if($bentrydoc.fullName == $item)
  #set($bentryobj = $bentrydoc.getObject("XWiki.ArticleClass"))
<li>
<a href="$bentrydoc.getURL()">
<strong>
$xwiki.formatDate($bentryobj.getProperty('dateEvent').value, "MMMM dd")
</strong>
$bentrydoc.display("title","view", $bentryobj)
</a>
</li>
 #end
#end
</ul>
<div class="panel-link">
  [More ...> MembersEvents.WebHome]
</div>
#panelfooter()

Tags:
Created by doisneal on 2007/06/22 11:33
http://skins.ow2.org/skins/skinOW2/images/Featuredvideo.png
  • Yves de Montcheuil, Talend
http://skins.ow2.org/skins/skinOW2/images/watchallvideos.png

Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice