</div> <div class="class-form"> <h1>Excluir exame</h1> <form method="POST" class="search_func" id="search_func" name="search_func" action="exclui_exames.php"> <table> <tr> <td><span >Descrição: </span></td> <td><input type="text" id="name_search" name="name_search" title="Digite o código ou a descrição para pesquisar"></td> <td><input type="submit" class="button" value="Buscar"></td> </tr> </table> </form> <?php if (isset($_POST['name_search']) && $_POST['name_search'] != "") { $exame = new Exame(); $exames = $exame->get_exame_by_desc($_POST['name_search']); if (count($exames) > 0) { echo '<table class="exibe-pesquisa">'; foreach ($exames as $key => $exame) { echo '<tr> <td><a class=\'icon_excluir\' title=\'Clique para excluir\' onclick="excluir(' . $exames[$key][0] . ')">' . $exames[$key][1] . '</a></td></tr>'; } echo '</table>'; } } if (isset($_GET['verificador']) && $_GET['verificador'] == 1) { //ini if 1 $exame = new Exame(); $exame = $exame->get_exame_id($_GET['id']); if ($exame->ocultar()) { echo '<div class="msg">Sucesso</div>';