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.0 KiB
66 righe
2.0 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) { |
|
$gara = gara::init($_GET["codice"], $codice_round); |
|
if (!empty($gara)) { |
|
$owner = true; |
|
} |
|
} |
|
if (empty($gara)) { |
|
$gara = publicGara::init($_GET["codice"], $codice_round); |
|
if (isset($_SESSION["utente"])) { |
|
$sidebar_class = "col-lg-3"; |
|
$main_class = " col-lg-9"; |
|
} |
|
} |
|
if (!empty($gara) && $gara->setLotto($_GET["codice_lotto"]) && $gara->pubblicaPartecipanti()) { |
|
$record = $gara->info; |
|
$round = $gara->round; |
|
|
|
$breadcrumb = array(); |
|
|
|
if ($owner) { |
|
$breadcrumb["/backend/gare/"] = Modulo::getInfo("gare")["titolo"]; |
|
$breadcrumb["/backend/gare/panel.php?codice={$record["codice"]}&codice_round={$round["codice"]}"] = __("Pannello"); |
|
} else { |
|
$breadcrumb["/gare/"] = Modulo::getInfo("gare")["titolo"]; |
|
} |
|
$breadcrumb["/gare/dettaglio.php?codice={$gara->info["codice"]}&codice_round={$gara->round["codice"]}"] = __("Dettaglio"); |
|
$breadcrumb[] = __("Partecipanti"); |
|
|
|
include_once($root . "/layout/top.php"); |
|
?> |
|
<div class="container-fluid"> |
|
<? |
|
$stati = gara::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"> |
|
<?= __("Gara") ?> #<?= $record["id"] ?> |
|
</h1> |
|
<span class="h3"><?= $record["oggetto"] ?></span> |
|
<div class="row pt-3"> |
|
<div class="col-12"> |
|
<? |
|
$partecipanti = $gara->getPartecipanti(); |
|
$obj = $gara; |
|
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(); |
|
} |
|
?>
|