AllDocs
Modifié par XWikiGuest le 2009/09/05 11:53
Documents on this Wiki
Chargement...
|
<script type="text/javascript"> //<![CDATA[ function displayAllDocs(row, i, table) { var inaccessibleDocs = false; if(row.acclev == true) { var a = new Element('a', {'href' : row.url}).update(row.page); var page = new Element('td', {'class' : 'pagename'}).update(a); var tr = new Element('tr', {'class' : (i % 2 == 0) ? 'even' : 'odd'} ).update(page); var spaceurl = new Element('a', {'href': row.spaceurl}).update(row.space); var space = new Element('td').update(spaceurl); tr.appendChild(space); if (row.virtual) { var wikiurl = new Element('a', {'href' : row.wikiurl}).update(row.wiki); var wiki = new Element('td').update(wikiurl); tr.appendChild(wiki); } var date = new Element('td').update(row.date); tr.appendChild(date); if(row.authorpage) { var authorpage = new Element('a', {'href' : row.authorpage}).update(row.author); var author = new Element('td').update(authorpage); } else { var author = new Element('td').update(row.author); } tr.appendChild(author); var copy = new Element('a', {'href' : row.copyurl}).update("{{html clean="false"}}Copier{{/html}}"); var del = new Element('a', {'href' : row.deleteurl}).update("{{html clean="false"}}Supprimer{{/html}}"); var rename = new Element('a', {'href' : row.renameurl}).update("{{html clean="false"}}Renommer{{/html}}"); var rights = new Element('a', {'href' : row.rightsurl}).update("{{html clean="false"}}Droits d'Accès{{/html}}"); if(row.hasadmin) { var actions = new Element('td'); actions.appendChild(copy); actions.appendChild(new Element('span').update("-")); actions.appendChild(del); actions.appendChild(new Element('span').update("-")); actions.appendChild(rename); actions.appendChild(new Element('span').update("-")); actions.appendChild(rights); tr.appendChild(actions); } return tr; } else { var tr = new Element('tr', {'class' : (i % 2 == 0) ? 'even' : 'odd'} ); var page = row.fullname; var dp = page.indexOf(':'); var p = page.indexOf('.'); if(dp > 0) { var space = page.substring(dp + 1, p); } else { var space = page.substring(0, p); } var name = page.substring(p + 1); var td1 = new Element('td', {'class' : 'pagename'}).update(name + "*"); var td2 = new Element('td').update(space); var td3 = new Element('td').update(" "); var td4 = new Element('td').update(" "); tr.appendChild(td1); tr.appendChild(td2); tr.appendChild(td3); tr.appendChild(td4); $('inaccessibleDocsMessage').removeClassName('hidden'); return tr; } } var ta = new ASSTable("/xwiki/bin/view/XWiki/Tableresults?xpage=plain", 15, "display1", "scrollbar1", "alldocstable", displayAllDocs, true); //]]> </script>