<?php
    $json = "/json.php?jsonData=historique";
    if(debug::isFile("debug")){
        debug::log(debug::getBadge($json, "OUVRIR LE JSON : ".$json), "JSON chargé en arrière plan");
    } 
?>

<header class="d-flex flex-column flex-md-row align-items-md-center p-3 bg-light ">
<h2 class="bd-title" id="content">
    <span>Administration : Historique</span>
</h2>
</header>
<?php   
        echo core::filAriane(array(
            "current" => "Historique", 
            "arbo" => array( 
                "Administration" => NULL,
                "Historique" => "/historique.html")
        )); 
?>
<div>
    <table
        id="table"
        class="table-striped table-hover table-sm" 
        data-page-size="25"
        data-toggle="table"
        data-show-columns="true"
        data-search="true"
        data-buttons-align="left"
        data-pagination="true"
        data-filter-control="true"
        data-flat="true"
        data-sort-name="addDate"
        data-sort-order="desc"
        data-url="<?php echo $json ?>">
        <thead>
            <tr>
                <th data-sortable="true" data-field="addDate" data-filter-control="input" data-width="160">Date</th>
                <th data-sortable="true" data-field="type" data-filter-control="select" data-width="100">Type</th>
                <th data-sortable="true" data-field="page" data-filter-control="input" data-width="250">Page</th>
                <th data-sortable="true" data-field="log" data-filter-control="input">Log</th>
                <th data-sortable="true" data-field="user" data-filter-control="select" data-width="160">Utilisateur</th>
            </tr>
        </thead>
    </table> 
</div>

