Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. if (isset($_POST['nomepaciente']) ) {
  2.         $paciente = Paciente::instance();
  3.         $res = $paciente->getPacienteNome($_POST['nomepaciente'],$_POST['nmaepaciente']);
  4.                
  5.         echo "<br><br><h3>Resultado das Busca</h3><br><br>";
  6.         echo "<table class= ls-table ls-table-striped>";
  7.         $array = array($res);
  8.        
  9.         foreach ($array as $item) {
  10.           echo "<tr>" . "Lista de Pacientes" . "</tr>";
  11.           echo "<tr>";
  12.           echo "<td><b class=ls-label-text>PACIENTE: </b>" . $item['nomepaciente'] . "</td>";
  13.           echo "<td><b class=ls-label-text>NOME DA MÃE: </b>" . $item['nmaepaciente'] . "</td>";
  14.           echo "<td><b class=ls-label-text>RUA: </b>" . $item['rua'] . "</td>";
  15.           echo "<td>" . "<a href=edit_paciente2.php?prontuario=" . $item['prontuario'] . "><img src=images/editar.gif></a>" . "</td>";
  16.           echo "<td>" . "<a href=imprimir_2.php?prontuario=" . $item['prontuario'] . "><img src=images/imprimir.gif></a>" . "</td>";
  17.           echo "</tr>";
  18.         }
  19.         echo "</table>";  
  20.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement