include "funcionesCaja.php"; session_start(); //COMPRUEBA QUE EL USUARIO ESTA AUTENTIFICADO if ($_SESSION["password"] != "alm") { header("Location: ..//index.php"); exit(); } echo "

| ID | Nombre | Telefono | Direccion | "; $buscar = false; if (isset($_GET['buscar'])) { $buscar = $_GET['buscar']; } if ($buscar == "true") { $terminobusqueda = $_POST['terminobusqueda']; $QueryClientes = mysqli_query($conexion, "SELECT * FROM clientes WHERE Nombre LIKE '%$terminobusqueda%'"); if (mysqli_num_rows($QueryClientes) == 0) { $QueryClientes = mysqli_query($conexion, "SELECT * FROM clientes WHERE Telefono LIKE '%$terminobusqueda%'"); } if (mysqli_num_rows($QueryClientes) == 0) { $QueryClientes = mysqli_query($conexion, "SELECT * FROM clientes WHERE CI LIKE '%$terminobusqueda%'"); } } else { $QueryClientes = mysqli_query($conexion, "SELECT * FROM clientes"); } while ($Cliente=mysqli_fetch_row($QueryClientes)) { echo " | |
|---|---|---|---|---|---|
|
";
if ($_SESSION['level'] == "Admin")
{
echo "![]() | ";
}
echo "