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.
54 righe
1.8 KiB
54 righe
1.8 KiB
<? |
|
$error = true; |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice) && $_SESSION["utente"]->gerarchia <= 10) { |
|
$reportPersonalizzati = reportManager::getSelfManagedReports(); |
|
if (!empty($reportPersonalizzati)) { |
|
$error = false; |
|
?> |
|
<table class="table table-hober table-striped"> |
|
<thead> |
|
<tr> |
|
<th><?= __("Report") ?></th> |
|
<th><?= __("Modulo") ?></th> |
|
<th width="10"></th> |
|
<th width="10"></th> |
|
</tr> |
|
</thead> |
|
<tbody> |
|
<? |
|
foreach($reportPersonalizzati AS $report) { |
|
$modulo = Modulo::getInfo($report["modulo"]); |
|
?> |
|
<tr> |
|
<td> |
|
<strong><?= $report["titolo"] ?></strong> |
|
<small><?= $report["descrizione"] ?></small> |
|
</td> |
|
<td><?= $modulo["titolo"] ?></td> |
|
<td> |
|
<button title="<?= __("Modifica") ?>" class="btn-block btn btn-sm btn-primary" onclick="showModalWithURL('/backend/report/library/build.php?codice=<?= $report["codice"] ?>');"> |
|
<span class="fa fa-edit"></span> |
|
</button> |
|
</td> |
|
<td> |
|
<button title="<?= __("Elimina") ?>" class="btn-block btn btn-sm btn-danger" onclick="elimina(<?= $report["codice"] ?>,'report/library');"> |
|
<span class="fa fa-times"></span> |
|
</button> |
|
</td> |
|
</tr> |
|
<? |
|
} |
|
?> |
|
</tbody> |
|
</table> |
|
<? |
|
} |
|
} |
|
|
|
if ($error) { |
|
header('HTTP/1.0 403 Forbidden'); |
|
die(); |
|
} |
|
?>
|