<?php include("dbconnect.php");
menu();
?>

<h2>Clientes:</h2>
<table border='1'>
  <tbody>
    <tr>
      <td><strong>Numero</strong></td>
      <td><strong>Nombre</strong></td>
      <td><strong>Telefono</strong></td>
      <td><strong>Nueva reparacion</strong></td>
      <td><strong>Ver Reparacion</strong></td>      
      <td><strong>Ver cliente</strong></td>
    </tr>
    <tr>
<?php
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
$result = mysql_query("select * from clientes where clientes.nombre like '%$parabuscar%'") or
    die (mysql_error());

while ($row = mysql_fetch_array($result))
{
echo "<td>";
echo $row["numero"];
echo "</td>";

echo "<td>";
echo $row["nombre"];
echo "</td>";

echo "<td>";
echo $row["telefono"];
echo "</td>";

echo "<td>";
echo "<form name=entrar_reparacion method=post action=entrar_reparacion.php>";
echo "<input type=submit name=ncliente value=$row[numero]>";
echo "</form>";
echo "</td>";

echo "<td>";
echo "<form name=ir_reparacion method=post action=b_nombre.php>";
echo "<input type=submit name=parabuscar value=$row[numero]>";
echo "</form>";
echo "</td>";



echo "<td>";
echo "<form name=editar_c method=post action=update_cliente.php>";
echo "<input type=submit name=editar_cliente value=$row[numero]>";
echo "</form>";
echo "</td>";
echo "</tr>";
}
  echo "</tbody>";
echo "</table>";


mysql_free_result($result);
?>
