Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
68 righe
3.4 KiB
68 righe
3.4 KiB
<? |
|
|
|
if(! empty($document) && is_a($document, "FVOEDocument")) { |
|
|
|
?> |
|
<li class="list-group-item bg-transparent d-flex align-items-center px-0"> |
|
<div style="width: 30px" class="text-center mr-1 text-success"> |
|
<i class="<?= $document->stato->icon ?>" style="color: <?= $document->stato->color ?>" data-toggle="tooltip" title="<?= $document->stato->title ?>"></i> |
|
</div> |
|
<div style="width: 30px" class="text-center mr-1"> |
|
<?php if(! empty($document->id_documento)) : ?> |
|
<a href="download.php?codice=<?= $fvoe->info["codice"] ?>&tipologia=<?= $tipologia['codice'] ?>&id_documento=<?= $document->id_documento ?>" class="text-secondary"><i class="fas fa-download"></i></a> |
|
<?php else : ?> |
|
<i class="fas fa-asterisk fa-spin text-secondary"></i> |
|
<?php endif; ?> |
|
</div> |
|
<div class="col"> |
|
<p class="mb-0 font-weight-bold d-block"><?= $document->oggetto ?></p> |
|
<small class="badge badge-primary">Stato comprova: <strong><?= $document->stato_comprova->descrizione->it ?></strong></small> |
|
<small class="badge badge-info">Stato utilizzo: <strong><?= $document->stato_utilizzo->descrizione->it ?></strong></small> |
|
</div> |
|
<div style="width: 110px" class="text-seconday text-center text-lowercase"> |
|
<span data-toggle="tooltip" title="Data di emissione"> |
|
<? if(! empty($document->data_emissione)) : ?> |
|
<strong><?= gmdate("d/m/Y", strtotime($document->data_emissione)) ?></strong><br> |
|
<? else : ?> |
|
/<br> |
|
<? endif ?> |
|
<span class="text-lowercase small">(emissione)</span> |
|
</span> |
|
</div> |
|
<div style="width: 110px" class="text-seconday text-center text-lowercase"> |
|
<span data-toggle="tooltip" title="Data di inserimento"> |
|
<? if(! empty($document->data_inserimento)) : ?> |
|
<strong><?= gmdate("d/m/Y", strtotime($document->data_inserimento)) ?></strong><br> |
|
<? else : ?> |
|
/<br> |
|
<? endif ?> |
|
<span class="text-lowercase small">(inserimento)</span> |
|
</span> |
|
</div> |
|
<div style="width: 110px" class="text-seconday text-center text-lowercase"> |
|
<span data-toggle="tooltip" title="Data di scadenza"> |
|
<? if(! empty($document->data_fine_validita)) : ?> |
|
<strong class="<?= strtotime($document->data_fine_validita) < strtotime("now") ? 'text-danger' : 'text-success' ?>"><?= gmdate("d/m/Y", strtotime($document->data_fine_validita)) ?></strong><br> |
|
<? else : ?> |
|
/<br> |
|
<? endif ?> |
|
<span class="text-lowercase small">(scadenza)</span> |
|
</span> |
|
</div> |
|
<div style="width: 200px" class="text-seconday text-center text-uppercase ml-5"> |
|
<?php if(! empty($document->id_documento)) : ?> |
|
<a href="download.php?codice=<?= $fvoe->info["codice"] ?>&tipologia=<?= $tipologia['codice'] ?>&id_documento=<?= $document->id_documento ?>" class="btn btn-outline-primary btn-block btn-sm"> |
|
<i class="fas fa-download mr-3"></i> Download |
|
</a> |
|
<?php elseif ($document->documentsCollection()->hasPendingRequest()) : ?> |
|
<a class="btn btn-outline-dark btn-block btn-sm" onclick="checkRequestStatus('ajax/aggiorna-stato-richiesta.php?codice=<?= $fvoe->info['codice'] ?>&tipologia=<?= $tipologia['codice'] ?>')" href="javascript:void(0)"> |
|
<i class="fas fa-spinner fa-spin mr-3"></i> Verifica richiesta |
|
</a> |
|
<?php endif ?> |
|
</div> |
|
</li> |
|
<? |
|
|
|
} |
|
|
|
?>
|