include "funcionesCaja.php";
session_start();
echo "
";
$ActiveUser = $_SESSION['user'];
if ($_SESSION["password"] != "alm") {
header("Location: ..//index.php");
exit();
}
include("conexion.php");
$guardar = $_GET['guardar'];
if ($guardar=="false")
{
echo "
Alta de Cliente
";
}
elseif($guardar=="true")
{
$Nombre = $_POST['Nombre'];
$Telefono =$_POST['Telefono'];
$Direccion = $_POST['Direccion'];
$CI = $_POST['CI'];
if ($Nombre != "")
{
$ID = altaCliente($Nombre, $Telefono, $Direccion, $CI);
echo"
Se creo el cliente $ID
";
}
else
{
echo"
Fallo la alta del cliente
";
}
}
mysqli_close($conexion);
echo "