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.
 
 
 
 
 

416 righe
23 KiB

<?
if (isset($this) && is_a($this,"busteOE") && !empty($richiesta)) {
?>
<div class="row">
<div class="col-12 col-lg-8">
<? if (!empty($content)) { ?>
<div class="alert alert-success my-2 text-center">
<span class="far fa-file fa-2x"></span><br>
<?= $content["nomeFile"] ?><br>
<small>
<span class="fa fa-check"></span> <?= __("Documento caricato") ?><br>
<div class="text-break">
<?= __("Impronta hash") ?> - SHA256: <strong><?= $content["sha256"] ?></strong>
</div>
</small>
</div>
<?
if (!empty($secretata)) {
?>
<div class="alert alert-success my-2 text-center">
<span class="far fa-file fa-2x"></span><br>
<?= $secretata["nomeFile"] ?><br>
<small>
<span class="fa fa-check"></span> <?= __("Documento oscurato") ?><br>
<div class="text-break">
<?= __("Impronta hash") ?> - SHA256: <strong><?= $secretata["sha256"] ?></strong>
</div>
</small>
</div>
<?
} else if ($secretabile && $content["segreta"] == "S" && $this->submit) {
alertManager::printAlertCompact("Carica versione oscurata");
}
} ?>
<? if (!empty($emendamento)) {
$alertClass = "warning";
if ($emendamento["accettata"] == "S") {
$alertClass = "info";
}
if ($emendamento["accettata"] == "N") {
$alertClass = "danger";
}
$labelEmendamento = __("Emendamento caricato");
if ($emendamento["segreta"] == "S" && empty($emendamentoSecretato)) {
$labelEmendamento = __("Emendamento incompleto");
$alertClass = "danger";
}
?>
<div class="alert alert-<?= $alertClass ?> my-2 text-center">
<span class="far fa-file fa-2x"></span><br>
<?= $emendamento["nomeFile"] ?><br>
<small>
<?= $labelEmendamento ?><br>
<hr />
<?
if ($emendamento["accettata"] == "S") {
?>
<span class="fa fa-check"></span> <?= __("Emendamento accettato") ?><br>
<?
}
if ($emendamento["accettata"] == "N") {
?>
<span class="fa fa-times"></span> <?= __("Emendamento rifiutato") ?><br>
<strong><?= __("Motivazione") ?>:</strong><br>
<?= $emendamento["motivazione"] ?>
<?
}
?>
<hr />
<div class="text-break">
<?= __("Impronta hash") ?> - SHA256: <strong><?= $emendamento["sha256"] ?></strong>
</div>
</small>
</div>
<? if (!empty($emendamentoSecretato)) {
?>
<div class="alert alert-success my-2 text-center">
<span class="far fa-file fa-2x"></span><br>
<?= $emendamentoSecretato["nomeFile"] ?><br>
<small>
<span class="fa fa-check"></span> <?= __("Emendamento oscurato") ?><br>
<div class="text-break">
<?= __("Impronta hash") ?> - SHA256: <strong><?= $emendamentoSecretato["sha256"] ?></strong>
</div>
</small>
</div>
<?
} else if ($emendamento["segreta"] == "S" && $emendabile) {
alertManager::printAlertCompact("Carica versione oscurata");
}
?>
<? } ?>
<div class="card card-body">
<h3>
<span class="far fa-file"></span> <?= $richiesta["titolo"] ?>
</h3>
<? if ($richiesta["controllo"] == "S") { ?><span class="badge badge-info text-white"><span class="fa fa-exclamation-triangle"></span> <?= __("Obbligatorio") ?></span><br><? } ?>
<? if ($richiesta["controllo"] == "F") { ?><span class="badge badge-info text-white"><span class="fa fa-file-signature"></span> <?= __("Obbligatorio con firma digitale") ?></span><br><? } ?>
<?= $richiesta["descrizione"] ?>
<?
filesManager::printList($richiesta["codice"],"{$this->modulo}-richiesta","A",0,false);
if ($richiesta["titolo"] == "DGUE" && method_exists($this->obj,"getManagerDGUE")) {
$this->obj->getManagerDGUE()->printFillButton(true);
}
?>
</div>
</div>
<div class="col-12 col-lg-4">
<div class="request-panel">
<?
if ($this->submit) {
if ($richiesta["locked"] == "S") {
if ($this->submit) {
if ($this->formPossibile) {
if ($this->modalitaFirmaForm == "busta") {
?>
<a class="btn btn-block btn-<?= !$upload ? "primary" : "default" ?>" href="make-form.php?<?= $this->getQueryString() ?>&tipologia=<?= $richiesta["busta"] ?>">
<span class="fa fa-edit"></span> <?= $upload ? __("Rigenera documento offerta") : __("Genera documento offerta") ?>
</a>
<?
if ($upload) {
if (empty($_SESSION["{$this->modulo}offers"][$partecipante["codice"]][$richiesta["busta"]])) {
?>
<button class="btn btn-block btn-default" onClick="$('#offer-form').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-download"></span> <?= __("Download documento offerta") ?>
</button>
<?
} else {
?>
<a target="_blank" href="download-offer.php?<?= $this->getQueryString() ?>&token=<?= tokenGen() ?>&tipo=<?= $richiesta["busta"] ?>" class="btn btn-block btn-default">
<span class="fa fa-download"></span> <?= __("Download documento offerta") ?>
</a>
<?
}
}
} else if ($this->modalitaFirmaForm == "cumulativa" && $this->richiestaFirmaFormCumulativa) {
if ($upload || isset($generaFormCumulativo)) {
?>
<a class="btn btn-block btn-default" href="download-pdf.php?<?= $this->getQueryString() ?>">
<span class="fa fa-edit"></span> <?= __("Download documento da firmare") ?>
</a>
<?
} else {
if (!isset($generaFormCumulativo)) {
alertManager::printInfoCompact(__("Compila tutti i dati richiesti"));
}
}
}
}
}
}
if ($upload) {
?>
<button class="btn btn-block btn-<?= (empty($content)) ? "primary" : "default" ?>" onClick="$('#upload-form-main').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-upload"></span> <?= (empty($content)) ? __("Carica documento") : __("Sostituisci documento") ?>
</button>
<? if ($secretabile && !empty($content) && $content["segreta"] == "S") { ?>
<button class="btn btn-block btn-<?= (empty($secretata)) ? "primary" : "default" ?>" onClick="$('#upload-form-oscurato').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-upload"></span> <?= (empty($secretata)) ? __("Carica documento oscurato") : __("Sostituisci documento oscurato") ?>
</button>
<? }
}
} else {
if ($this->amend) {
if ($emendabile) {
?>
<button class="btn btn-block btn-default" onClick="$('#upload-form-main').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-upload"></span> <?= __("Richiedi correzione") ?>
</button>
<?
if ($secretabile && !empty($emendamento) && $emendamento["segreta"] == "S") { ?>
<button class="btn btn-block btn-<?= (empty($emendamentoSecretato)) ? "primary" : "default" ?>" onClick="$('#upload-form-oscurato').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-upload"></span> <?= (empty($emendamentoSecretato)) ? __("Carica emendamento oscurato") : __("Sostituisci emendamento oscurato") ?>
</button>
<? }
} else {
alertManager::printWarningCompact(__("Documento non emendabile"),__("La richiesta di correzione può intervenire solo sulle componenti tecniche ed economiche dell'offerta purchè la rettifica non comporti una modifica sostanziale"));
}
}
}
if (!empty($content)) {
if (isset($content["open"]) && $content["open"] == "N" && empty($_SESSION["{$this->modulo}documents"][$this->partecipante["codice"]][$richiesta["codice"]])) {
?>
<button class="btn btn-block btn-primary" onClick="$('#download-form').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-download"></span> <?= __("Download documento") ?>
</button>
<?
} else {
?>
<a target="_blank" href="download-submit.php?<?= $this->getQueryString() ?>&token=<?= tokenGen() ?>&codice_richiesta=<?= $richiesta["codice"] ?>" class="btn btn-block btn-primary">
<span class="fa fa-download"></span> <?= __("Download documento") ?>
</a>
<?
}
if ($this->deletable):
?>
<button type="button"
class="btn btn-block btn-danger"
onclick="confirmBeforeSubmit('<?=$codice_richiesta?>','buste/delete.php?codice_richiesta=<?= $codice_richiesta ?>', '<?=$this->getQueryString()?>&token=<?=tokenGen()?>')">
<span class="fa fa-trash"></span> <?= __("Elimina documento") ?>
</button>
<?
endif;
}
if (!empty($secretata)) {
if (isset($secretata["open"]) && $secretata["open"] == "N" && empty($_SESSION["{$this->modulo}secrets"][$this->partecipante["codice"]][$richiesta["codice"]])) {
?>
<button class="btn btn-block btn-primary" onClick="$('#download-form-secretata').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-download"></span> <?= __("Download documento oscurato") ?>
</button>
<?
} else {
?>
<a target="_blank" href="download-secretata.php?<?= $this->getQueryString() ?>&derivazione=busta&token=<?= tokenGen() ?>&codice_richiesta=<?= $richiesta["codice"] ?>" class="btn btn-block btn-primary">
<span class="fa fa-download"></span> <?= __("Download documento oscurato") ?>
</a>
<?
}
if ($this->deletable):
?>
<button type="button"
class="btn btn-block btn-danger"
onclick="confirmBeforeSubmit('<?=$codice_richiesta?>','buste/delete-secretata.php?derivazione=busta&codice_richiesta=<?= $codice_richiesta ?>', '<?=$this->getQueryString()?>&derivazione=busta&token=<?= tokenGen() ?>')">
<span class="fa fa-trash"></span> <?= __("Elimina documento oscurato") ?>
</button>
<?
endif;
}
if (!empty($emendamento)) {
if (isset($emendamento["open"]) && $emendamento["open"] == "N" && empty($_SESSION["{$this->modulo}amends"][$this->partecipante["codice"]][$richiesta["codice"]])) {
?>
<button class="btn btn-block btn-primary" onClick="$('#download-amend-form').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-download"></span> <?= __("Download emendamento") ?>
</button>
<?
} else {
?>
<a target="_blank" href="download-amend.php?<?= $this->getQueryString() ?>&token=<?= tokenGen() ?>&codice_richiesta=<?= $richiesta["codice"] ?>" class="btn btn-block btn-primary">
<span class="fa fa-download"></span> <?= __("Download emendamento") ?>
</a>
<?
}
if ($emendabile) {
?>
<button type="button"
class="btn btn-block btn-danger"
onclick="confirmBeforeSubmit('<?=$codice_richiesta?>','buste/delete-emendamento.php?codice_richiesta=<?= $codice_richiesta ?>', '<?=$this->getQueryString()?>&token=<?= tokenGen() ?>')">
<span class="fa fa-trash"></span> <?= __("Elimina emendamento") ?>
</button>
<?
}
}
if (!empty($emendamentoSecretato)) {
if (isset($emendamentoSecretato["open"]) && $emendamentoSecretato["open"] == "N" && empty($_SESSION["{$this->modulo}secrets"][$this->partecipante["codice"]][$richiesta["codice"]])) {
?>
<button class="btn btn-block btn-primary" onClick="$('#download-form-secretata').slideDown(); $('.request-panel').slideToggle()">
<span class="fa fa-download"></span> <?= __("Download emendamento oscurato") ?>
</button>
<?
} else {
?>
<a target="_blank" href="download-submit.php?<?= $this->getQueryString() ?>&derivazione=emendamento&token=<?= tokenGen() ?>&codice_richiesta=<?= $richiesta["codice"] ?>" class="btn btn-block btn-primary">
<span class="fa fa-download"></span> <?= __("Download emendamento oscurato") ?>
</a>
<?
}
if ($emendabile) {
?>
<button type="button"
class="btn btn-block btn-danger"
onclick="confirmBeforeSubmit('<?=$codice_richiesta?>','buste/delete-secretata.php', '<?=$this->getQueryString()?>&derivazione=emendamento&codice_richiesta=<?= $codice_richiesta ?>&token=<?= tokenGen() ?>')">
<span class="fa fa-trash"></span> <?= __("Elimina emendamento oscurato") ?>
</button>
<?
}
}
?>
</div>
<?
if ($richiesta["locked"] == "S" && !empty($upload)) {
if ($this->modalitaFirmaForm == "busta" && empty($_SESSION["{$this->modulo}offers"][$partecipante["codice"]][$richiesta["busta"]])) { ?>
<div class="action-div collapse" id="offer-form">
<form id="download-off-form" action="download-offer.php" rel="validate" method="post" target="_blank">
<input type="hidden" name="token" value="<?= tokenGen() ?>">
<? $this->printHiddenInputs() ?>
<input type="hidden" name="tipo" value="<?= $richiesta["busta"] ?>">
<div class="card card-body text-center">
<strong class="h4"><?= __("Password") ?></strong>
<div class="form-group">
<input class="form-control" name="salt" id="salt-open-0" type="password" title="<?= __("Password") ?>" rel="S;12;32;P">
</div>
<div class="form-group">
<input class="form-control" id="repeat-salt-open-0" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt-open-0;=">
</div>
</div>
<button class="btn btn-success btn-block">
<span class="fa fa-download"></span> <?= __("Download documento offerta") ?>
</button>
</form>
</div>
<?
}
}
if (!empty($content) && isset($content["open"]) && $content["open"] == "N") { ?>
<div class="action-div collapse" id="download-form">
<form id="download-doc-form" action="download-submit.php" rel="validate" method="post" target="_blank">
<input type="hidden" name="token" value="<?= tokenGen() ?>">
<? $this->printHiddenInputs() ?>
<input type="hidden" name="codice_richiesta" value="<?= $richiesta["codice"] ?>">
<div class="card card-body text-center">
<strong class="h4"><?= __("Password") ?></strong>
<div class="form-group">
<input class="form-control" name="salt" id="salt-open-1" type="password" title="<?= __("Password") ?>" rel="S;12;32;P">
</div>
<div class="form-group">
<input class="form-control" id="repeat-salt-open-1" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt-open-1;=">
</div>
</div>
<button class="btn btn-success btn-block">
<span class="fa fa-download"></span> <?= __("Download documento") ?>
</button>
</form>
</div>
<?
}
if (!empty($secretata) && isset($secretata["open"]) && $secretata["open"] == "N") { ?>
<div class="action-div collapse" id="download-form-secretata">
<form id="download-sec-form" action="download-secretata.php" rel="validate" method="post" target="_blank">
<input type="hidden" name="token" value="<?= tokenGen() ?>">
<input type="hidden" name="derivazione" value="busta">
<? $this->printHiddenInputs() ?>
<input type="hidden" name="codice_richiesta" value="<?= $richiesta["codice"] ?>">
<div class="card card-body text-center">
<strong class="h4"><?= __("Password") ?></strong>
<div class="form-group">
<input class="form-control" name="salt" id="salt-open-1" type="password" title="<?= __("Password") ?>" rel="S;12;32;P">
</div>
<div class="form-group">
<input class="form-control" id="repeat-salt-open-1" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt-open-1;=">
</div>
</div>
<button class="btn btn-success btn-block">
<span class="fa fa-download"></span> <?= __("Download documento oscurato") ?>
</button>
</form>
</div>
<?
}
if (!empty($emendamento) && isset($emendamento["open"]) && $emendamento["open"] == "N") { ?>
<div class="action-div collapse" id="download-amend-form">
<form id="download-doc-form" action="download-amend.php" rel="validate" method="post" target="_blank">
<input type="hidden" name="token" value="<?= tokenGen() ?>">
<? $this->printHiddenInputs() ?>
<input type="hidden" name="codice_richiesta" value="<?= $richiesta["codice"] ?>">
<div class="card card-body text-center">
<strong class="h4"><?= __("Password") ?></strong>
<div class="form-group">
<input class="form-control" name="salt" id="salt-open-amend" type="password" title="<?= __("Password") ?>" rel="S;12;32;P">
</div>
<div class="form-group">
<input class="form-control" id="repeat-salt-open-amend" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt-open-amend;=">
</div>
</div>
<button class="btn btn-success btn-block">
<span class="fa fa-download"></span> <?= __("Download emendamento") ?>
</button>
</form>
</div>
<?
}
if (!empty($emendamentoSecretato) && isset($emendamentoSecretato["open"]) && $emendamentoSecretato["open"] == "N") { ?>
<div class="action-div collapse" id="download-form-emendamento-secretato">
<form id="download-amend-sec-form" action="download-secretata.php" rel="validate" method="post" target="_blank">
<input type="hidden" name="token" value="<?= tokenGen() ?>">
<input type="hidden" name="derivazione" value="emendamento">
<? $this->printHiddenInputs() ?>
<input type="hidden" name="codice_richiesta" value="<?= $richiesta["codice"] ?>">
<div class="card card-body text-center">
<strong class="h4"><?= __("Password") ?></strong>
<div class="form-group">
<input class="form-control" name="salt" id="salt-open-1" type="password" title="<?= __("Password") ?>" rel="S;12;32;P">
</div>
<div class="form-group">
<input class="form-control" id="repeat-salt-open-1" type="password" title="<?= __("ripeti") . " ". __("password") ?>" rel="S;12;32;P;salt-open-1;=">
</div>
</div>
<button class="btn btn-success btn-block">
<span class="fa fa-download"></span> <?= __("Download documento oscurato") ?>
</button>
</form>
</div>
<?
}
if (!empty($upload)) {
$this->insertUploadForm($richiesta,$secretabile,"submit-save.php");
if ($secretabile && !empty($content) && $content["segreta"] == "S") {
$this->insertUploadForm($richiesta,false,"secret-save.php","oscurato");
}
} else {
if ($emendabile) {
$this->insertUploadForm($richiesta,$secretabile,"amend-save.php");
if ($secretabile && !empty($emendamento) && $emendamento["segreta"] == "S") {
$this->insertUploadForm($richiesta,false,"secret-save.php","oscurato");
}
}
} ?>
<button class="btn btn-block btn-default request-panel collapse" onClick="$('.action-div').slideUp(); $('.request-panel').slideToggle()">
<span class="fa fa-reply"></span> <?= __("Indietro") ?>
</button>
<button type="button" class="btn btn-block btn-sm btn-secondary" onClick="$('#modal-helper').modal('hide');"><span class="fa fa-times"></span> <?= __("Chiudi") ?></button>
</div>
</div>
<?
}
?>