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.
74 righe
3.9 KiB
74 righe
3.9 KiB
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"public_html/"))."config.php"; |
|
include_once($configPath); |
|
$id_modulo = "partecipanti"; |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice_concorso"],$id_modulo)) { |
|
$concorso = concorso::init($_GET["codice_concorso"],$_GET["codice_round"]); |
|
if (!empty($concorso)) { |
|
if ($concorso->setLotto($_GET["codice_lotto"]) && !$concorso->checkLock($id_modulo)) { |
|
$lotto = $concorso->lotto; |
|
if (!empty($_GET["codice"])) { |
|
$partecipante = $concorso->getPartecipante($_GET["codice"]); |
|
if ($partecipante["flagEncrypted"] == "N") { |
|
$error = false; |
|
?> |
|
<form rel="validate" method="post" action="/backend/concorsi/partecipanti/save.php" id="edit-form"> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice_concorso" type="hidden" name="codice_concorso" value="<?= $concorso->info["codice"] ?>"> |
|
<input id="codice_round" type="hidden" name="codice_round" value="<?= $concorso->round["codice"] ?>"> |
|
<input id="codice_lotto" type="hidden" name="codice_lotto" value="<?= $lotto["codice"] ?>"> |
|
<? if (empty($partecipante["codice"])) { ?><input id="codice_operatore" type="hidden" name="codice_operatore" value="<?= $partecipante["codice_operatore"] ?>"><? } ?> |
|
<input id="codice" type="hidden" name="codice" value="<?= $partecipante["codice"] ?>"> |
|
<div class="card card-body mb-3"> |
|
<div class="row"> |
|
<div class="col-12 col-lg-6"> |
|
<div class="form-group"> |
|
<label for="stato"> |
|
<?= __("stato") ?>* |
|
</label> |
|
<select name="stato" class="form-control" title="<?= __("stato") ?>" rel="S;2;2;A"> |
|
<option value=""><?= __("seleziona") ?></option> |
|
<option <?= ("IT" == $partecipante["stato"]) ? "selected" : "" ?> value="IT"><?= __("Italia") ?></option> |
|
<? |
|
$stati = getStati(); |
|
if (count($stati) > 0) { |
|
foreach($stati AS $stato) { |
|
if ($stato["sigla"] != "IT") { |
|
?><option <?= ($stato["sigla"] == $partecipante["stato"]) ? "selected" : "" ?> value="<?= $stato["sigla"] ?>"><?= $stato["stato"] ?></option><? |
|
} |
|
} |
|
} |
|
?> |
|
</select> |
|
</div> |
|
</div> |
|
<div class="col-12 col-lg-6"> |
|
<div class="form-group"> |
|
<label for="codice_fiscale"><?= __("Codice Fiscale impresa") ?>*</label> |
|
<input type="text" class="form-control" value="<?= $partecipante["codice_fiscale"] ?>" name="codice_fiscale" title="<?= __("Codice Fiscale impresa") ?>" rel="S;2;0;PICF"> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="form-group"> |
|
<label for="ragione_sociale"><?= __("Denominazione") ?> *</label> |
|
<input type="text" class="form-control" id="ragione_sociale" value="<?= $partecipante["ragione_sociale"] ?>" name="ragione_sociale" title="<?= __("Denominazione") ?>" rel="S;2;0;A"> |
|
</div> |
|
</div> |
|
<?php |
|
$raggruppamento = $concorso->getRaggruppamento($partecipante["codice"]); |
|
require($root . "/common/raggruppamenti/view.php"); |
|
?> |
|
<button class="btn btn-block btn-primary"><span class="fa fa-save"></span> <?= __("Salva") ?></button> |
|
</form> |
|
<? |
|
} |
|
} |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|
|
|