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
Hide line numbers
1: {{velocity filter="indent"}} 2: #set ($showattachments = "no") 3: #set ($showcomments = "no") 4: #set ($showhistory = "no") 5: #set ($showinformation = "no") 6: {{html wiki="false" clean="true"}} 7: <style type="text/css"> 8: #includeTopic('BBCode.Skin') 9: </style> 10: 11: <div class="bbbigbox"> 12: 13: <h1><span class="bbbigtitle"> $msg.bb_administration </span></h1> 14: <div class="admin-welcome"> 15: $msg.bb_welcomeadmin 16: </div> 17: 18: #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") 19: 20: #set($bbs = $xwiki.searchDocuments($sql)) 21: 22: <div class="forumdatatext"> $msg.bb_currently $bbs.size() $msg.bb_bbsize </div><br/> 23: 24: #if ($xwiki.hasAdminRights() == 'true') 25: <div id="add-category"> 26: <a id="add-link" onclick="$('add-form').toggle();" href="#">$msg.get("bb_addnewbb")...</a> 27: </div> 28: <div id="add-form" style="display:none"> 29: <form action="" id="newdoc" method="post"> 30: <input type="hidden" name="template" value="BBCode.BBClassTemplate"/> 31: <input type="hidden" name="sheet" value="1"/> 32: <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")"/> 33: <input type="hidden" name="nicebbtitle" value=""/> 34: <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(); }'/> 35: <div id="bb-info"> $msg.get("bb_infocreatenewbb") </div> 36: </form> 37: </div> 38: #end 39: <table id="bblist" class="grid sortable doOddEven bbtable"> 40: <tr class="sortHeader"> 41: <th>$msg.bb_bb</th> 42: <th>$msg.bb_creationdate</th> 43: <th>$msg.bb_creator</th> 44: #if($xwiki.hasAdminRights() == 'true') <th>$msg.bb_actions</th> #end 45: </tr> 46: 47: #foreach ($item in $bbs) 48: #set ($bbdoc = $xwiki.getDocument($item)) 49: 50: <tr> 51: <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> 52: <td> $xwiki.formatDate($bbdoc.getCreationDate(), 'dd/MM/yyyy - HH:mm:ss') </td> 53: <td> $xwiki.getUserName($bbdoc.getCreator(), true) </td> 54: #if($xwiki.hasAdminRights() == 'true') <td> <a class="red" href="$bbdoc.getURL('view', 'deletebb=1')">$msg.bb_deletebb</a> </td> #end 55: </tr> 56: #end 57: </table> 58: 59: </div> 60: {{/html}} 61: {{/velocity}}
Search
Search query
Quick Links
DSSF 2008
DCNM 2009
HCCF 2010
Document Index
Sandbox
My Recent Modifications
ASSIGNMENTNAME