zend framework 分页类

class My_Db_Page { private $total_page; private $total_nombre; private $page_courante; private $_request; function getPage($total_nombre,$request,$paginal = 10) { $this-&#62;_request = clone $request; $this-&#62;page_courante = $this-&#62;_request-&#62;getParam ( &#34;page&#34; ); $this-&#62;total_page = ceil ( $total_nombre / $paginal ); $this-&#62;total_nombre = $total_nombre; } function render() { $html = ''; if ($this-&#62;total_page &#62; 1) { for($i = 0; $i &#60; $this-&#62;total_page; $i ++) { if ($i &#62; 0) $html .= &#34;/&#34;; $this-&#62;_request-&#62;setParam ( &#34;page&#34;, $i ); $html .= '&#8216; [...]<br /><!-- Feedsky flare --><a href="http://feed.feedsky.com/~flare/bc1998?a=39a592a5a596799886d735244df23f9a" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=39a592a5a596799886d735244df23f9a" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=fc27ac45367c263a73757341ee45f13a" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=fc27ac45367c263a73757341ee45f13a" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=282ba85c3eb404ba8f98892fd91de7fa" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=282ba85c3eb404ba8f98892fd91de7fa" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=0900a20ed8ab4349324c122d1280c1f3" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=0900a20ed8ab4349324c122d1280c1f3" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=b404b225b5d07c62c514f12e771006da" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=b404b225b5d07c62c514f12e771006da" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=f41d7d0c8d14335c3830d15da7d7ce37" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=f41d7d0c8d14335c3830d15da7d7ce37" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=57a19131e4b852452460b80ea9a65e09" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=57a19131e4b852452460b80ea9a65e09" border="0"></a><a href="http://feed.feedsky.com/~flare/bc1998?a=d9f7f1c60d45c199ab9ce869e1d9ebf6" target="_blank"><img src="http://feed.feedsky.com/~flare/bc1998?i=d9f7f1c60d45c199ab9ce869e1d9ebf6" border="0"></a><!-- /Feedsky flare -->
阅读更多
文章标签: Zend HTML
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭