<?php
    $jsonTarget = "/json.php?file=banque-csv";
    if(debug::isFile("debug")){
        debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "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>Banque : Historique des CSV</span>
    </h2>
</header>
<?php   
        echo core::filAriane(array(
            "current" => "Historique des CSV", 
            "arbo" => array( 
                "Banque" => NULL,
                "Historique des CSV" => "/compte-historique-csv.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="creer"
        data-sort-order="desc"
        data-url="<?php echo $jsonTarget ?>">
        <thead>
            <tr>
                <th data-sortable="true" data-field="creer" data-filter-control="input" data-width="160">Charger le</th>
                <th data-sortable="true" data-field="name" data-filter-control="input">Fichier</th>
                <th data-sortable="true" data-field="size" data-width-unit="Ko" data-width="40">Poids</th>
                <th data-sortable="true" data-field="id" data-filter-control="input" data-width="60">Md5</th>
                <th data-sortable="true" data-field="user" data-filter-control="select" data-width="180">Chargé par</th>
            </tr>
        </thead>
    </table> 
</div>
