
<!-- Modal -->
<div class="modal fade" id="edita-funcionario" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="tituloFormFuncionario"></h5>
        <button id="cierraModalAddProd" type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <form id="form_edi_funcionario">
            <div class="row">            
                <div class="col-lg-6 col-md-12">                     
                    <div class="form-group">
                        <h5>Selecciona la Persona</h5>
                        <div class="controls">
                                <select id="int_persona_edi" name="int_persona" class="form-control select2" required>
                                    <option selectedV value="" ><b>Selecciona</b></option>

                                    <?php while ($row_personas = mysqli_fetch_assoc($queryPersonaAlum)) {?>
                                    <option value="<?php echo $row_personas['Persona_id']?>" > <?php echo $row_personas['Nombre'].' '.$row_personas['Apellido']?></option>
                                    <?php	};	?>
                            </select>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-6 col-md-12">                
                    <div class="form-group">
                        <h5>Antiguedad</h5>
                        <div class="controls">
                            <input type="text" id="antiguedad" name="antiguedad" class="form-control" required/>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-6 col-md-12">                
                    <div class="form-group">
                        <h5>Correo Electronico</h5>
                        <div class="controls">
                            <input type="email" id="email" name="email" class="form-control" required/>
                        </div>
                    </div>
                </div>

                <div class="col-lg-6 col-md-12">            
                    <div class="form-group">
                        <h5>Rol</h5>
                        <div class="controls">
                                <select id="rol" name="rol" class="form-control select2" required>
                                    <option selectedV value="" ><b>Selecciona</b></option>

                                    <?php while ($rol = mysqli_fetch_assoc($queryRol)) {?>
                                    <option value="<?php echo $rol['idRol']?>" > <?php echo $rol['nombreRol']?></option>
                                    <?php	};	?>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="col-lg-6 col-md-12">                    
                    <div class="form-group">
                        <h5>Contraseña</h5>
                        <div class="controls">
                            <input type="password" id="pass" name="pass" class="form-control" required>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-6 col-md-12">                
                    <div class="form-group">
                        <h5>Repetir contraseña</h5>
                        <div class="controls">
                            <input type="password" id="pass_2" name="pass_2" class="form-control" required>
                        </div>
                    </div>
                </div>

            </div>

            <div class="modal-footer">
                <div class="pull-right">
                    <input type="hidden" id="idpers" name="idpers"/>
                    <input type="hidden" id="proceso" name="proceso"/>
                    <button type="submit" id="btn_submit" class="btn btn-info">Agregar</button>
                    <button id="btn-cancel-addprod" value="Cancelar" type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true" >Cancelar</button> 
                </div>
            </div>
        </form>
      </div>
    </div>
  </div>
</div>