General Actions:
Log-in
Register
Wiki:
games
▼
:
Document Index
»
Space:
BBCode
▼
:
Document Index
»
Page:
Admin
Search
en
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
Administrator
on 2008/03/17 22:54
Content
·
Comments
(0)
·
Annotations
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#set ($showattachments = "no") #set ($showcomments = "no") <style type="text/css"> #includeTopic('BBCode.Skin') </style> <div class="bbbigbox"> <span class="bbbigtitle"> $msg.bb_administration </span> $msg.bb_welcomeadmin #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)) <span class="forumdatatext"> $msg.bb_currently $bbs.size() $msg.bb_bbsize </span> <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') != "") [$bbdoc.display('bbtitle')>$item] #else [$item] #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> #if ($xwiki.hasAdminRights() == 'true') <span class="bbbigtitle"> $msg.bb_addnewbb </span> $msg.bb_infocreatenewbb <form action="" id="newdoc" method="post"> <input type="hidden" name="template" value="BBCode.BBClassTemplate"/> <input type="hidden" name="sheet" value="1"/> $msg.bb_bb : <input type="text" name="bbtitle" value="$msg.bb_titleofbb"/> <input type="hidden" name="nicebbtitle" value=""/> <input type="button" value="$msg.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(); }'/> </form> #end </div>