gestione gare pubbliche
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.
 
 
 
 
 

53 righe
2.0 KiB

<?
$show = false;
if (isset($progetto)) {
if (!empty($progetto->info["cup"])) {
$schede = mop::tipologiaSchede();
if (!empty($schede)) {
$monitor = $progetto->getManagerMonitoraggio();
foreach($schede AS $tipo => $info) {
if (empty($info["auto"])) {
$schedeDb = $monitor->getScheda($tipo);
$status = [];
$hrefScheda = $hrefComando . "&tipo={$tipo}";
foreach($schedeDb AS $scheda) {
if (!empty($scheda)) {
if ($scheda["stato"] == 100) {
$status[] = "status-border-success";
} else if ($scheda["stato"] == 90) {
$status[] = "status-border-danger";
} else {
$status[] = "status-border-warning";
}
}
}
if (empty($status)) {
$status = "status-border-default";
} else {
$status = array_unique($status);
if (count($status) > 1) {
$status = "status-border-warning";
} else {
$status = $status[0];
}
if ($status=="status-border-danger") {
$alertManager->addDangerAlert(__($info["titolo"]) . " - " . __("Errori d'invio"),$hrefScheda);
}
}
?>
<a class="btn my-1 <?= $status ?> btn-block btn-<?=($lock==true) ? "secondary" : "info"?>" href="<?= $hrefScheda ?>" title="<?= __($info["descrizione"] ?? $info["titolo"]) ?>">
<span class="float-left"><?= __($info["titolo"]) ?></span>
<? if ($rec["badge"] != "") {
if (file_exists($root.$rec["badge"])) { include($root.$rec["badge"]); }
} ?>
<div class="clearfix"></div>
</a>
<?
}
}
}
} else {
alertManager::printWarningBox(__("Monitoraggio non disponibile"),__("CUP Assente"));
}
}
?>