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.
114 righe
4.9 KiB
114 righe
4.9 KiB
<? |
|
$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "cig"; |
|
$cmd_info = progetto::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"], $_GET["codice"], $id_modulo)) { |
|
$progetto = progetto::init($_GET["codice"]); |
|
if (!empty($progetto)) { |
|
$record = $progetto->info; |
|
$lock = $progetto->checkLock($cmd_info["id"]); |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
$procedure = $progetto->getCIG(); |
|
$breadcrumb = array(); |
|
$breadcrumb["/" . $radice . "/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/" . $radice . "/panel.php?codice=" . $record["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
include_once($beRoot . "/layout/top.php"); |
|
$suggerimenti = $progetto->suggerimenti(); |
|
?><h1><?= $titolo_modulo ?></h1> |
|
|
|
<div id="commands" class="mb-5"> |
|
<div class="commands container-fluid"> |
|
<div class="row"> |
|
<div class="col-12 text-right"> |
|
<button id="sug-cmd" class="btn btn-primary collapse" onclick="showModalWithURL('suggerimenti.php?codice=<?= $record["codice"]; ?>');"></button> |
|
<? if (!$lock) { ?> |
|
<button onClick="showModalWithURL('edit.php?codice_progetto=<?= $record["codice"] ?>&codice=0')" class="btn btn-success" title="<?= __('Aggiungi nuovo') ?>"><span class="fa fa-plus-circle"></span> <?= __('Aggiungi nuovo') ?></button> |
|
<? } ?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
if (!empty($procedure)) { |
|
?> |
|
<div class="card"> |
|
<div class="card-body m-0 p-0"> |
|
<table class="table table-striped table-hover"> |
|
<thead> |
|
<tr> |
|
<th></th> |
|
<th>CIG</th> |
|
<th><?= __("Oggetto") ?></th> |
|
<th><?= __("Importo a base d'asta") ?></th> |
|
<th><?= __("Procedura") ?></th> |
|
<th width="10"></th> |
|
<th><?= __("Step procedurali") ?></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
$opzioni = progetto::getOpzioni("monitoraggio","tipoProcedureAggiudicazione"); |
|
foreach($procedure AS $cig) { |
|
if (!empty($suggerimenti["cigs"][$cig["cig"]])) { |
|
unset($suggerimenti["cigs"][$cig["cig"]]); |
|
} |
|
$procedura = $opzioni[$cig["procedura"]]; |
|
$status = progetto::evaluateStepCIG($cig); |
|
?> |
|
<tr> |
|
<td> |
|
<div class="status_flag bg-<?= $status ?>"></div> |
|
</td> |
|
<td><?= $cig["cig"] ?></td> |
|
<td><?= $cig["oggetto"] ?></td> |
|
<td><?= number_format($cig["importo"],2,",",".") ?></td> |
|
<td><?= $procedura["label"] ?></td> |
|
<td> |
|
<button title="<?= __("Dettagli") ?>" class="btn btn-sm btn-info" onclick="showModalWithURL('/backend/progetti/cig/edit.php?codice_progetto=<?= $record["codice"] ?>&codice=<?= $cig["codice"] ?>')"> |
|
<span class="fa fa-edit"></span> |
|
</button> |
|
</td> |
|
<td> |
|
<button title="<?= __("Step") ?>" class="btn btn-sm btn-block btn-<?= $status ?>" onclick="showModalWithURL('/backend/progetti/cig/step.php?codice_progetto=<?= $record["codice"] ?>&codice=<?= $cig["codice"] ?>')"> |
|
<span class="fa fa-tasks"></span> <?= __("Step") ?> |
|
</button> |
|
</td> |
|
<td> |
|
<button title="<?= __("Elimina") ?>" class="btn btn-sm btn-danger" onclick="elimina('<?= $cig["codice"] ?>','progetti/cig','codice_progetto=<?= $record["codice"] ?>')"> |
|
<span class="fa fa-times"></span> |
|
</button> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
<? |
|
if (!empty($suggerimenti["cigs"])) { ?> |
|
<button id="big-sug-btn" class="btn btn-block btn-primary" onclick="showModalWithURL('suggerimenti.php?codice=<?= $record["codice"]; ?>');"> |
|
<span class="fa fa-info-circle"></span> <?= __("Suggerimenti") ?> <span class="badge badge-danger"><?= count($suggerimenti["cigs"]) ?></span> |
|
</button> |
|
<script> |
|
$("#sug-cmd").html($("#big-sug-btn").html()).show(); |
|
</script> |
|
<? } |
|
} else { |
|
alertManager::printWarningBox(_("Nessun risultato")); |
|
} |
|
include_once($beRoot . "/layout/bottom.php"); |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|