<?php 


if(isset($_POST['asigUser'])){

	$id_per=$_POST['id_per'];
	$nom_per=$_POST['nom_per'];
	$primerAp_per=$_POST['primerAp_per'];
	$segundoAp_per=$_POST['segundoAp_per'];
	$numDoc_per=$_POST['numDoc_per'];
?>
<script>
      $(document).ready(function()
      {
         $("#mostrarmodal").modal("show");
      });
</script>

<div class="modal fade" id="mostrarmodal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
           <div class="card-header" style="background: #0080FF;">
		        <a href="usuario.php" class="btn btn-outline-danger" style="float: right; "><i class="far fa-window-close"></i></a> 
		        <h4 style="color: white;"> Registro de Usuario </h4>
	    	</div>
	    	<div class="card-body">

	    		<form name="" action="" method="POST">
                    <div class="form-row">
                        <div class="col-md-8">
                            <div class="form-group">
                            	<input type="hidden" name="id_per" value="<?php print $id_per; ?>">
                                <label class="small mb-1" for="inputFirstName">Nombre Completo</label>
                                <label class="form-control"><?php print $nom_per." ".$primerAp_per." ".$segundoAp_per; ?></label>
                            </div>
                        </div>
                        <div class="col-md-4">
                            <div class="form-group">
                                <label class="small mb-1" for="inputFirstName">CI</label>
                                <label class="form-control"><?php print $numDoc_per; ?></label>
                            </div>
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label class="small mb-1" for="inputFirstName">Tipo de Usuario </label>
                                <select name="tipo_user" class="form-control">
                                	<option value="AUX">AUXILIAR </option>
                                	<option value="ADMINISTRADOR">ADMINISTRADOR</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label class="small mb-1" for="inputLastName" required >Contraseña</label>
                                <input type="password" name="pass_user" id="inputLastName" class="form-control" required="" />
                            </div>
                        </div>
                    </div>
                   

                    <div class="form-group mt-4 mb-0"> <button type="submit" name="userReg" class="btn btn-primary btn-block">Guardar</button> </div>
                </form>

	    	</div>
        </div>
    </div>
</div>

<?php
}
?>