简单的利用php写了一个分页的功能模块

8/31/2015来源:PHP技巧人气:8568

简单的利用php写了一个分页的功能模块

先贴张图看看效果

ips1jXfszq27+jrb6jLsuuejz8x1nX2ijd+VTcsfbO3Xv9d7K9x/2RNPtevvfWUWEP/FW366xHp7oqXedSX+lDpaM3v//dnizN6FYAC8gQGBHPF6LP/5amX7z8/cTLb+9RzrxT0mIOHnjHlnlXLrxuauOuVthe3JW7t/P2t35lw6xv6uW+oY8mTs0ellWO5ccUSh17Ibr99rLMta9eJ0d5nf63HiV7GP2Syc/EdP4sPnbBdfXlKj8HIMfHM89lnn+/fvXXr1rdWLVu27Jfzr7766rqzTz311BOOsd7Vldh+7cpArPuh4mxbVcqRtsX/I0cNylDBzMMnetHz4qMPbDr0ZkbbHrnouJPOrpuXw1yQnr3hVb+cXzfuhCueSPPTog+T0EdJxEdE6BMvLK7OaM7sdCUSY11zLHw21xmliw/I0YdX6OMrmMeB8kWewAAyavqsixK39m75IMM8wzwzT6xvPDlxc+PW7dE/et5Z/L2x374rESbM4zwv+TJd24vIsDrfS4Zuj93+y8ZM9KaMAMkwDvX47yeu0zc1jcs2ZjT9JNWz6s55y5PPqz17t2/duuG19mXLlv1y/n8+80H8qLfajjlhxIgRZ066/PLLr7nD5/MtX7tly5bd+yMb3k1U7eX2WGYwT5l0TvKh9n76ceyvk09OPPktf96Q8R+RYGjNT+rhitz/bwvi2WXuC4auFcNWI048Mempvb76hY+3r13+C/cPJ539k5d7OegLc79y/NhJ19yxfN3uwNL/zvXN05cJODkMxtQjiJaxPyTX7hCg5JAnMJBUHDvEcOuD3bsOwzGPNY5e3LVzj0jPO20/so11PKvP5xDzuDtf7XBVZ29AMFe7jI0Usv9V94SqKx4vzHoPkfvnPbg76Z61t552/EkjRpw+Ycrll19+zR3L1h36XPR+jni7g2Hw5EXfPTflOX7wwZbYX8cPSYzh/NvBeJqprrJI7nY9dstt8WNlb5EZcmxS780ra17Q/55wzpm9tOKc9z1nfM+eZ59sL3wazZllzMhiVwF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