<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Servidor */ $fapTiposRegistros = new Kernel_Models_Fap(); $fapTiposRegistrosListar = $fapTiposRegistros->select(); ?> <div class="form-group"> <select name="fap_tipo" class="form-control filtro"> <option value=""><?php echo $filtros->fap_tipo ? 'Todas os tipos de registros' : 'Filtrar por tipo de registro'; ?> </option> <?php if ($fapTiposRegistrosListar) { while ($row = $fapTiposRegistrosListar->fetchObject()) { ?> <option value="<?php echo $row->pk_fap_tipo; ?> "<?php echo $row->pk_fap_tipo === $filtros->fap_tipo ? ' selected' : ''; ?> ><?php