<td align="right"> <input type="button" value="Modifica client" onclick="document.location = ('client_update.php?id=' + <?php echo $client->id; ?> )" /> <input type="button" value="Detalii client" <?php echo "onclick='clientView(" . $client->id . ")'"; ?> /> </td> </tr> </table> </div> <?php $sql = "SELECT * FROM Apartament WHERE idClient='{$client->id}'"; $apList = Apartament::find_by_sql($sql); if (!empty($apList)) { ?> <div id="oferte" class="view"> <h3 onclick="showHide('listaOferte')" onmouseover="this.style.cursor='pointer'">Oferte ale clientului</h3> <table width="100%" id="listaOferte"> <tr > <td class="header" width="5%" align="center">Cod</td> <td class="header" width="10%" align="center">Camere</td> <td class="header" width="70%">Detalii</td> <td class="header" width="10%" align="center">Pret</td> <td class="header" width="5%" align="center">Foto</td> </tr> <?php $i = 0; foreach ($apList as $apartament) {