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.
98 righe
4.0 KiB
98 righe
4.0 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$id_modulo = "log"; |
|
$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"])) { |
|
$codice_round = $_GET["codice_round"] ?? NULL; |
|
$concorso = concorso::init($_GET["codice"],$codice_round); |
|
if (!empty($concorso)) { |
|
$record = $concorso->info; |
|
$round = $concorso->round; |
|
$lock = $concorso->checkLock($cmd_info["id"]); |
|
$titolo_modulo = __($cmd_info["titolo"]); |
|
$breadcrumb = array(); |
|
$breadcrumb["/".$radice."/"] = Modulo::getInfo($radice)["titolo"]; |
|
$breadcrumb["/".$radice."/panel.php?codice=".$record["codice"]."&codice_round=".$round["codice"]] = __("Pannello"); |
|
$breadcrumb[""] = $titolo_modulo; |
|
|
|
include_once ($beRoot."/layout/top.php"); |
|
?> |
|
<h1> |
|
<?= $titolo_modulo ?> |
|
</h1> |
|
<? |
|
$conference = []; |
|
if ($_SESSION["ente"]->hasModulo("conference")) { |
|
$conference = $concorso->getConferences(); |
|
} |
|
if (!empty($conference)) { |
|
?> |
|
<div class="card"> |
|
<div class="card-header"> |
|
<ul class="nav nav-pills" role="tablist"> |
|
<li role="presentation" class="nav-item"><a href="#general" class="nav-link active" aria-controls="general" role="tab" data-toggle="tab"><?= __("Registro") ?></a></li> |
|
<li role="presentation" class="nav-item"><a href="#conference" class="nav-link" aria-controls="conference" role="tab" data-toggle="tab"><?= __("Video conferenze") ?></a></li> |
|
</ul> |
|
</div> |
|
<div class="card-body"> |
|
<div class="tab-content"> |
|
<div role="tabpanel" class="tab-pane active" id="general"> |
|
<? |
|
} |
|
$concorso->getManagerRegistro()->printTable(); |
|
if (!empty($conference)) { |
|
?> |
|
</div> |
|
<div role="tabpanel" class="tab-pane" id="conference"> |
|
<div class="table-responsive"> |
|
<table class="table table-striped table-hover"> |
|
<thead> |
|
<tr> |
|
<th width="200"><?= __("Data e ora") ?></th> |
|
<th><?= __("Tipologia") ?></th> |
|
<th width="120"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($conference AS $meet) { |
|
|
|
switch($meet["contesto"]) { |
|
case "seggio": $tipologia = __("Seggio di concorso"); break; |
|
case "commissione": $tipologia = __("Commissione di valutazione"); break; |
|
default: $tipologia = __("Seduta Pubblica"); |
|
} |
|
|
|
?> |
|
<tr> |
|
<td><?= mysql2datetime($meet["timestamp"]) ?></td> |
|
<td><?= $tipologia ?></td> |
|
<td> |
|
<button class="btn btn-info btn-sm" onClick="showModalWithURL('conference.php?codice=<?= $concorso->info["codice"] ?>&codice_meeting=<?= $meet["codice"] ?>')"> |
|
<span class="fa fa-search"></span> <?= __("Dettagli") ?> |
|
</button> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<? |
|
} |
|
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(); |
|
} |
|
?>
|
|
|