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.
80 righe
3.9 KiB
80 righe
3.9 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (!empty($_SESSION["utente"]->oe)) { |
|
$manager = new publicRichiesteOE($_GET["modulo"],$_GET["codice_elemento"],$_GET["sub"]); |
|
if (!empty($_GET["codice"])) { |
|
$tmp = $manager->getRichieste("S",["codice"=>$_GET["codice"]]); |
|
if (!empty($tmp)) { |
|
$richiesta = $tmp[0]; |
|
$relazione = $manager->getOE($richiesta["codice"],$_SESSION["utente"]->oe["codice"])[0] ?? false; |
|
if (!empty($relazione)) { |
|
$dettagliTipologiaRichiesta = publicRichiesteOE::ModuliAbilitati()[$richiesta["modulo"]]; |
|
$error = false; |
|
?> |
|
<div class="text-right"> |
|
<a href="/<?= $richiesta["modulo"] ?>/dettaglio.php?codice=<?= $richiesta["codice_elemento"] ?>" class="btn btn-info" title="<?= __('Dettagli procedura') ?>"><span class="fa fa-search"></span> <?= __('Dettagli procedura') ?></a> |
|
</div> |
|
<? |
|
$label = "<span class=\"fa fa-paper-plane\"></span> " . __("invia"); |
|
if (!empty($relazione["timestamp_trasmissione"])) { |
|
$label = "<span class=\"fa fa-sync\"></span> " . __("Sostituisci"); |
|
?> |
|
<div class="alert alert-success text-center p-5 mt-2"> |
|
<span class="fa fa-check fa-3x"></span><br> |
|
<strong><?= __("Trasmissione effettuata con successo") ?></strong><br> |
|
<?= mysql2completedate($relazione["timestamp_trasmissione"]) ?><br><br> |
|
<div class="text-center"> |
|
<a href="/richieste/download-submit.php?token=<?= tokenGen() ?>&codice=<?= $richiesta["codice"] ?>&codice_relazione=<?= $relazione["codice"] ?>" title="<?= __("Download") ?>"> |
|
<span class="fa fa-download fa-2x"></span><br><?= $relazione["nomeFile"] ?> |
|
</a> |
|
</div> |
|
<br> |
|
<small> |
|
SHA256: <?= $relazione["sha256"] ?> |
|
</small> |
|
</div> |
|
<? |
|
} |
|
include($beRoot."/common/richiesteOE/generalInfo.php"); |
|
if (strtotime($richiesta["scadenza"]) > time()) { |
|
$col = 6; |
|
if ($richiesta["firma"] == "S") { $col=4; } |
|
?> |
|
<div class="card mt-2"> |
|
<div class="card-header"> |
|
<h3 class="card-title m-0" data-target="#send-richiestaOE"><?= $label ?> </h3> |
|
</div> |
|
<div class="card-body <?= (!empty($relazione["timestamp_trasmissione"])) ? "collapse" : "" ?>" id="send-richiestaOE"> |
|
<form id="edit-form" action="submit-save.php" rel="validate" method="post"> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice" type="hidden" name="codice" value="<?= $richiesta["codice"] ?>"> |
|
<input id="codice" type="hidden" name="codice_relazione" value="<?= $relazione["codice"] ?>"> |
|
<input type="hidden" rel="S;1;0;A" title="<?= __("file") ?>" name="filechunk" value="" id="file-filechunk"> |
|
<? |
|
$options = ["maxNumberOfFiles"=>1]; |
|
if ($richiesta["firma"] == "S") { |
|
$options["allowedTypes"] = [".pdf",".p7m"]; |
|
} |
|
filesManager::insertUploadForm('$("#file-filechunk").val(file.name);$("#confirm-button").slideDown();','richiesta-oe',$options) |
|
?> |
|
<button class="btn btn-lg btn-primary btn-block" id="confirm-button" style="display:none"> |
|
<span class="fa fa-paper-plane"></span> <?= __("invia") ?> |
|
</button> |
|
</form> |
|
</div> |
|
</div> |
|
<? |
|
} else { |
|
alertManager::printAlertBox(__("Scaduti termini di presentazione")); |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|