include_once "../Clases/AUTO.php"; include_once "../Clases/ACCESORIO.php"; include_once "../Clases/TRABAJO.php"; include_once "../Clases/PERSONAL.php"; include_once "../Clases/REPARACION.php"; include_once "../Clases/DETALLE_REPARACION.php"; include_once "../Clases/ACCESORIO_REPARACION.php"; include_once "../Clases/PAGO.php"; include_once "../Clases/EMPRESA.php"; error_reporting(0); $error = ""; $resultado = ""; session_start(); $personalsession = $_SESSION["personal"]; $empresasession = $_SESSION["empresa"]; $Herramienta = new Herramientas(); $proceso = $_POST["proceso"]; $con = new CONN("taller1", "wdigital"); if (!$con->estado) { $error = "No se pudo establecer conexion. Intente nuevamente."; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($personalsession == null || $empresasession == null) { $error = "Error Session"; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($proceso == "datosempresa") {
include_once "../Clases/AUTO.php"; include_once "../Clases/ACCESORIO.php"; include_once "../Clases/TRABAJO.php"; include_once "../Clases/PERSONAL.php"; include_once "../Clases/REPARACION.php"; include_once "../Clases/DETALLE_REPARACION.php"; include_once "../Clases/ACCESORIO_REPARACION.php"; include_once "../Clases/PAGO.php"; include_once "../Clases/EMPRESA.php"; error_reporting(0); $error = ""; $resultado = ""; session_start(); $personalsession = $_SESSION["personal"]; $empresasession = $_SESSION["empresa"]; $Herramienta = new Herramientas(); $proceso = $_POST["proceso"]; $con = new CONN("taller1", "wdigital"); if (!$con->estado) { $error = "No se pudo establecer conexion. Intente nuevamente."; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($personalsession == null || $empresasession == null) { $error = "Error Session"; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($proceso == "buscarClientes") {
<?php include_once "../Clases/CONN.php"; include_once "../Clases/PERSONAL.php"; include_once "../Clases/PAGO.php"; include_once "../Clases/EMPRESA.php"; include_once "../Clases/HERRAMIENTASPHP.php"; error_reporting(0); $error = ""; $resultado = ""; session_start(); $personalsession = $_SESSION["personal"]; $empresasession = $_SESSION["empresa"]; $Herramienta = new Herramientas(); $con = new CONN("taller1", "wdigital"); if (!$con->estado) { $error = "No se pudo establecer conexion. Intente nuevamente."; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($personalsession == null || $empresasession == null) { $error = "Error Session"; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } $personal = new PERSONAL($con); $proceso = $_POST["proceso"]; if ($proceso === "registroPersonal") { $ci = $_POST["ci"];
$error = ""; $resultado = ""; $proceso = $_POST["proceso"]; if ($proceso == "insertarCliente") { $nombre = $_POST['nombre']; $correo = $_POST['correo']; $direccion = $_POST['direccion']; $cuenta = $_POST['cuenta']; $ci = $_POST['ci']; $contrasena = $_POST['contrasena']; $rcontraseña = $_POST['rcontraseña']; $telefono = $_POST['telefono']; $foto = $_POST['foto']; $fechanacimiento = $_POST['fechanacimiento']; $text = ""; $Herramienta = new Herramientas(); if (!$Herramienta->validar("vacio", $nombre)) { $text .= "<p>el campo nombre completo no puede estar vacio</p>"; } if ($Herramienta->validar("texto", $nombre) === FALSE) { $text .= "<p>por favor instrodusca su nombre correctamente</p>"; } if (!$Herramienta->validar("vacio", $correo)) { $text .= "<p>el correo electronico no puede estar vacio</p>"; } if (!$Herramienta->validar("texto y entero", $correo)) { $text .= "<p>por favor instroduzca su correo electronico correctamente, no estan permitidos los carateres especiales</p>"; } if (!$Herramienta->validar("vacio", $ci)) { $text .= "<p>el C.I. no puede estar vacio</p>"; }
<?php include_once "../Clases/CONN.php"; include_once "../Clases/PERSONAL.php"; include_once "../Clases/HERRAMIENTASPHP.php"; $con = new CONN("rest", "wdigital"); error_reporting(0); $personal = new PERSONAL($con); $error = ""; $resultado = ""; $proceso = $_POST["proceso"]; if ($proceso == "verificarLogeo") { $cuenta = $_POST['cuenta']; $contrasena = $_POST['contrasena']; $text = ""; $Herramienta = new Herramientas(); if (!$Herramienta->validar('texto y entero', $contrasena)) { $text .= "<p>Por favor intruduzca su contrasena correctamente</p>"; } if (!$Herramienta->validar('texto y entero', $cuenta)) { $text .= "<p>Por favor intruduzca su cuenta correctamente</p>"; } if (!$Herramienta->validar('vacio', $cuenta)) { $text .= "<p>El campo Cuenta no puede estar vacio</p>"; } if (!$Herramienta->validar('vacio', $contrasena)) { $text .= "<p>El campo Contrasena no puede estar vacio</p>"; } if ($personal->logeor($cuenta, $contrasena) > 0) { $re = $personal->estadoUsuario($cuenta, $contrasena); if ($re != null) {
<?php include_once "../Clases/CONN.php"; include_once "../Clases/HERRAMIENTASPHP.php"; include_once "../Clases/PRODUCTO.php"; include_once "../Clases/PROVEDOR.php"; include_once "../Clases/PRODUCTO_PROVEEDOR.php"; error_reporting(0); $error = ""; $resultado = ""; session_start(); $almacensession = $_SESSION["almacen"]; $personalsession = $_SESSION["personal"]; $sucursalsession = $_SESSION["sucursal"]; $restaurantesession = $_SESSION["restaurante"]; $Herramienta = new Herramientas(); $con = new CONN("rest", "wdigital"); if (!$con->estado) { $error = "No se pudo establecer conexion. Intente nuevamente."; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } if ($personalsession == null) { $error = "Error Session"; $reponse = array("error" => $error, "result" => $resultado); echo $_GET['callback'] . json_encode($reponse); return; } $proceso = $_POST["proceso"]; if ($proceso === "listaProductos") {
$regional = $_POST['regional']; $nit = $_POST['nit']; $contrasena = $_POST['password']; $rcontraseña = $_POST['rpassword']; $direccions = $_POST['direccions']; $direccionp = $_POST['direccionp']; $cuenta = $_POST['cuenta']; $rol = $_POST['rol']; $sueldo = $_POST['sueldo']; $nombrep = $_POST['nombrep']; $telefono = $_POST['telefono']; $logo = $_POST['logo']; $fechacreacion = date("d/m/Y"); $fechacontratado = $_POST['fechacontratado']; $text = ""; $Herramienta = new Herramientas(); if (!$Herramienta->validar("vacio", $nombrer)) { $text .= "<p>el campo nombre no puede estar vacio</p>"; } if (!$Herramienta->validar("texto", nombrer)) { $text .= "<p>por favor instrodusca su nombre correctamente</p>"; } if (!$Herramienta->validar("vacio", nombrep)) { $text .= "<p>el campo nombre del personal no puede estar vacio</p>"; } if (!$Herramienta->validar("texto", nombrep)) { $text .= "<p>por favor instrodusca el nombre del personal correctamente</p>"; } if (!$Herramienta->validar("vacio", razonsocial)) { $text .= "<p>el campo razon social no debe estar vacio</p>"; }