01-28-2010 04:38 AM
<#assign datetimeformat="EEEE dd/MM/yyyy">
<html>
<head>
<STYLE TYPE="text/css">
a.rouge { color: red; }
table.ged
{
font-family:verdana;
font-size:12px;
}
td.ged
{
font-family:verdana;
font-size:12px;
padding-left:10px;
padding-top:3px;
padding-bottom:3px;
}
</STYLE>
</head>
<body BGCOLOR="E8EFF9">
<h3>Recherche du dossier ${args.nom}</h3>
<table class="ged" border=1 cellpadding=0 cellspacing=1 width=100%>
<#list resultset?sort_by(["properties","{http://www.bonifay.com/model/content/1.0}type"]) as model>
<tr>
<td bgcolor="#DFE6EE"><i><b>${model.properties["{http://www.bonifay.com/model/content/1.0}type']} </b></i><a href="http://192.168.10.47:8080/alfresco/service/bonifay/delete?nom=${model.name}?guest=true" class="rouge">Supprimer</a></td>
</tr>
<tr>
<th></th><th bgcolor="#DFE6EE">Version</th><th bgcolor="#DFE6EE">Date de modification</th><th bgcolor="#DFE6EE">Commentaire</th><th bgcolor="#DFE6EE">Date d'effet</th><th bgcolor="#DFE6EE">Date d'échéance</th>
</tr>
<#assign first="true">
<#list model.versionHistory?sort_by("versionLabel")?reverse as record>
<#if first="true">
<#assign first="false">
<tr>
<td class="ged" ></td>
<td class="ged" ><a href="${url.serviceContext}/api/node/content/${model.nodeRef.storeRef.protocol}/${model.nodeRef.storeRef.identifier}/${model.nodeRef.id}/${model.name?url}?guest=true">${record.versionLabel}</a></td>
<td class="ged" >${record.createdDate?string(datetimeformat)}</td>
<td class="ged" ><#if record.description?exists>${record.description}<#else>Version initiale</#if></td>
<td class="ged" >${model.properties["{http://www.bonifay.com/model/content/1.0}emis']?string(datetimeformat)}</td>
<td class="ged" >${model.properties["{http://www.bonifay.com/model/content/1.0}validite']?string(datetimeformat)}</td>
</tr>
<#else>
<tr>
<td class="ged" ></td>
<td class="ged" ><a href="/alfresco${record.url}?guest=true">${record.versionLabel}</a></td>
<td class="ged" >${record.createdDate?string(datetimeformat)}</td>
<td class="ged" ><#if record.description?exists>${record.description}<#else>Version initiale</#if>
<td class="ged" >${record.properties["{http://www.bonifay.com/model/content/1.0}emis']?string(datetimeformat)}</td>
<td class="ged" >${record.properties["{http://www.bonifay.com/model/content/1.0}validite']?string(datetimeformat)}</td>
</tr>
</#if>
<#if record_has_next>
</#if>
</#list>
</#list>
</table>
</body>
</html>
01-28-2010 11:50 AM
02-01-2010 07:44 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.