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.
66 righe
2.1 KiB
66 righe
2.1 KiB
<? |
|
|
|
$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; |
|
include_once($configPath); |
|
$owner = false; |
|
$codice_round = $_GET["codice_round"] ?? null; |
|
$sidebar_class = "col-lg-4 col-xl-3"; |
|
$main_class = " col-lg-8 col-xl-9"; |
|
if (isset($_SESSION["utente"]) && $_SESSION["utente"]->gerarchia < 100) { |
|
$concorso = concorso::init($_GET["codice"], $codice_round); |
|
if (!empty($concorso)) { |
|
$owner = true; |
|
} |
|
} |
|
if (empty($concorso)) { |
|
$concorso = publicConcorso::init($_GET["codice"], $codice_round); |
|
if (isset($_SESSION["utente"])) { |
|
$sidebar_class = "col-lg-3"; |
|
$main_class = " col-lg-9"; |
|
} |
|
} |
|
if (!empty($concorso) && $concorso->setLotto($_GET["codice_lotto"]) && $concorso->pubblicaPartecipanti()) { |
|
$record = $concorso->info; |
|
$round = $concorso->round; |
|
|
|
$breadcrumb = array(); |
|
|
|
if ($owner) { |
|
$breadcrumb["/backend/concorsi/"] = Modulo::getInfo("concorsi")["titolo"]; |
|
$breadcrumb["/backend/concorsi/panel.php?codice={$record["codice"]}&codice_round={$round["codice"]}"] = __("Pannello"); |
|
} else { |
|
$breadcrumb["/concorsi/"] = Modulo::getInfo("concorsi")["titolo"]; |
|
} |
|
$breadcrumb["/concorsi/dettaglio.php?codice={$concorso->info["codice"]}&codice_round={$concorso->round["codice"]}"] = __("Dettaglio"); |
|
$breadcrumb[] = __("Partecipanti"); |
|
$collapseTop = true; |
|
include_once($root . "/layout/top.php"); |
|
?> |
|
<div class="container-fluid"> |
|
<? |
|
$stati = concorso::getStati(); |
|
$stato = $stati[$record["stato"]]; |
|
|
|
?> |
|
<span class="badge badge-primary"><?= $stato["titolo"] ?></span> |
|
<h1 style="border-bottom: 5px solid <?= $stato["color"] ?>" class="clearfix mb-3"> |
|
<?= __("concorso") ?> #<?= $record["id"] ?> |
|
</h1> |
|
<span class="h3"><?= $record["oggetto"] ?></span> |
|
<div class="row pt-3"> |
|
<div class="col-12"> |
|
<? |
|
$partecipanti = $concorso->getPartecipanti(); |
|
$obj = $concorso; |
|
include($root."/common/partecipanti/list.php"); |
|
?> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
include_once($root . "/layout/bottom.php"); |
|
} else { |
|
echo '<meta http-equiv="refresh" content="0;URL=/index.php">'; |
|
die(); |
|
} |
|
?>
|