Example #1
0
   <div class="span12">

       <table class="table table-striped table-bordered table-condensed" id="tabellaUtenti">

            <thead>
                <th>Cognome</th>
                <th>Nome</th>
                <th>C. Fiscale</th>
                <th>Comitato</th>
                <th>Tesserino</th>
                <th>Azioni</th>
            </thead>

        <?php 
if ($admin) {
    $elenco = TesserinoRichiesta::elenco();
} else {
    $elenco = TesserinoRichiesta::filtra([['struttura', $comitato->oid()]]);
}
foreach ($elenco as $tesserino) {
    if ($tesserino->praticaAperta()) {
        continue;
    }
    $v = $tesserino->utente();
    ?>

            <tr>
                <td><?php 
    echo $v->cognome;
    ?>
</td>
   <div class="span12">

       <table class="table table-striped table-bordered table-condensed" id="tabellaUtenti">

            <thead>
                <th>Cognome</th>
                <th>Nome</th>
                <th>C. Fiscale</th>
                <th>Comitato</th>
                <th>Tesserino</th>
                <th>Azioni</th>
            </thead>

        <?php 
if ($admin) {
    $elenco = TesserinoRichiesta::elenco([['stato', STAMPATO, OP_GT], ['stato', RIFIUTATO]]);
} else {
    $elenco = TesserinoRichiesta::filtra([['struttura', $comitato->oid()], ['stato', STAMPATO, OP_GT], ['stato', RIFIUTATO]]);
}
foreach ($elenco as $tesserino) {
    if ($tesserino->praticaApertaOrdinario()) {
        continue;
    }
    $v = $tesserino->utente();
    ?>

            <tr>
                <td><?php 
    echo $v->cognome;
    ?>
</td>