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.
153 righe
7.2 KiB
153 righe
7.2 KiB
<? |
|
if (isset($this) && is_a($this,"anac")) { |
|
$lotto = $this->getLotti()[0]; |
|
$continua = true; |
|
} else if (!isset($root)) { |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && tokenVerify($_GET["token"])) { |
|
$continua = true; |
|
$record = get_campi("b_simog"); |
|
$lotto = get_campi("b_simog_lotti"); |
|
$dati = []; |
|
} |
|
} |
|
if (!empty($continua)) { |
|
?> |
|
<div class="card card-body"> |
|
<div class="row"> |
|
<div class="col-12 col-lg-6"> |
|
<strong><?= __("Categorie merceologiche oggetto della fornitura di cui al DPCM soggetti aggregatori") ?>*</strong> |
|
<table class="table table-condensed table-striped table-bordered"> |
|
<tbody> |
|
<? |
|
$categorie = anac::getOptions("lotto_merceologia_aggregatori",$record["data_invio_simog"]); |
|
foreach($categorie AS $id => $categoria) { |
|
$checked = ""; |
|
if (!empty($dati["categorie_merc"])) { |
|
if (in_array($id,$dati["categorie_merc"])) { |
|
$checked = "checked"; |
|
} |
|
} |
|
?> |
|
<tr> |
|
<td class="text-center"><input <?= $checked ?> type="checkbox" class="big-checkbox" name="dati[categorie_merc][]" value="<?= $id ?>"></td> |
|
<td><?= $categoria ?></td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
<div class="col-12 col-lg-6"> |
|
<div class="form-group"> |
|
<label for="cig"><?= __("CIG") ?></label> |
|
<input class="form-control input-lg text-center" name="lotto[cig]" value="<?= $lotto["cig"] ?>" id="cig" rel="N;10;10;A" title="<?= __("CIG") ?>" <?= ($lotto["richiesto_simog"] == "S") ? "readonly" : "" ?>> |
|
<? if (empty($record["cig"]) && $_SESSION["utente"]->permission("simog")) { ?> |
|
<div class="alert alert-info text-center p-1"> |
|
<small><span class="fa fa-question-circle"></span> <?= __("Sarà possibile richiedere il CIG tramite l'integrazione diretta con SIMOG") ?></small> |
|
</div> |
|
<? } ?> |
|
</div> |
|
<div class="form-group"> |
|
<label for="importo"><?= __("Importo") ?> *</label> |
|
<input class="form-control" name="lotto[importo]" value="<?= $lotto["importo"] ?>" id="importo" rel="S;0;0;2D" title="<?= __("Importo") ?>"> |
|
</div> |
|
<div class="form-group"> |
|
<label for="dati[codiceProceduraSceltaContraente]"><?= __("Scelta del contraente") ?>*</label> |
|
<select class="form-control" name="dati[codiceProceduraSceltaContraente]" rel="S;0;0;A" title="<?= __("Scelta del contraente") ?>"> |
|
<option value=""><?= __("Seleziona") ?></option> |
|
<? |
|
$options = anac::getOptions("tipo_procedura",$record["data_invio_simog"]); |
|
if (!empty($options)) { |
|
foreach($options as $key => $label) { |
|
$selected = ""; |
|
if (!empty($dati["codiceProceduraSceltaContraente"])) { |
|
if ($key == $dati["codiceProceduraSceltaContraente"]) { $selected = "selected"; } |
|
} |
|
?> |
|
<option <?= $selected ?> value="<?= $key ?>"><?= ucfirst(strtolower($label)) ?></option> |
|
<? |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
<div class="form-group"> |
|
<label for="dati[codiceClassificazioneGara]"><?= __("Tipo di contratto") ?>*</label> |
|
<select class="form-control" name="dati[codiceClassificazioneGara]" rel="S;0;0;A" title="<?= __("Tipo di contratto") ?>"> |
|
<option value=""><?= __("Seleziona") ?></option> |
|
<? |
|
$options = anac::getOptions("classificazione_gara",$record["data_invio_simog"]); |
|
if (!empty($options)) { |
|
foreach($options as $key => $label) { |
|
$selected = ""; |
|
if (!empty($dati["codiceClassificazioneGara"])) { |
|
if ($key == $dati["codiceClassificazioneGara"]) { $selected = "selected"; } |
|
} |
|
?> |
|
<option <?= $selected ?> value="<?= $key ?>"><?= ucfirst(strtolower($label)) ?></option> |
|
<? |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
<div class="form-group"> |
|
<label for="dati[codiceFattispecieContrattuale]"><?= __("Fattispecie contrattuale") ?>*</label> |
|
<select class="form-control" name="dati[codiceFattispecieContrattuale]" rel="S;2;2;A" title="<?= __("Fattispecie contrattuale") ?>"> |
|
<option value=""><?= __("Seleziona") ?></option> |
|
<? |
|
$options = anac::getOptions("tipo_fattispecie_contrattuale",$record["data_invio_simog"]); |
|
if (!empty($options)) { |
|
foreach($options as $key => $label) { |
|
$selected = ""; |
|
if (!empty($dati["codiceFattispecieContrattuale"])) { |
|
if ($key == $dati["codiceFattispecieContrattuale"]) { $selected = "selected"; } |
|
} |
|
?> |
|
<option <?= $selected ?> value="<?= $key ?>"><?= ucfirst(strtolower($label)) ?></option> |
|
<? |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
<div class="form-group"> |
|
<label for="data-cigAccordoQuadro"><?= __("CIG Accordo quadro") ?></label> |
|
<input class="form-control" name="dati[cigAccordoQuadro]" value="<?= $dati["cigAccordoQuadro"] ?? "" ?>" id="data-cigAccordoQuadro" rel="N;10;10;A" title="<?= __("CIG Accordo quadro") ?>"> |
|
</div> |
|
<div class="form-group"> |
|
<label for="cup"><?= __("CUP") ?></label> |
|
<input class="form-control" name="cup" value="<?= $lotto["cup"] ?? "" ?>" id="cup" rel="N;15;15;A" title="<?= __("CUP") ?>"> |
|
</div> |
|
<div class="form-group"> |
|
<label for="dati[motivo_rich_cig_catmerc]"><?= __("Motivo richiesta CIG") ?>*</label> |
|
<select class="form-control" name="dati[motivo_rich_cig_catmerc]" rel="S;0;0;A" title="<?= __("Motivo richiesta CIG") ?>"> |
|
<option value=""><?= __("Seleziona") ?></option> |
|
<? |
|
$options = anac::getOptions("tipo_indicatore",$record["data_invio_simog"]); |
|
if (!empty($options)) { |
|
foreach($options as $key => $label) { |
|
$selected = ""; |
|
if (!empty($dati["motivo_rich_cig_catmerc"])) { |
|
if ($key == $dati["motivo_rich_cig_catmerc"]) { $selected = "selected"; } |
|
} |
|
?> |
|
<option <?= $selected ?> value="<?= $key ?>"><?= ucfirst(strtolower($label)) ?></option> |
|
<? |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<script> |
|
f_ready(); |
|
</script> |
|
<? |
|
} |
|
?>
|