Ejemplo n.º 1
0
<?php

require_once './classes/Payments.php';
$payments = new Payments(2);
$payments_type = 2;
$list = $payments->get_invoice_payments($payments_type);
$total = $payments->get_total_payments();
echo $list;
?>

<script type="text/javascript">

    $(document).ready(function () {

        $(function () {
            $('#pagination').pagination({
                items: <?php 
echo $total;
?>
,
                itemsOnPage: <?php 
echo $payments->limit;
?>
,
                cssStyle: 'light-theme'
            });
        });

        $("#pagination").click(function () {
            var page = $('#pagination').pagination('getCurrentPage');
            console.log('Page: ' + page);