<h1>Elenco Pazienti</h1> <br> <table id="tablePazienti" border="1" valign="top" style="border-color: black; width: 100%; border: 1px; border-collapse: collapse; margin: 5px" cellpadding="0" > <tr> <th bgcolor="#d3d3d3" style="width:10%;" >Nome</th> <th bgcolor="#d3d3d3" style="width:10%;">Cognome</th> <th bgcolor="#d3d3d3" style="width:20%;">Codice Fiscale</th> <th bgcolor="#d3d3d3" style="width:15%;">Città </th> <th bgcolor="#d3d3d3" style="width:20%;">Indirizzo</th> <th bgcolor="#d3d3d3" style="width:15%;">email</th> </tr> <tr> <?php $mgr = new GestioneMedicoManager(); $pazienti = $mgr->getPazientiByMedico($emailMedico); foreach ($pazienti as $p) { echo "<tr style='cursor: pointer'>"; echo "<td style=\"border: 1px;\">" . $p->nome . "</td>"; echo "<td style=\"border: 1px;\">" . $p->cognome . "</td>"; echo "<td style=\"border: 1px;\">" . $p->codiceFiscale . "</td>"; echo "<td style=\"border: 1px;\">" . $p->citta . "</td>"; echo "<td style=\"border: 1px;\">" . $p->indirizzo . "</td>"; echo "<td style=\"border: 1px;\">" . $p->email . "</td>"; echo "</tr>"; } ?> </tr> </table> </body>