htmlPage += "</div>"; //div header end
//Stampa risultato ricerca
if(request.getParameter("date")!=null){
dbManager db = new dbManager();
ResultSet r = db.getPreviousVaccinationsPatients(new Integer(seconds));
db.releaseConnection();
htmlPage += "<div class=\"content\">";
htmlPage+="<form action=\"Conferma\" method=\"POST\">\n";
htmlPage+="<p class=\"submit\"><input type=\"submit\" name=\"Conferma\" value=\"Conferma\" /></p>\n";
//Prima riga della tabella
htmlPage+="<TABLE>\n";
htmlPage+="<tr>\n";
htmlPage+="<th></th>\n";
htmlPage+="<th>Nome</th>\n";
htmlPage+="<th>Cognome</th>\n";
htmlPage+="<th>M/F</th>\n";
htmlPage+="<th>Data di vaccinazione</th>\n";
htmlPage+="<th>Medico</th>\n";
htmlPage+="<th>Seleziona</th>\n";
htmlPage+="</tr>\n";
try {
if(r.first()){
while (!r.isAfterLast()) {
Paziente p = new Paziente(r);
if (!arrayPazienti.add(p))
Log4k.warn(Richiamo.class.getName(), "il paziente non e` stato inserito nel'array");
htmlPage+="<TR>\n";
htmlPage+="<TD><img src=\"photo/"+p.getPicture()+"\" height=\"50\" width=\"50\" alt=\"Foto Paziente\" /></TD>\n";
htmlPage+="<TD>"+p.getName()+"</TD>\n";
htmlPage+="<TD>"+p.getSurname()+"</TD\n>";
htmlPage+="<TD>"+p.getGender()+"</TD>\n";
htmlPage+="<TD>"+p.getVaccination_date()+"</TD>\n";
htmlPage+="<TD>"+p.getDoctor_id()+"</TD>\n";
htmlPage+="<TD><input type=\"checkbox\" name=\""+checkboxname+"\" value=\""+p.getId()+"\" /></TD>\n";
htmlPage+="</TR>\n";
r.next();
}
}
} catch (SQLException ex) {
htmlPage+="</div></div></BODY></HTML>\n";
Log4k.error(Richiamo.class.getName(), ex.getMessage());