Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. <?php
  2. include "menu.php";
  3.  
  4. if ($_REQUEST[accion]=='Insertado')
  5. {
  6. print "<div class='alert alert-success'><a href=# class=close data-dismiss=alert aria-label=close>&times;</a>
  7. <strong>Registro Insertado!</strong></div>";
  8. }
  9.  
  10. print "<h3 class='box-title'>Clientes</h3>
  11. <table id='example1' class='table table-bordered table-striped'>
  12. <thead>";
  13. $sql1 = "select * from clientes;";
  14. $resultado1 = $db->query($sql1);
  15. print "<tr><th>Nombre:</th><th>Apellido:</th><th>Direccion:</th><th>Telefono:</th>
  16. <th>Acción:</th></tr></thead><tbody>";
  17. while($fila1 = $resultado1->fetch_assoc())
  18. {
  19. print "<tr><td>$fila1[Nombre]</td><td>$fila1[Apellido]</td><td>$fila1[Direccion]</td>
  20. <td>$fila1[Telefono]</td><td><a href=editarcliente.php?Id=$fila1[Id]
  21. class='fa fa-fw fa-edit'><a href=eliminarcliente.php?Id=$fila1[Id]
  22. class='fa fa-fw fa-remove'></td></tr>";
  23. }
  24. print "</tbody></table>";
  25.  
  26. print "<a class='btn btn-info' href=insertarcliente.php>Insertar</a>";
  27.  
  28. include "pie.php";
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement