String foot = "";
head = "<form id='ressourceuserList'><table><caption class='titre'>Ressources par utilisateur</caption><thead><TR align='center'><TH>Ressource</TH><TH>Utilisateur</TH><TH>Action</TH></TR></thead><tbody>";
ArrayList<RessourceUser> rusers = Dao.allRessourceUser();
RessourceUser ru = null;
if (rusers.size() > 0) {
for (int i = 0; i < rusers.size(); i++) {
ru = rusers.get(i);
body = body
+ "<tr><td>"
+ Dao.getRessource(ru.getRessourceId())
.getRessourceDescription()
+ "<input type='hidden' id=ucru"
+ i
+ " value="
+ ru.getUserCode()
+ ">"
+ "<input type='hidden' id=rru"
+ i
+ " value="
+ ru.getRessourceId()
+ ">"
+ "</td><td>"
+ Dao.getUser(ru.getUserCode()).getUserDescription()
+ "<td><input type='button'value='Supprimer' class='slick-black' id=ressourceuserDel"
+ i + " onclick = 'deleteRessourceuser(" + i
+ ")'></td></tr>";
}
}