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.
42 righe
1.5 KiB
42 righe
1.5 KiB
<? |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
$error = true; |
|
if (isset($_SESSION["ente"]) && $_SESSION["ente"]->hasModulo("albi_commissione") && !empty($_GET["modulo"]) && !empty($_GET["elemento"])) { |
|
$managerCommissione = new Commissione ($_GET["modulo"],$_GET["elemento"],"commissione"); |
|
if (!empty($managerCommissione)) { |
|
$error = false; |
|
$elenchi = AlboCommissione::getList(["b_albo_commissione.stato"=>"20"],[],0,-1); |
|
if (!empty($elenchi)) { |
|
?> |
|
<table class="table table-striped"> |
|
<thead> |
|
<tr> |
|
<td><?= __("Oggetto") ?></td> |
|
<td width="200"></td> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($elenchi AS $elenco) { |
|
?> |
|
<tr> |
|
<td><?= $elenco["oggetto"] ?></td> |
|
<td><button class="btn btn-sm btn-block btn-info" onclick="showModalWithURL('/backend/common/commissioni/albi/utenti.php?modulo=<?= $managerCommissione->modulo ?>&elemento=<?= $managerCommissione->elemento ?>&codice=<?= $elenco["codice"] ?>');"><?= __("Seleziona") ?> <span class="fa fa-forward"></span></td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
<? |
|
} else { |
|
alertManager::printWarningBox(__("Nessun albo disponibile")); |
|
} |
|
} |
|
} |
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|