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.
60 righe
2.4 KiB
60 righe
2.4 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "contratti"; |
|
$cmd_info = gara::getInfoModulo($id_modulo); |
|
$error = true; |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"]) && $_SESSION["utente"]->permission($radice,$_GET["codice_gara"],$id_modulo)) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$gara = gara::init($_GET["codice_gara"],$codice_round); |
|
if (!empty($gara) && $gara->setLotto($_GET["codice_lotto"])) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
$lotto = $gara->lotto; |
|
$lock = $gara->checkLock($cmd_info["id"]); |
|
if (!$lock) { |
|
$tmp = $gara->getPartecipanti(); |
|
$aggiudicatari = []; |
|
foreach($tmp AS $oe) { |
|
if ($oe["aggiudicatario"] == "S") { $aggiudicatari[] = $oe; } |
|
} |
|
if (!empty($oe)) { |
|
$error = false; |
|
?> |
|
<form rel="validate" method="post" action="create.php" id="edit-form"> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice_gara" type="hidden" name="codice_gara" value="<?= $record["codice"] ?>"> |
|
<input id="codice_round" type="hidden" name="codice_round" value="<?= $round["codice"] ?>"> |
|
<input id="codice_lotto" type="hidden" name="codice_lotto" value="<?= $lotto["codice"] ?>"> |
|
<table class="table table-hover table-striped"> |
|
<thead> |
|
<tr> |
|
<th><?= __("Aggiudicatario") ?></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($aggiudicatari AS $oe) { |
|
?> |
|
<tr> |
|
<td><?= $gara->listPartecipanti($oe["codice"]) ?></td> |
|
<td><input class="big-checkbox" type="checkbox" name="partecipante[]" value="<?= $oe["codice"] ?>"></td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
<button class="btn btn-success btn-block mt-2"><span class="fa fa-file"></span> <?= __("Crea contratto") ?></button> |
|
</form> |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|