General Actions:
Log-in
Wiki:
L3D's Wiki
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
AdminUsersSheet
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
Welcome to your wiki
»
XWiki Space
»
XWiki Preferences
»
AdminSheet
»
AdminUsersSheet
Wiki source code of
AdminUsersSheet
Last modified by
Administrator
on 2011/03/02 17:34
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
{{velocity}} ### Globally administrate the users in a wiki. #set($formname = "update") #set($saveaction = "save") ## ## inject needed JS and CSS files ## #set($ok = $xwiki.jsfx.use("js/xwiki/lightbox/lightbox.js", true)) #set($ok = $xwiki.jsfx.use("js/xwiki/usersandgroups/usersandgroups.js", true)) #set($ok = $xwiki.ssfx.use("js/xwiki/usersandgroups/usersandgroups.css", true)) #set($ok = $xwiki.jsfx.use("js/xwiki/table/livetable.js", true)) #set($ok = $xwiki.ssfx.use("js/xwiki/table/livetable.css", true)) #set($ok = $xwiki.ssx.use("XWiki.XWikiUserSheet")) #set($ok = $xwiki.jsx.use("XWiki.XWikiUserSheet")) ## ## url to get the users for displaying them in the ajax-based table ## #set($url = $doc.getURL('get', 'xpage=getusers')) #if($xcontext.database != "xwiki") #set($mainwk = false) #else #set($mainwk = true) #end {{html}} <div id="xwikieditcontent"> <table id="userstable" class="xwiki-livetable"> <tr> <td class="xwiki-livetable-pagination" colspan="2"> <span id="userstable-limits" class="xwiki-livetable-limits"></span> <span id="userstable-ajax-loader" class="xwiki-livetable-loader"><img src="$xwiki.getSkinFile('icons/ajax-loader.gif')" alt="$msg.get('xe.livetable.loading')" title="" />$msg.get("xe.livetable.loading")</span> <span class="pagination"> <span id="userstable-pagination-text" class="xwiki-livetable-pagination-text">$msg.get("xe.pagination.page")</span> <span id="userstable-pagination" class="xwiki-livetable-pagination-content" ></span> </span> </td> </tr> <tr> <td class="xwiki-livetable-display-container"> <table class="xwiki-livetable-display"> <thead class="xwiki-livetable-display-header"> <tr> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.users.username")</th> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.users.firstname")</th> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.users.lastname")</th> <th class="xwiki-livetable-display-header-text" scope="col">$msg.get("xe.admin.users.manage")</th> </tr> <tr id="userstable-filters" class="xwiki-livetable-display-filters"> <td class="xwiki-livetable-display-header-filter"><label for="name" class="hidden">$msg.get("xe.admin.users.filter.username")</label><input id="name" name="name" type="text" class="filter"/></td> <td class="xwiki-livetable-display-header-filter"><label for="first_name" class="hidden">$msg.get("xe.admin.users.filter.username")</label><input id="first_name" name="first_name" type="text" class="filter"/></td> <td class="xwiki-livetable-display-header-filter"><label for="last_name" class="hidden">$msg.get("xe.admin.users.filter.username")</label><input id="last_name" name="last_name" type="text" class="filter"/></td> <td class="xwiki-livetable-display-header-filter"> #if(!$mainwk) <select name="wiki" class="filter"> <option value="local" selected="selected">$msg.get("rightsmanager.local")</option> <option value="global">$msg.get("rightsmanager.global")</option> <option value="both">$msg.get("rightsmanager.both")</option> </select> #else <input name="wiki" type="hidden" value="local" /> #end </td> </tr> </thead> <tbody id="userstable-display" class="xwiki-livetable-display-body"> <tr> <td colspan="4"> </td> </tr> </tbody> </table> </td> </tr> <tr><td colspan="3" id="tdAddNewUserOrGroup"> <span class="buttonwrapper"><a href="#" id="addNewUser" class="addNewUserOrGroup">$msg.get("rightsmanager.addnewuser")</a></span> </td></tr> </table> <script type="text/javascript"> // <![CDATA[ (function() { var startup = function() { var ta = new XWiki.widgets.LiveTable("$url", "userstable", displayUsers); #set($registerurl = $doc.getURL('view', 'xpage=registerinline')) #set($saveurl = $doc.getURL('register', 'xpage=registerinline')) #set($redirectuserurl = $xwiki.getDocument('XWiki.XWikiPreferences').getURL('admin', "editor=${editor}§ion=Users")) Event.observe($('addNewUser'), "click", makeAddHandler("$registerurl", "$saveurl", "$redirectuserurl")); } if ((typeof(XWiki) != 'undefined') && (typeof(XWiki.widgets) != 'undefined') && (typeof(XWiki.widgets.LiveTable) != 'undefined')) { startup(); } else { document.observe('xwiki:dom:loading', startup); } })(); // ]]> </script> </div> ## end of xwikieditcontent {{/html}} {{/velocity}}
Quick Links
L3D Calendar
Wiki Dashboard
Document Index
Blog
Sandbox