<?php

$mos = new Personal;
$resul = $mos->mostrarAsig();

foreach ($resul as $fila) {
	?>
	<tr>
		<td><?php print $fila['id_per']; ?></td>
		<td><?php print $fila['nom_per']." ".$fila['primerAp_per']." ".$fila['segundoAp_per']; ?></td>
		<td><?php print $fila['numDoc_per']; ?></td>
		<td><?php print $fila['correo_per']; ?></td>
		<td>
			<form name="" action="" method="POST">
				<input type="hidden" name="id_per" value="<?php print $fila['id_per']; ?>">
				<input type="hidden" name="nom_per" value="<?php print $fila['nom_per']; ?>">
				<input type="hidden" name="primerAp_per" value="<?php print $fila['primerAp_per'];  ?>">
				<input type="hidden" name="segundoAp_per" value="<?php  print $fila['segundoAp_per']; ?>">
				<input type="hidden" name="numDoc_per" value="<?php print $fila['numDoc_per']; ?>">
				<input type="hidden" name="correo_per" value="<?php print $fila['correo_per']; ?>">
				<button type="submit" name="asigUser" class="btn btn-primary btn-sm" > <i class="fas fa-angle-double-right"></i> Asignar</button>
			</form>
		</td>
	</tr>
	<?php
}

?>