head = "<form id='ressourceList'><table><caption class='titre'>Resssources disponibles</caption><thead><TR align='center'>"
+ "<TH>Description</TH><TH>Page</TH><TH>Action</TH></TR></thead><tbody>";
ArrayList<Ressource> ressources = Dao.allRessources();
Ressource rs = null;
if (ressources.size() > 0) {
for (int i = 0; i < ressources.size(); i++) {
rs = ressources.get(i);
body = body
+ "<tr><td>"
+ rs.getRessourceDescription()
+ "</td><td>"
+ rs.getRessourcePage()
+ "<td><input type='button'value='Supprimer' class='slick-black' id=ressourceDelete"
+ i + " onclick = 'deleteRessource("
+ rs.getRessourceId() + ")'></td></tr>";
}
}
foot = "</tbody></table></form>";