Beispiel #1
0
<?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->listarTipos();
?>
<select name="fapTipo" class="filtro">
    <option value=""><?php 
echo $filtros->getFaptipo() ? 'Todas os tipos de registros' : 'Selecionar tipo de registro';
?>
</option>
    <?php 
foreach ($fapTiposRegistrosListar as $fapTiporegParaFiltro) {
    ?>
        <option value="<?php 
    echo $fapTiporegParaFiltro->pk_fap_tipo;
    ?>
"<?php 
    echo $fapTiporegParaFiltro->pk_fap_tipo === $filtros->getFapTipo() ? ' selected' : '';
    ?>
><?php 
    echo $fapTiporegParaFiltro->fap_tipo_nome;
    ?>