Esempio n. 1
0
<div class="row-fluid">
    <div class="span12">
        <table class="table table-striped table-bordered table-condensed" id="tabellaUtenti">
            <thead>
                <th>Targa</th>
                <th>Destinazione ed uso</th>
                <th>Consumo Medio [l/100km]</th>
                <th>Comitato</th>
                <th>Collocazione</th>
                <th>Fermo tecnico</th>
                <th>Tipo</th>
                <th>Azioni</th>
            </thead>
            <?php 
foreach ($comitati as $comitato) {
    foreach (Veicolo::filtra([['comitato', $comitato->oid()], ['stato', VEI_ATTIVO]], 'targa ASC') as $veicolo) {
        ?>
                    <tr class="<?php 
        echo $comitato->id . ' ' . str_replace('.', '', str_replace(' ', '', $veicolo->collocazione()));
        ?>
 comitato" >
                        <td><?php 
        echo $veicolo->targa;
        ?>
</td>
                        <td><?php 
        echo $veicolo->uso;
        ?>
</td>
                        <td><?php 
        echo $veicolo->consumoMedio();