$partecipante = $checkInstance->miaPartecipazione();
if (!empty($partecipante)) {
$tipiBuste = gara::tipologieBusta();
$buste = [];
foreach($tipiBuste AS $id_busta => $busta) {
$tmp = $checkInstance->getRichieste($id_busta);
if (!empty($tmp)) {
$buste[$id_busta] = ["info"=>$busta,"richieste"=>$tmp];
}
}
if (!empty($buste)) {
if ($partecipante["conferma"]=="N") {
?>
foreach($buste AS $id_busta => $busta) {
?>
-
= __($busta["info"]["titolo"]) ?>
foreach($busta["richieste"] AS $input) {
if ($input["controllo"] != "N") {
$checks["obbligatori"]++;
}
$content = $checkInstance->getBusta($partecipante["codice"],$input["codice"]);
$secretata = null;
if (!empty($content)) {
if ($input["controllo"] != "N") {
$checks["presenti"]++;
}
if ($content["segreta"] == "S") {
$checks["obbligatori"]++;
$secretata = $checkInstance->getBustaSecretata($partecipante["codice"],$input["codice"],"busta");
if (!empty($secretata)) {
$checks["presenti"]++;
}
}
}
?>
- = $input["titolo"] ?>
if (!empty($content["nomeFile"])) { ?>
- = $content["nomeFile"] ?>
- = __("Impronta hash") ?> SHA256: = $content["sha256"] ?>
if (!empty($secretata)) { ?>
- = __("Versione oscurata") ?>:
- = $secretata["nomeFile"] ?>
- = __("Impronta hash") ?> SHA256: = $secretata["sha256"] ?>
} else if ($content["segreta"] == "S") { ?>
- alertManager::printAlertCompact(__("Versione oscurata mancante")) ?>
} ?>
} else {
if ($input["controllo"] != "N") {
alertManager::printAlertBox(__("Documento obbligatorio"));
}
} ?>
}
?>
}
?>
$html .= ob_get_clean();
ob_start();
} else {
alertManager::printInfoBox(__("Partecipazione già inviata"));
}
}
} else {
if (count($lotti) > 1) {
$errorLotto = true;
alertManager::printAlertBox(__("Partecipazione assente"));
}
}
?>