|
@@ -2,37 +2,40 @@
|
|
|
json::create("users");
|
|
json::create("users");
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
-<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-search="true"
|
|
|
|
|
- data-url="/json.php?file=users">
|
|
|
|
|
- <thead>
|
|
|
|
|
- <tr>
|
|
|
|
|
- <th data-sortable="true" data-field="id" data-filter-control="input">#</th>
|
|
|
|
|
- <th data-sortable="true" data-field="nom" data-filter-control="input">Nom</th>
|
|
|
|
|
- <th data-sortable="true" data-field="prenom" data-filter-control="input">Prénom</th>
|
|
|
|
|
- <th data-sortable="true" data-field="type" data-filter-control="select">Type de compte</th>
|
|
|
|
|
- <th data-sortable="true" data-field="cree" data-filter-control="input">Créé</th>
|
|
|
|
|
- <th data-sortable="true" data-field="last_connect" data-filter-control="input">Dernière connexion</th>
|
|
|
|
|
- <th data-field="id" data-formatter="selectUser"></th>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </thead>
|
|
|
|
|
- </table>
|
|
|
|
|
-</div>
|
|
|
|
|
|
|
+<div style="margin-top:60px;">
|
|
|
|
|
|
|
|
-<script>
|
|
|
|
|
- function selectUser(value, row) {
|
|
|
|
|
- return '<a href="/user-' + row.id + '.html"><button type="submit" class="btn btn-outline-primary btn-sm">Administrer</button></a>';
|
|
|
|
|
|
|
+ <a href="/?p=user&add=1" style="position:absolute; right:25px; margin-top:-55px;">
|
|
|
|
|
+ <button type="submit" class="btn btn-outline-success btn-sm">
|
|
|
|
|
+ <span data-feather="plus-square"></span> Ajouter un utilisateur</button>
|
|
|
|
|
+ </a>
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
-</script>
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <table
|
|
|
|
|
+ id="table"
|
|
|
|
|
+ class="table-striped table-hover table-sm"
|
|
|
|
|
+ data-toggle="table"
|
|
|
|
|
+ data-buttons-align="left"
|
|
|
|
|
+ data-flat="true"
|
|
|
|
|
+ data-url="/json.php?file=users">
|
|
|
|
|
+ <thead>
|
|
|
|
|
+ <tr>
|
|
|
|
|
+ <th data-sortable="true" data-field="id" data-filter-control="input">#</th>
|
|
|
|
|
+ <th data-sortable="true" data-field="nom" data-filter-control="input">Nom</th>
|
|
|
|
|
+ <th data-sortable="true" data-field="prenom" data-filter-control="input">Prénom</th>
|
|
|
|
|
+ <th data-sortable="true" data-field="type" data-filter-control="select">Type de compte</th>
|
|
|
|
|
+ <th data-sortable="true" data-field="cree" data-filter-control="input">Créé</th>
|
|
|
|
|
+ <th data-sortable="true" data-field="last_connect" data-filter-control="input">Dernière connexion</th>
|
|
|
|
|
+ <th data-field="id" data-formatter="selectUser"></th>
|
|
|
|
|
+ </tr>
|
|
|
|
|
+ </thead>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <script>
|
|
|
|
|
+ function selectUser(value, row) {
|
|
|
|
|
+ return '<a href="/user-' + row.id + '.html"><button type="submit" class="btn btn-outline-primary btn-sm">Administrer</button></a>';
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ </script>
|
|
|
|
|
+
|
|
|
|
|
+</div>
|