<head>
<style type="text/css">
</style>
</head>
<table id="tab" cellspacing="1" cellpadding="1" style="font-weight:bold" border="1" class='selectedItems' bgcolor="white">
<thead>
<tr>
<th>Type</th>
<th><a href="#" onclick="sortTable(this,1); return false;">Nom</a></th>
<th><a href="#" onclick="sortTable(this,2); return false;">Date Diffusion</a></th>
</tr>
</thead>
<tbody>
<#list space.children as child>
<tr><td><a href="/alfresco${child.url}" target="new"><img src="/alfresco${child.icon32}" border=0></a></td>
<#if child.isDocument>
<td>${child.properties.name}</td>
<#if child.properties["SQ:dateDiffusion"]?exists>
<td>${child.properties["SQ:dateDiffusion"]?date}</td>
</tr>
<#else>
<td>01 sep. 2009</td>
</tr>
</#if>
</#if>
<#if child.isContainer>
<td>${child.properties.name}</td>
<td>.</td>
</#if>
</#list>
</tbody>
</table>
<script type="text/javascript">
function sortTable (tb, n) {
var iter = 0;
while (!tb.tagName || tb.tagName.toLowerCase() != "table") {
if (!tb.parentNode) return;
tb = tb.parentNode;
}
if (tb.tBodies && tb.tBodies[0]) tb = tb.tBodies[0];
/* Tri par selection */
var reg = /^\d+(\.\d+)?$/g;
var index = 0, value = null, minvalue = null;
for (var i= tb.rows.length -1; i >= 0; i -= 1) {
minvalue = value = null;
index = -1;
for (var j=i; j >= 0; j -= 1) {
value = tb.rows[j].cells[n].firstChild.nodeValue;
if (!isNaN(value)) value = parseFloat(value);
if (minvalue == null || value < minvalue) { index = j; minvalue = value; }
}
if (index != -1) {
var row = tb.rows[index];
if (row) {
tb.removeChild(row);
tb.appendChild(row);
}
}
}
}
</script>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.