add pagination to admin->content
This commit is contained in:
parent
9712cd20f6
commit
92a86c4fa7
|
@ -164,23 +164,26 @@ function table($type) {
|
||||||
<nav class="paginator">
|
<nav class="paginator">
|
||||||
<ul class="pagination flex-wrap justify-content-center">
|
<ul class="pagination flex-wrap justify-content-center">
|
||||||
|
|
||||||
<!-- Previous button -->
|
<!-- First button -->
|
||||||
<li class="page-item <?php if (!Paginator::showPrev()) echo 'disabled' ?>">
|
<li class="page-item">
|
||||||
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>" tabindex="-1"><?php echo $Language->get('Previous'); ?></a>
|
<a class="page-link" href="<?php echo Paginator::firstPageUrl() ?>"><span class="align-middle oi oi-media-skip-backward"></span> <?php echo $Language->get('First'); ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- List of pages -->
|
<!-- Previous button -->
|
||||||
<?php for ($i = 1; $i <= Paginator::amountOfPages(); $i++): ?>
|
<li class="page-item <?php if (!Paginator::showPrev()) echo 'disabled' ?>">
|
||||||
<li class="page-item <?php if ($i==Paginator::currentPage()) echo 'active' ?>">
|
<a class="page-link" href="<?php echo Paginator::previousPageUrl() ?>"><?php echo $Language->get('Previous'); ?></a>
|
||||||
<a class="page-link" href="<?php echo Paginator::numberUrl($i) ?>"><?php echo $i ?></a>
|
|
||||||
</li>
|
</li>
|
||||||
<?php endfor ?>
|
|
||||||
|
|
||||||
<!-- Next button -->
|
<!-- Next button -->
|
||||||
<li class="page-item <?php if (!Paginator::showNext()) echo 'disabled' ?>">
|
<li class="page-item <?php if (!Paginator::showNext()) echo 'disabled' ?>">
|
||||||
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $Language->get('Next'); ?></a>
|
<a class="page-link" href="<?php echo Paginator::nextPageUrl() ?>"><?php echo $Language->get('Next'); ?></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<!-- Last button -->
|
||||||
|
<li class="page-item">
|
||||||
|
<a class="page-link" href="<?php echo Paginator::lastPageUrl() ?>"><?php echo $Language->get('Last'); ?> <span class="align-middle oi oi-media-skip-forward"></span></a>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue