|
|
@@ -1,33 +1,36 @@
|
|
|
<?php
|
|
|
- $jsonTarget = "/json.php?file=events";
|
|
|
- if(debug::isFile("debug")){
|
|
|
- debug::log(debug::getBadge($jsonTarget, "OUVRIR LE JSON : ".$jsonTarget), "JSON chargé en arrière plan");
|
|
|
- }
|
|
|
+json::create("events");
|
|
|
+
|
|
|
+$jsonTarget = "/json.php?file=events";
|
|
|
+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>Listes des évènements</span>
|
|
|
-</h2>
|
|
|
-<?php if(access::ifAccesss("add-evenement")){ ?>
|
|
|
-<div class="fix-container-button-nav">
|
|
|
- <a href="/add-evenement.html"><button type="submit" class="btn btn-outline-success btn-sm"><?php icon::getFont(["icon" => "bi bi-file-earmark-plus"]) ?> Ajouter un évènement</button></a>
|
|
|
-</div>
|
|
|
-<?php } ?>
|
|
|
+ <h2 class="bd-title" id="content">
|
|
|
+ <span>Listes des évènements</span>
|
|
|
+ </h2>
|
|
|
+ <?php if (access::ifAccesss("add-evenement")) { ?>
|
|
|
+ <div class="fix-container-button-nav">
|
|
|
+ <a href="/add-evenement.html"><button type="submit" class="btn btn-outline-success btn-sm"><?php icon::getFont(["icon" => "bi bi-file-earmark-plus"]) ?> Ajouter un évènement</button></a>
|
|
|
+ </div>
|
|
|
+ <?php } ?>
|
|
|
</header>
|
|
|
-<?php
|
|
|
- echo core::filAriane(array(
|
|
|
- "current" => "Listes des évènements",
|
|
|
- "arbo" => array(
|
|
|
- "Evènements" => NULL,
|
|
|
- "Listes des évènements" => "/evenements.html"),
|
|
|
- "refresh-json" => "events"
|
|
|
- ));
|
|
|
+<?php
|
|
|
+echo core::filAriane(array(
|
|
|
+ "current" => "Listes des évènements",
|
|
|
+ "arbo" => array(
|
|
|
+ "Evènements" => NULL,
|
|
|
+ "Listes des évènements" => "/evenements.html"
|
|
|
+ ),
|
|
|
+ "refresh-json" => "events"
|
|
|
+));
|
|
|
?>
|
|
|
<div>
|
|
|
<table
|
|
|
id="table"
|
|
|
- class="table-striped table-hover table-sm"
|
|
|
+ class="table-striped table-hover table-sm"
|
|
|
data-page-size="25"
|
|
|
data-toggle="table"
|
|
|
data-show-columns="true"
|
|
|
@@ -54,11 +57,11 @@
|
|
|
<th data-field="id" data-formatter="selectFormatter" data-width="60"></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- </table>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
- function selectFormatter(value, row) {
|
|
|
+ function selectFormatter(value, row) {
|
|
|
return '<a href="/evenement-' + row.id + '.html"><button type="submit" class="btn btn-outline-primary btn-sm">Ouvrir</button></a>';
|
|
|
}
|
|
|
-</script>
|
|
|
+</script>
|