Datos básicos
+ + +¡Bienvenido (a)!
+Nos gustaría conocerte mejor
++ + +
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 62c8935..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea/ \ No newline at end of file diff --git a/views/Main limpio.html b/Main limpio.html similarity index 100% rename from views/Main limpio.html rename to Main limpio.html diff --git a/views/assets/img/logo-lania-w.png b/assets/img/logo-lania-w.png similarity index 100% rename from views/assets/img/logo-lania-w.png rename to assets/img/logo-lania-w.png diff --git a/carpeta_temporal/script_base_datos/crear_usuario.sql b/carpeta_temporal/script_base_datos/crear_usuario.sql deleted file mode 100644 index 2fdc051..0000000 --- a/carpeta_temporal/script_base_datos/crear_usuario.sql +++ /dev/null @@ -1,4 +0,0 @@ --- Crear usuario que utiliza el sistema -CREATE USER lania@localhost IDENTIFIED BY 'l4n1@Cc'; -GRANT ALL PRIVILEGES ON lania_cc.* TO lania@localhost; -FLUSH PRIVILEGES; \ No newline at end of file diff --git a/config/Database.php b/config/Database.php deleted file mode 100644 index ad16fbc..0000000 --- a/config/Database.php +++ /dev/null @@ -1,42 +0,0 @@ -mysqli = new mysqli($host, $user, $password, $dbname); - - // Verificar conexión - if ($this->mysqli->connect_error) { - throw new Exception("Database: Conexión fallida. " . $this->mysqli->connect_error); - } - - } catch (Exception $e) { - throw new Exception("Database: Error . " . $e->getMessage()); - } - } - - public static function getInstance() { - if (self::$instance === null) { - self::$instance = new Database(); - } - return self::$instance->mysqli; - } - - -} - -?> \ No newline at end of file diff --git a/views/consultar-api.html b/consultar-api.html similarity index 100% rename from views/consultar-api.html rename to consultar-api.html diff --git a/views/control-candidatos.php b/control-candidatos.php similarity index 100% rename from views/control-candidatos.php rename to control-candidatos.php diff --git a/views/control-usuarios.php b/control-usuarios.php similarity index 100% rename from views/control-usuarios.php rename to control-usuarios.php diff --git a/controllers/RegistrarCandidatoController.php b/controllers/RegistrarCandidatoController.php deleted file mode 100644 index 7cc6b86..0000000 --- a/controllers/RegistrarCandidatoController.php +++ /dev/null @@ -1,16 +0,0 @@ - 0){ - echo json_encode(['registroExitoso' => true, 'message' => 'Se ha registrado el candidato correctamente.']); - } else { - echo json_encode(['registroExitoso' => false, 'message' => 'Error al registrar el candidato.']); - } - -} - -?> \ No newline at end of file diff --git a/controllers/RegistrarInfoCandidato.php b/controllers/RegistrarInfoCandidato.php deleted file mode 100644 index 16dd02a..0000000 --- a/controllers/RegistrarInfoCandidato.php +++ /dev/null @@ -1,25 +0,0 @@ - "exitoso", - "mensaje" => "Se ha registrado la información correctamente.", - "res" => "id_candidato: " . $respuesta["mensaje"] - ]); - } else if( isset($respuesta["estado"]) ){ - echo json_encode([ - "estado" => "error", - "mensaje" => "Error al registrar la información.", - "res" => $respuesta["mensaje"] - ]); - } - -} - -?> \ No newline at end of file diff --git a/controllers/buscarCodigo.php b/controllers/buscarCodigo.php deleted file mode 100644 index 5c0f240..0000000 --- a/controllers/buscarCodigo.php +++ /dev/null @@ -1,53 +0,0 @@ -conectar(); // Establecer conexión - -// Verificar que se ha enviado el parámetro 'codigo_postal' -if (isset($_GET['codigo_postal'])) { - $codigo_postal = $_GET['codigo_postal']; - - // Consulta SQL para obtener estado, ciudad y colonia en base al código postal - $sql = "SELECT e.nombre AS estado, m.nombre AS municipio, c.nombre AS colonia - FROM colonias c - JOIN municipios m ON c.municipio = m.id - JOIN estados e ON m.estado = e.id - WHERE c.codigo_postal = ?"; - - // Verificar que la conexión a la base de datos esté activa - if ($conexionBD) { - // Preparar la sentencia SQL - $stmt = $conexionBD->prepare($sql); - $stmt->bind_param("i", $codigo_postal); // El parámetro es un entero (i) - $stmt->execute(); - - // Obtener los resultados - $result = $stmt->get_result(); - - // Verificar si hay resultados - if ($result->num_rows > 0) { - $data = []; - while ($row = $result->fetch_assoc()) { - $data[] = $row; // Agregar cada resultado a un array - } - echo json_encode($data); // Devolver los resultados en formato JSON - } else { - echo json_encode([]); // Si no hay resultados, devolver un array vacío - } - - $stmt->close(); - } else { - echo json_encode(["error" => "Conexión a la base de datos fallida."]); - } - - $conexionBD->close(); -} else { - // Si no se recibe un código postal, respondemos con un error - echo json_encode(["error" => "Código postal no proporcionado."]); -} -?> \ No newline at end of file diff --git a/views/crearUsuario.php b/crearUsuario.php similarity index 100% rename from views/crearUsuario.php rename to crearUsuario.php diff --git a/css/inicio.css b/css/inicio.css index 69046f3..85342ce 100644 --- a/css/inicio.css +++ b/css/inicio.css @@ -579,5 +579,3 @@ main .btn-send:hover { display: none; } } - - diff --git a/form_datos_basicos.html b/form_datos_basicos.html new file mode 100644 index 0000000..5e90348 --- /dev/null +++ b/form_datos_basicos.html @@ -0,0 +1,198 @@ + + +
+ + + + +Nos gustaría conocerte mejor
+Sales
+Pageviews
+Visitors
+Femenino
-Masculino
-Prefiero no decirlo
-