<?php 

if(isset($_POST['actualizarPer'])){
	//include 'Model/personalModel.php';

	$numDoc_per=$_POST['numDoc_per'];
	$expeditoDoc_per=$_POST['expeditoDoc_per'];
	$nom_per=$_POST['nom_per'];
	$primerAp_per=$_POST['primerAp_per'];
	$segundoAp_per=$_POST['segundoAp_per'];
	$fechaNac_per=$_POST['fechaNac_per'];
	$correo_per=$_POST['correo_per'];
	$numCelu_per=$_POST['numCelu_per'];
	$id_dir=$_POST['id_dir'];
	$id_uni=$_POST['id_uni'];
	$cargo=$_POST['cargo'];
	$gradoAcad_per=$_POST['gradoAcad_per'];
	$id_per=$_POST['id_per'];

	$actualizar=new Personal;
	if($actualizar->actualizar($numDoc_per,$expeditoDoc_per,$nom_per,$primerAp_per,$segundoAp_per,$fechaNac_per,$correo_per,$numCelu_per,$id_dir,$id_uni,$cargo,$gradoAcad_per, $id_per)){
		?>
			<script type="text/javascript">
				$( document ).ready(function() {
				    $('#myModal2').modal('toggle')
				});
			</script>

			<div class="modal fade " id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg">
					<div class="modal-content" style="height:50px; " > 
                            <div class="alert alert-success form-row" role="alert">
                            	<div class="col-md-11">
                            		<strong>Se actualizo exitosamente</strong> 
                            	</div>
								<div class="col-md-1">
	                                <a href="index.php" class="btn btn-outline-success"><i class="fa fa-check"></i></a>
	                            </div>
	                            <meta http-equiv="refresh" content="2; url=index.php" /> 
							</div>
				    </div>
				</div>
			</div>
		<?php
	}
}
?>