General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
BBCode
▼
:
Document Index
»
Page:
TopicAClassSheet
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to L3D's XWiki for Courses
»
XWiki Space
»
Data types
»
TopicClass
»
TopicAClassSheet
Wiki source code of
TopicAClassSheet
Last modified by
Hal Eden
on 2010/09/06 14:35
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
## ## Disable footer ## #set ($docextras = []) ## ## Include style ## $xwiki.ssx.use("XWiki.XWikiUserSheet")## $xwiki.ssx.use('Main.Dashboard')## $xwiki.ssx.use("BBCode.Skin") $xwiki.jsx.use("BBCode.Skin") #if($request.parent && $request.parent!="") #set($parent=$request.parent) #else #set($parent=$doc.parent) #end <input type="hidden" name="parent" value="$parent" /> #set($class = $doc.getObject("BBCode.TopicClass").xWikiClass) <input type="hidden" name="title" value="" /> <input type="hidden" name="BBCode.PostClass_0_postauthor" value="$context.user" /> <div class="bbbigbox"> #if ($context.action == 'inline') ## ## Edit topic ## $msg.bb_entertopictitle<br /> $doc.display('topictitle')<br/> $msg.get("bb_entertopiccontent")<br/> $doc.display("postcontent") #set($newtopictitle = $request.nicetopictitle) #if($newtopictitle) #set($newtopictitle = $newtopictitle.replaceAll('"',"'")) <script type="text/javascript"> var nicetopictitle = "${newtopictitle}"; {pre} document.forms.inline["BBCode.TopicClass_0_topictitle"].value = nicetopictitle; document.forms.inline["title"].value = nicetopictitle; {/pre} </script> #end #if($doc.isNew() == 'false') #set($title = $doc.getValue('topictitle', $doc.getObject('BBCode.TopicClass'))) <script type="text/javascript"> var nicetopictitle = "${title}"; {pre} document.forms.inline["title"].value = nicetopictitle; {/pre} </script> #end #else ## ## Topic title ## #if("$parent" != "") #set($parentDoc = $xwiki.getDocument("$parent")) <span class="topic-category"> #if("$parentDoc.getDisplayTitle()" != "") $msg.get("bb_topiccategory") <a href="$parentDoc.getURL('view')">$parentDoc.getDisplayTitle()</a> #else $msg.get("bb_topiccategory") <a href="$parentDoc.getURL('view')">$parentDoc.name</a> #end </span> #end #set($username = $xwiki.getUserName($doc.fullName, false)) <h1>Wall of $username</h1> #set($postclass = $doc.getObjects('BBCode.PostClass')) <table class="topictable"> ## ## Loop over posts ## #foreach($item in $postclass) #set ($postauthor = $xwiki.getUserName($doc.display('postauthor', $item), true)) #if ($doc.getValue('postcontent', $item) != '') <tr class="#if($postindex % 2 == 0) evenpost #end"> <td id="posttd"> #set ($localpostauthor = $doc.display('postauthor', $item)) #set ($index = $localpostauthor.indexOf(":")) #set ($index = $index + 1) #set ($localpostauthor = $localpostauthor.substring($index)) <div class="postauthor">$postauthor</div> <div class="avatar"> <a href="$xwiki.getURL($localpostauthor)">#useravatar($localpostauthor)</a><br /> #end </div></td> <td id="posttd"> <div id="message$item.number"> <textarea id="quotecontent$item.number" style="display:none">$item.getProperty("postcontent").getValue()</textarea> <script type="text/javascript"> var quote$item.number = XWiki.bulletinboard.addQuote($("quotecontent$item.number").value, "$xwiki.getLocalUserName($doc.display('postauthor', $item), false)", "$doc.display('postdate', $item)"); </script> <span class="bbdatatext">Posted on: $doc.display('postdate', $item) - <a name=$velocityCount href="#$velocityCount"><img src="$xwiki.getSkinFile("icons/silk/link_go.gif")" title="Direct link to post #$velocityCount" /></a> - <a href="#" onclick="XWiki.bulletinboard.insertInReply(XWiki.bulletinboard.getQuote(quote$item.number)); XWiki.bulletinboard.jumpToReply(); return false;"><img src="$xwiki.getSkinFile("icons/silk/comment_add.gif")" title="Quote this message" /></a> #if(($context.user == $doc.display('postauthor', $item) || $xwiki.hasAdminRights() == 'true') && $velocityCount > 1) - <a href="$doc.getURL('objectremove', 'classname=BBCode.PostClass&classid=${item.number}&xredirect=${request.getRequestURL()}')"><img src="$xwiki.getSkinFile("icons/silk/bin.gif")" title="$msg.bb_deletethismessage" /></a> #end </span> ##<hr size="1" /> <div class="postcontent"> $doc.display('postcontent', $item) </div></div> </td> </tr> #end <tr> <td> </td> <td> #if ($context.user == 'XWiki.XWikiGuest') <span class="bbdatatext"> Please log in to read and write on the wall </span> #else #set ($lastpostid = $postclass.size() + 1) <a id="reply"></a> <span class="bbsmalltitle"> <a name=postmessage href="#postmessage"> Write on the wall</a> </span> <form method="post" action="$doc.getURL("objectadd")" class="postreply"> <input type="hidden" name="xredirect" value="$doc.getURL()#$lastpostid" /> <input type="hidden" name="classname" value="BBCode.PostClass" /> <input type="hidden" name="BBCode.PostClass_postauthor" value="$context.user" /> <textarea rows="10" cols="65" id="BBCode.PostClass_postcontent" name="BBCode.PostClass_postcontent" /></textarea><br /> <input id="BBCode.PostClass_postbutton" type="submit" value="Post!" /> </form> #end </td> </tr> </table> #end </div>
Search
Search query
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
My Recent Modifications
ASSIGNMENTNAME