Update pagination.php

* pages as list items
* changed pager construct function