add datatables everywhere

This commit is contained in:
osaajani 2020-04-07 03:02:33 +02:00
parent a426c699f9
commit 6f1c726284
33 changed files with 373 additions and 144 deletions

View file

@ -39,11 +39,11 @@
<p>Aucun SMS STOP n'a été reçu pour le moment.</p>
<?php } else { ?>
<div class="table-events">
<table class="table table-bordered table-hover table-striped" id="table-smsstop">
<table class="table table-bordered table-hover table-striped datatable" id="table-smsstop">
<thead>
<tr>
<th>Numéro</th>
<?php if ($_SESSION['user']['admin']) { ?><th>Sélectionner</th><?php } ?>
<th class="checkcolumn">&#10003;</th>
</tr>
</thead>
<tbody>
@ -65,16 +65,6 @@
<button class="btn btn-default btn-confirm" type="submit" formaction="<?php echo \descartes\Router::url('SmsStop', 'delete', ['csrf' => $_SESSION['csrf']]); ?>"><span class="fa fa-trash-o"></span> Supprimer</button>
</div>
<?php } ?>
<ul class="pager">
<?php if ($page) { ?>
<li><a href="<?php echo \descartes\Router::url('SmsStop', 'list', array('page' => $page - 1)); ?>"><span aria-hidden="true">&larr;</span> Précèdents</a></li>
<?php } ?>
<?php $this->s('Page : ' . ($page + 1)); ?>
<?php if ($limit == $nb_results) { ?>
<li><a href="<?php echo \descartes\Router::url('SmsStop', 'list', array('page' => $page + 1)); ?>">Suivants <span aria-hidden="true">&rarr;</span></a></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</form>