33 lines
957 B
PHP
33 lines
957 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
?>
|
|
|
|
<script>
|
|
const pages = Math.ceil(parseFloat(<?= $pageCount ?>));
|
|
$('.pagination').twbsPagination({
|
|
visiblePages: 10,
|
|
// prevText: '<span aria-hidden="true">«</span>',
|
|
// nextText: '<span aria-hidden="true">»</span>',
|
|
totalPages: pages,
|
|
first: '<i class="fa fa-angle-double-left"></i>',
|
|
prev: '<i class="fa fa-angle-left"></i>',
|
|
next: '<i class="fa fa-angle-right"></i>',
|
|
last: '<i class="fa fa-angle-double-right"></i>',
|
|
href: true,
|
|
pageVariable: 'page',
|
|
});
|
|
|
|
function parseQueryString() {
|
|
let str = window.location.search;
|
|
const objURL = {};
|
|
|
|
str.replace(
|
|
new RegExp("([^?=&]+)(=([^&]*))?", "g"),
|
|
function ($0, $1, $2, $3) {
|
|
objURL[$1] = $3;
|
|
}
|
|
);
|
|
return objURL;
|
|
}
|
|
</script>
|