结合bootstrap与CI自带分页,改造的例子
先上效果图http://codeigniter.org.cn/forums/data/attachment/album/201206/24/1328017zk677gzqkk4gekq.jpg先暂时做了这个样子。主要是结合bootstrap,进行样式改造。
在controller中,自定义了分页样式:
//define pagging style
$config['full_tag_open'] = '<div class="pagination"><ul>';
$config['full_tag_close'] = '</ul></div>';
$config['anchor_class'] = "";
$config['cur_tag_open'] = '<li class="active"><a>';
$config['cur_tag_close'] = '</a></li>';
$config['num_tag_open'] = '<li>';
$config['num_tag_close'] = '</li>';
$config['prev_tag_open'] = '<li>';
$config['prev_tag_close'] = '</li>';
$config['next_tag_open'] = '<li>';
$config['next_tag_close'] = '</li>';
$config['first_link'] = 'First';
$config['first_tag_open'] = '<li>';
$config['first_tag_close'] = '</li>';
$config['last_link'] = 'Last';
$config['last_tag_open'] = '<li>';
$config['last_tag_close'] = '</li>';
当然你要引入bootstrap的css喽,要不,那些class样式找不到的
你这是统计单张表的数据吧 我的还没有 做呢!
嗯嗯好用,学习了 哪里有下载呀 搂住提供一个下载的学习吧{:soso_e100:}
页:
[1]