예제 #1
0
파일: Tesseramento.php 프로젝트: pizar/gaia
 /**
  * Restituisce un tesseramento aperto, se esiste
  * @return Tesseramento Tesseramento attivo se esiste null altrimenti
  */
 public static function attivo()
 {
     foreach (Tesseramento::elenco() as $t) {
         if ($t->aperto()) {
             return $t;
         }
     }
     return null;
 }
예제 #2
0
<?php

/*
* ©2013 Croce Rossa Italiana
*/
paginaAdmin();
$tesseramenti = Tesseramento::elenco();
if (isset($_GET['anno'])) {
    ?>
<div class="alert alert-error">
    <i class="icon-warning-sign"></i> <strong>Tesseramento già attivo per l'anno in corso</strong>.<br />
    Non è possibile attivare più tesseramenti per l'anno in corso.
</div>
<?php 
} elseif (isset($_GET['haquote'])) {
    ?>
<div class="alert alert-error">
    <i class="icon-warning-sign"></i> <strong>Tesseramento con quote pagate</strong>.<br />
    Non è possibile cancellare un tesseramento con quote pagate.
</div>
<?php 
} elseif (isset($_GET['ok'])) {
    ?>
<div class="alert alert-success">
    <i class="icon-check"></i> <strong>Modifiche effettuate con successo</strong>.<br />
    Le modifiche che hai richiesto sono state correttamente apportate.
</div>
<?php 
}
?>
예제 #3
0
                    <input type="hidden" name="oid" value="<?php 
    echo $c->oid();
    ?>
" />

                    <table class="table table-striped table-bordered">

                        <thead>
                            <th>Anno</th>
                            <th>Stato</th>
                            <th>Importo per soci Sostenitori</th>
                            <th>Azione</th>
                        </thead>

                    <?php 
    foreach (Tesseramento::elenco() as $t) {
        ?>
                        <tr>
                            <td><?php 
        echo $t->anno;
        ?>
</td>
                            <td><?php 
        echo $conf['tesseramento'][$t->stato];
        ?>
</td>
                            <td> €
                                <?php 
        if ($modifica && $t->stato == TESSERAMENTO_APERTO && $c->quotaBenemeriti() == $t->benemerito) {
            ?>
                                <input class="input-mini" type="number"