Exemplo n.º 1
0
} else {
    $cc = 0;
    echo "<div class='row'>\n";
    foreach ($readAge->Execute()->getResult() as $age) {
        echo $cc % 4 == 0 ? "<div class='row'>\n</div>\n" : "";
        echo "<div class='col-md-3'>";
        $View->Show((array) $age, $tpl_age);
        echo "</div>\n";
        $cc++;
    }
    echo "</div>\n";
}
/**
 * Aniversariantes do Mês
 */
$readAni = new AppNiver();
$readAni->Execute()->FullRead("SELECT * FROM app_niver " . "WHERE niver_nome LIKE '%' :link '%' OR niver_setor LIKE '%' :link '%' " . "ORDER BY niver_data", "link={$search}", true);
?>

        <hr>
        <section class="section">
            <header>
                <h2>Aniversáriantes do mês:</h2>
                <p>Sua pesquisa por <?php 
echo $search;
?>
 retornou <?php 
echo $readAni->Execute()->getRowCount();
?>
 resultados:</p>
            </header>
Exemplo n.º 2
0
<?php

$View = new View();
$tpl = $View->Load('aniversariantes');
?>
<section class="section print table">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <?php 
$AppNiver = new AppNiver();
$AppNiver->Execute()->findAll();
if (!$AppNiver->Execute()->getResult()) {
    WSErro("<b>Oppss!</b> Não temos Aniversários este mês!", INFO);
} else {
    ?>
                    <table class="table table-bordered table-condensed table-hover table-striped text-center">
                        <thead>
                            <tr>
                                <th colspan="4" class="info text-center">
                        <h1>Aniversáriantes do mês</h1>
                        </th>
                        </tr>
                        <tr>
                            <th>#</th>
                            <th>Nome</th>
                            <th>Setor</th>
                            <th>Data</th>
                        </tr>
                        </thead>
                        <tbody>
Exemplo n.º 3
0
    }
}
?>
        <div class="table-responsive">	
            <table class="table table-striped table-hover table-bordered text-center">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Nome</th>
                        <th>Setor</th>
                        <th>Data</th>
                    </tr>
                </thead>
                <tbody>
                    <?php 
$AppNiver = new AppNiver();
foreach ($AppNiver->Execute()->findAll() as $Niver) {
    extract((array) $Niver);
    ?>
                    
                        <tr>
                            <td><?php 
    echo $niver_id;
    ?>
</td>
                            <td><?php 
    echo $niver_nome;
    ?>
</td>
                            <td><?php 
    echo $niver_setor;