<?php

$permisos=new PermisosLicencias;
$result=$permisos->mostrar();
foreach ($result as $fila) {
    ?>
    <tr id="mover">
        <td><?php print $fila['id_perm']; ?></td>
        <td><?php print $fila['fechaReg_perm']; ?></td>
        <td><?php print $fila['gradoAcad_per']." ".$fila['primerAp_per']." ".$fila['segundoAp_per']." ".$fila['nom_per']; ?></td>
        <td><?php print $fila['motivo_perm']; ?></td>
        <td><?php print $fila['fechaInc_perm']; ?></td>
        <td><?php print $fila['fechaFin_perm']; ?></td>
        <td><?php print $fila['id_per']; ?></td>
        <td>
            <form name="" action="editarPersonal.php" method="POST">
                <input type="hidden" name="id_per" value="<?php print $fila['id_per']; ?>">
                <input type="hidden" name="numDoc_per" value="<?php print $fila['numDoc_per'];  ?>">
                <input type="hidden" name="expeditoDoc_per" value="<?php print $fila['expeditoDoc_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="fechaNac_per" value="<?php print $fila['fechaNac_per']; ?>">
                <input type="hidden" name="numCelu_per" value="<?php print $fila['numCelu_per']; ?>">
                <input type="hidden" name="id_dir" value="<?php print $fila['id_dir']; ?>">
                <input type="hidden" name="nom_dir" value="<?php print $fila['nom_dir']; ?>">
                <input type="hidden" name="id_uni" value="<?php print $fila['id_uni'];  ?>">
                <input type="hidden" name="nom_uni" value="<?php print $fila['nom_uni'];  ?>">
                <input type="hidden" name="cargo" value="<?php print $fila['cargo']; ?>">
                <input type="hidden" name="gradoAcad_per" value="<?php print $fila['gradoAcad_per']; ?>">
                <button class="btn btn-outline-primary btn-sm"><i class="far fa-edit"></i>E</button>
            </form>
        </td>
        <td>
            <form name="" action="" method="POST">
                <input type="hidden" name="id_per" value="<?php print $fila['id_viaj']; ?>">
                
                <button name="viajImpri" class="btn btn-outline-info btn-sm"><i class="fas fa-chevron-right"></i> Imprimir</button>
            </form>
        </td>
    </tr>
    <?php 
}
?>