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.
121 righe
5.6 KiB
121 righe
5.6 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "verbaliSeduta"; |
|
$cmd_info = concorso::getInfoModulo($id_modulo); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice,$_GET["codice"],$id_modulo) && $_SESSION["utente"]->permission($cmd_info["modulo_riferimento"]) && isset($_GET["seduta"])) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$concorso = concorso::init($_GET["codice"],$codice_round); |
|
if (!empty($concorso)) { |
|
if ($concorso->setLotto($_GET["codice_lotto"])) { |
|
if (!empty($concorso->getPartecipanti())) { |
|
$record = $concorso->info; |
|
$round = $concorso->round; |
|
$lotto = $concorso->lotto; |
|
$lock = $concorso->checkLock($cmd_info["id"]); |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
$sedute = $concorso->getSedute(); |
|
$found = false; |
|
if (empty($_GET["seduta"])) { |
|
$found = true; |
|
$seduta = []; |
|
$seduta["codice"] = 0; |
|
$seduta["titolo"] = __("Prima seduta"); |
|
$seduta["data"] = $round["apertura"]; |
|
} |
|
$tipiBuste = concorso::tipologieBusta(); |
|
foreach($sedute AS $tmp) { |
|
if ($tmp["codice"] == $_GET["seduta"]) { |
|
$seduta = $tmp; |
|
$seduta["titolo"] = __($tipiBuste[$tmp["busta"]]["titolo"]); |
|
$found = true; |
|
} |
|
if ($found) { |
|
$next = $tmp; |
|
break; |
|
} |
|
} |
|
if (!empty($seduta) && !empty($next)) { |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/panel.php?codice=".$record["codice"]."&codice_round=".$round["codice"]] = __("Pannello"); |
|
$breadcrumb["/".$radice."/verbaliSeduta/index.php?codice=".$record["codice"]."&codice_round=".$round["codice"]] = $titolo_modulo; |
|
$breadcrumb[""] = __("Dettaglio"); |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
?> |
|
<h1> |
|
<?= $titolo_modulo ?> |
|
</h1> |
|
<h2><?= __($seduta["titolo"]) ?> - <small><?= mysql2completedate($seduta["data"]) ?></h2> |
|
<? |
|
$idTipo = "verbale-seduta-concorsi"; |
|
$idRiferimento = "concorsi-".$record["codice"]."-".$round["codice"]."-".$seduta["codice"]; |
|
$editor = new editorManager($idTipo,$idRiferimento); |
|
if (empty($editor->latest())) { |
|
$vocabolario = []; |
|
$dataInizio = $seduta["data"]; |
|
$dataFine = $next["data"]; |
|
include($beRoot."/concorsi/modelli/vocabolario.php"); |
|
if (!empty($vocabolario)) { |
|
$editor->vocabolario = $vocabolario; |
|
} |
|
} |
|
if (!$lock) { |
|
$ids = $editor->getIDS(); |
|
?> |
|
<form rel="validate" method="post" action="save.php" id="edit-form"> |
|
<div id="commands" class="mb-5"> |
|
<div class="commands container-fluid"> |
|
<div class="row"> |
|
<div class="col-12 text-right"> |
|
<button onClick="$('#allega').val('N');" class="btn btn-sm btn-warning"><span class="fa fa-save"></span> <?= __("Salva") ?></button> |
|
<button onClick="$('#allega').val('S');" class="btn btn-sm btn-primary"><span class="fa fa-paperclip"></span> <?= __("Salva ed allega") ?></button> |
|
<? |
|
if (!empty($ids["index"])) { |
|
?> |
|
<button type="button" onclick="elimina('<?= $seduta["codice"] ?>','concorsi/verbaliSeduta','token=<?= tokenGen() ?>&concorso=<?= $record["codice"] ?>&round=<?= $round["codice"] ?>')" class="btn btn-sm btn-danger"><span class="fa fa-times"></span> <?= __("Rielabora documento") ?></button> |
|
<? |
|
} |
|
$editor->printVersionButton(); |
|
?> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<input id="token" type="hidden" name="token" value="<?= tokenGen() ?>"> |
|
<input id="codice" type="hidden" name="codice" 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"] ?>"> |
|
<input id="codice_seduta" type="hidden" name="codice_seduta" value="<?= $seduta["codice"] ?>"> |
|
<input id="allega" type="hidden" name="allega" value="N"> |
|
<? } else { ?><div id="edit-form"><?} |
|
$editor->edit(); |
|
if (!$lock) { ?> |
|
</form> |
|
<? } else { ?> |
|
</div> |
|
<script>$(":input").not(".ignore-lock").attr("disabled","disabled").trigger("chosen:updated");</script> |
|
<? } |
|
include_once ($beRoot."/layout/bottom.php"); |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|
|
|