boolean alternate = false;
Iterator iterAssFile = assFiles.iterator();
while(iterAssFile.hasNext()) {
rowClass = (alternate) ? "portlet-section-alternate" : "portlet-section-body";
alternate = !alternate;
AssociationFile assFile = (AssociationFile)iterAssFile.next();
html += "<tr>";
html += "<td class='"+rowClass+"'>"+assFile.getName()+"</td>";
html += "<td class='"+rowClass+"'>"+assFile.getDescription()+"</td>";
Date dat = new Date(assFile.getDateCreation());
Calendar cal = new GregorianCalendar();
cal.setTime(dat);
String datSt = "" + cal.get(Calendar.DAY_OF_MONTH) + "/" +
(cal.get(Calendar.MONTH) + 1) + "/" +
cal.get(Calendar.YEAR) + " " +
cal.get(Calendar.HOUR_OF_DAY) + ":" +
(cal.get(Calendar.MINUTE) < 10 ? "0" : "") +
cal.get(Calendar.MINUTE);
html += "<td class='"+rowClass+"'>"+datSt+"</td>";
if(modality.equals("MANAGE")) {
String eraseUrl = httpRequest.getContextPath(); ;
eraseUrl += "/servlet/AdapterHTTP?ACTION_NAME=MANAGE_IMPEXP_ASS_ACTION";
eraseUrl += "&MESSAGE=DELETE_ASSOCIATION_FILE&ID="+assFile.getId();
String downloadUrl = httpRequest.getContextPath(); ;
downloadUrl += "/servlet/AdapterHTTP?ACTION_NAME=MANAGE_IMPEXP_ASS_ACTION";
downloadUrl += "&MESSAGE=DOWNLOAD_ASSOCIATION_FILE&ID="+assFile.getId();
html += "<td class='"+rowClass+"'>\n";
html += "<a class='link_without_dec' href='"+eraseUrl+"' style='text-decoration:none;'>\n";
html += "<img src='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/img/erase.gif",currTheme)+"' \n" +
"title='"+msgBuild.getMessage("impexp.erase", "component_impexp_messages", locale)+"' \n" +
"alt='"+msgBuild.getMessage("impexp.erase", "component_impexp_messages", locale)+"' />\n";
html += "</a>\n";
html += " \n";
html += "<a class='link_without_dec' href='"+downloadUrl+"' style='text-decoration:none;'>\n";
html += "<img src='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/img/down16.gif",currTheme)+"' \n" +
"title='"+msgBuild.getMessage("Sbi.download", "component_impexp_messages", locale)+"' \n" +
"alt='"+msgBuild.getMessage("Sbi.download", "component_impexp_messages", locale)+"' />\n";
html += "</a>\n";
html += "</td>";
} else if(modality.equals("SELECT") ) {
html += "<td class='"+rowClass+"'>\n";
html += "<a class='link_without_dec' href=\"javascript:parent.selectAssFile('"+assFile.getId()+"', '"+assFile.getName()+"')\">\n";
html += "<img src='"+urlBuilder.getResourceLinkByTheme(httpRequest, "/img/button_ok.gif",currTheme)+"' \n" +
"title='"+msgBuild.getMessage("impexp.select", "component_impexp_messages", locale)+"' \n" +
"alt='"+msgBuild.getMessage("mpexp.select", "component_impexp_messages", locale)+"' />\n";
html += "</a>\n";
}