General Actions:
Log-in
Wiki:
Courses
▼
:
Document Index
»
Space:
BBCode
▼
:
Document Index
»
Page:
Admin
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Admin
Wiki source code of
Admin
Last modified by
Holger Dick
on 2010/08/20 15:07
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity filter="indent"}} #set ($showattachments = "no") #set ($showcomments = "no") #set ($showhistory = "no") #set ($showinformation = "no") {{html wiki="false" clean="true"}} <style type="text/css"> #includeTopic('BBCode.Skin') </style> <div class="bbbigbox"> <h1><span class="bbbigtitle"> $msg.bb_administration </span></h1> <div class="admin-welcome"> $msg.bb_welcomeadmin </div> #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and obj.className='BBCode.BBClass' and obj.name<>'BBCode.BBClassTemplate' order by doc.date desc") #set($bbs = $xwiki.searchDocuments($sql)) <div class="forumdatatext"> $msg.bb_currently $bbs.size() $msg.bb_bbsize </div><br/> #if ($xwiki.hasAdminRights() == 'true') <div id="add-category"> <a id="add-link" onclick="$('add-form').toggle();" href="#">$msg.get("bb_addnewbb")...</a> </div> <div id="add-form" style="display:none"> <form action="" id="newdoc" method="post"> <input type="hidden" name="template" value="BBCode.BBClassTemplate"/> <input type="hidden" name="sheet" value="1"/> <input type="text" onblur="if(this.value=='') this.value='$msg.get('bb_titleofbb')'" onfocus="if(this.value=='$msg.get('bb_titleofbb')') this.value=''" style="margin: auto;" name="bbtitle" value="$msg.get("bb_titleofbb")"/> <input type="hidden" name="nicebbtitle" value=""/> <input type="button" value="$msg.get("bb_addbb")" onclick='this.form.nicebbtitle.value = this.form.bbtitle.value; if (updateName(this.form.bbtitle)) {this.form.action="../../inline/" + this.form.bbtitle.value + "/"; this.form.submit(); }'/> <div id="bb-info"> $msg.get("bb_infocreatenewbb") </div> </form> </div> #end <table id="bblist" class="grid sortable doOddEven bbtable"> <tr class="sortHeader"> <th>$msg.bb_bb</th> <th>$msg.bb_creationdate</th> <th>$msg.bb_creator</th> #if($xwiki.hasAdminRights() == 'true') <th>$msg.bb_actions</th> #end </tr> #foreach ($item in $bbs) #set ($bbdoc = $xwiki.getDocument($item)) <tr> <td> <span class="bbtitle"> #if ($bbdoc.getValue('bbtitle') != "") <a href="$bbdoc.getURL('view')">$bbdoc.display('bbtitle')</a> #else <a href="$item">$item</a> #end </span> </td> <td> $xwiki.formatDate($bbdoc.getCreationDate(), 'dd/MM/yyyy - HH:mm:ss') </td> <td> $xwiki.getUserName($bbdoc.getCreator(), true) </td> #if($xwiki.hasAdminRights() == 'true') <td> <a class="red" href="$bbdoc.getURL('view', 'deletebb=1')">$msg.bb_deletebb</a> </td> #end </tr> #end </table> </div> {{/html}} {{/velocity}}
Search
Search query
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
My Recent Modifications
ASSIGNMENTNAME