<?php

if ($acceso == 1) {
    if (!empty($_POST)) {
        if (isset($_POST['id_persona_editar'])) {
            $id_persona_env = $_POST["id_persona_editar"];
        } else {
            $id_persona_env = $id_persona;
        }
        $integrantes_editar = new integrantes();
        $telefonos = new telefonos_personas();
        $correos = new correos_personas();
        $universidades = new universidades();
        $facultades = new facultades();
        $especialidades = new especialidades();
        $integrantes_editar->establecer_integrante($id_persona_env);
        ?>
		<html>
			<head>
				<link href="../Estilos/tareas_estilo.css" type="text/css" rel="stylesheet" >
			</head>
			<body>
				<?php 
        $nombres = $_POST["nombres"];
        $apellidos = $_POST["apellidos"];
        $linkedin = $_POST["linkedin"];
        $DNI = $_POST["DNI"];
        $direccion = $_POST["direccion"];
        $cod_universitario = $_POST["cod_universitario"];
        $nom_usuario = $_POST["usuario"];
        /* para verificar si se ha ingresado algun otro valor */
if ($acceso == 1) {
    ?>
	<head>
		<link href="../Estilos/tareas_estilo.css" type="text/css" rel="stylesheet" >
	</head>

	<?php 
    if (!empty($_POST)) {
        if (isset($_POST['id_persona'])) {
            $id_persona_tabla = $_POST["id_persona"];
        } else {
            $id_persona_tabla = $id_persona;
        }
        $tabla_integrante = new integrantes();
        $telefonos = new telefonos_personas();
        $correos = new correos_personas();
        $universidades = new universidades();
        $facultades = new facultades();
        $especialidades = new especialidades();
        $tabla_integrante->establecer_integrante($id_persona_tabla);
        ?>
    <body>
    
    <script>
        $(function(){
            $("#boton-guardar-datos-integrante").click(function(){
                var Datos = new FormData(document.forms.namedItem("formulario-datos-integrante")); 
                $url = "home_aux.php";
                $.ajax({
                    type: "POST",