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.
35 righe
1.7 KiB
35 righe
1.7 KiB
<?php |
|
$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; |
|
include_once($configPath); |
|
if (!empty($_SESSION["utente"]) && $_SESSION["utente"]->permission($radice)) { |
|
if (isset($_GET["draw"])){ |
|
echo $changelog_parser->dataTable(function($self, $result) { |
|
$row = []; |
|
$row[] = $result->id; |
|
$row[] = "<small>".$self->compressContent($result->content) . "</small>"; |
|
ob_start(); |
|
$self->templateWrapper->renderBadge($result); |
|
$row[] = ob_get_clean(); |
|
$row[] = \DateTime::createFromFormat("Y-m-d H:i:s",$result->timestamp)->format('d/m/Y H:i:s'); |
|
ob_start(); |
|
?> |
|
<div class="dropdown float-right"> |
|
<button title="Gestione" class="btn btn-sm btn-info dropdown-toggle" type="button" id="menuAzioni1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
<i class="fa fa-cog"></i> |
|
</button> |
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="menuAzioni1"> |
|
<a class="dropdown-item" href="/backend/changelogs/edit.php?codice=<?php echo $result->id?>" title="Modifica"> |
|
<i class="fa fa-edit"></i> Modifica |
|
</a> |
|
<a class="dropdown-item" href="#" onclick="confirmBeforeSubmit(1,'/backend/changelogs/delete.php','codice=<?php echo $result->id?>')"> |
|
<span class="fa fa-times text-danger"></span> Elimina |
|
</a> |
|
</div> |
|
</div> |
|
<?php |
|
$row[] = ob_get_clean(); |
|
return $row; |
|
}); |
|
} |
|
} |
|
?>
|